Operating System - HP-UX
1827280 Members
2903 Online
109717 Solutions
New Discussion

/opt file system is getting full

 
Ali Imran Abbas
Regular Advisor

/opt file system is getting full

My opt file system is getting full, almost 95 % full, can any one give me guidance where to start working on?

Here is the output of su command.

du -xk /opt | sort -rn | more

9348174 /opt
8323408 /opt/app/oracle
8323408 /opt/app
8148672 /opt/app/oracle/product
3962698 /opt/app/oracle/product/8.1.7
3149672 /opt/app/oracle/product/9.2.0
2355192 /opt/app/oracle/product/8.1.7/odg
2351944 /opt/app/oracle/product/8.1.7/odg/reco
1036302 /opt/app/oracle/product/expsrv6.3.2.1
823434 /opt/app/oracle/product/expsrv6.3.2.1/olap
632188 /opt/app/oracle/product/8.1.7/bin
472304 /opt/app/oracle/product/9.2.0/bin
441544 /opt/app/oracle/product/9.2.0/assistants
439602 /opt/app/oracle/product/9.2.0/assistants/dbca
434492 /opt/app/oracle/product/9.2.0/assistants/dbca/templates
412134 /opt/app/oracle/product/8.1.7/javavm
409746 /opt/app/oracle/product/9.2.0/javavm
387578 /opt/app/oracle/product/8.1.7/javavm/admin
353406 /opt/app/oracle/product/9.2.0/javavm/admin
263732 /opt/app/oracle/product/9.2.0/lib
211364 /opt/emc
207360 /opt/emc/SYMCLI/V6.4.0
207360 /opt/emc/SYMCLI
199706 /opt/app/oracle/product/9.2.0/oem_webstage
177952 /opt/app/oracle/product/expsrv6.3.2.1/olap/OES_PROD
153622 /opt/app/oracle/product/9.2.0/jre/1.4.2
153622 /opt/app/oracle/product/9.2.0/jre
153428 /opt/app/oracle/product/expsrv6.3.2.1/olap/OES_SPEC
153420 /opt/app/oracle/product/expsrv6.3.2.1/olap/OES_SPEC/oec632
153396 /opt/app/oracle/product/expsrv6.3.2.1/olap/OES_ACT
153388 /opt/app/oracle/product/expsrv6.3.2.1/olap/OES_ACT/oec632
153364 /opt/app/oracle/product/expsrv6.3.2.1/olap/OES_PROD/oec632
148320 /opt/app/oracle/product/9.2.0/jre/1.4.2/lib
147168 /opt/app/oracle/product/9.2.0/lib32
134918 /opt/app/oracle/product/8.1.7/lib
132758 /opt/java1.4
132300 /opt/app/oracle/product/9.2.0/ctx
125492 /opt/emc/SYMCLI/V6.4.0/shlib
120742 /opt/OV
120298 /opt/app/oracle/product/9.2.0/oem_webstage/oracle
110784 /opt/app/oracle/product/9.2.0/olap
110516 /opt/app/oracle/product/9.2.0/oem_webstage/oracle/sysman
108814 /opt/java1.4/jre
107882 /opt/ignite
104580 /opt/app/oracle/product/expsrv6.3.2.1/olap/OES_SOP
104572 /opt/app/oracle/product/expsrv6.3.2.1/olap/OES_SOP/oec632
Standard input
7 REPLIES 7
Pete Randall
Outstanding Contributor

Re: /opt file system is getting full

My /opt has been 90% full for years. As long as it is not growing (and it shouldn't be), you should be fine. If it is growing, however, you need to find out what application is writing to /opt and figure out how to make it write to a more appropriate space, like /var/opt for example.


Pete

Pete
Robert-Jan Goossens
Honored Contributor

Re: /opt file system is getting full

Hi,

Normally /opt should only be used for OS applications, in your case the Oracle software has also been installed in /opt.

Create a new filesystem /dev/vgxx/lvoly for the Oracle software. Stop your application and satabase(s), copy/move the software from /opt/app/oracle to the new filesystem and create a link from /opt/app/oracle to the new filesystem

An other option is to create a new filesystem and mount it on /opt/app/oracle using the same steps to move/copy the data.

Last option is to extend your current /opt filesystem.

Hope this helps a bit.
Regards,
Robert-Jan
TTr
Honored Contributor

Re: /opt file system is getting full

As a short term solution you should keep the oracle listener logs under control. This is the major disk space consumer under oracle. There may be growing files under the oracle express area too. For long term and correct solution, oracle should be under its own volume/filesystem as the guys above recommended. It should have plenty of remaining space but you still would have to watch for cleaning up the listener logs and other growing files.
Yogeeraj_1
Honored Contributor

Re: /opt file system is getting full

hi,

I also agree with Robert-Jan as to what your Oracle directory is not properly placed. You need to create a new file system for this.

REMINDER: before you attempt any file operations, do not forget to do a full backup.

good luck!
kind regards
yogeeraj
No person was ever honoured for what he received. Honour has been the reward for what he gave (clavin coolidge)
Adam Winebaugh
Regular Advisor

Re: /opt file system is getting full

I couldn't agree more with the above. Oracle is FAR from being placed correctly. /opt should be a fairly small file system, mine has been at 92% for about 5 years now. This is how I post my oracle:
/dev/vg28/lvol1 20480000 7610792 12670016 38% /oralogs
/dev/vg34/lvol1 30720000 16284336 14210172 53% /oradata3
/dev/vg18/lvol1 20480000 11059588 9273288 54% /oradata2
/dev/vg03/lvol1 40960000 35401256 5515384 87% /oradata1


I l9ike to keep it seperate for several reason, but primarily for tape backup reasons. You should definately create some new FS's and move your Oracle information over. Hope this helps a bit.


Adam
Heironimus
Honored Contributor

Re: /opt file system is getting full

I'll offer a dissenting opinion. There isn't anything particularly wrong with putting the Oracle install in /opt if that's your standard (especially if the server only runs Oracle). Only the data files and exports really need to go elsewhere, and those are usually much larger than the 3-4GB I see in your du output. There are only a few logs to worry about in the installation directory, and they usually grow slowly.

However, you should make sure you still need both versions of Oracle. You should also ask your DBAs to make sure they don't have any old patch files left out there.
prasadb
Super Advisor

Re: /opt file system is getting full