cancel
Showing results for 
Search instead for 
Did you mean: 

/opt is 70% full

ManojK_1
Valued Contributor

/opt is 70% full

/opt has reached 70% in one of Hp Unix 11.31 Server.

Which all files i can delete from /opt to reduce the usage.

Manoj K
Thanks and Regards,
Manoj K
9 REPLIES
vishnu.khandare
Respected Contributor

Re: /opt is 70% full

Hi Manoj,

Please check what are the big files by below command and remove if not required,

#find /opt -xdev -size +50000 -exec ls -s {} \; |sort -n

Change this "+50000" as requirement
Hope this resolves ur issues

Regards
Vishnu Khandare
You should deserve before U desire!!!!
ManojK_1
Valued Contributor

Re: /opt is 70% full

Hi,

Please find the out of "find /opt -xdev -size +50000 -exec ls -s {} \; |sort -n
" from the the server

50416 /opt/caliper/gui_clients/caliper-clients.tar.gz
51584 /opt/psb/db/pgsql/src/postgresql-7.4.17-src.tar.gz
53056 /opt/java1.4/jre/lib/rt.jar
56352 /opt/java1.4/jre/lib/IA64N/server/libjvm.so
56944 /opt/cadvise/lbin/u2comp
56944 /opt/langtools/lbin/u2comp
59600 /opt/java1.4/jre/lib/IA64W/server/libjvm.so
64000 /opt/ignite/boot/Rel_B.11.31/WINSTALLFS
74768 /opt/ignite/data/Rel_B.11.31/INSTCMDSIA
78096 /opt/java1.5/jre/lib/rt.jar
82128 /opt/mozilla/components/libgklayout.sl
82240 /opt/ignite/data/Rel_B.11.31/SYSCMDS
83744 /opt/swm/TUI/uimsg
88032 /opt/swm/bin/swm
88576 /opt/swm/transition/TUI/uimsg
92864 /opt/swm/transition/bin/swm
97568 /opt/java6/jre/lib/rt.jar
102256 /opt/ignite/boot/Rel_B.11.31/IINSTALL
109920 /opt/java6/jre/lib/IA64N/server/libjvm.so
112448 /opt/java6/jre/lib/IA64W/server/libjvm.so
114000 /opt/mozilla/src/MOZILLA-SRC-HP.tar.gz
115216 /opt/java1.5/jre/lib/IA64N/server/libjvm.so
119680 /opt/java1.5/jre/lib/IA64W/server/libjvm.so
119808 /opt/ignite/boot/Rel_B.11.31/IINSTALLFS
127840 /opt/cadvise/lbin/be
127840 /opt/langtools/lbin/be
144512 /opt/ignite/data/Rel_B.11.31/SYSCMDSIA
149680 /opt/gtk2.6/src/gtk2.6-src.tar.gz
160848 /opt/aCC/lbin/ecom
160848 /opt/cadvise/lbin/ecom

All the above files generated during the respective application installation.

Which one i can remove from these?

Manoj K
Thanks and Regards,
Manoj K
Dennis Handly
Acclaimed Contributor

Re: /opt is 70% full

>Which one I can remove from these?

You can't. If you are out of space in /opt, you have to make more. Or create symlinks to other filesystems.

Otherwise you have to remove complete products.
ani007
Super Advisor

Re: /opt is 70% full

if space is there in the vg then extend 200/300mb as per req.
Pulse001
Regular Advisor

Re: /opt is 70% full

Hi Manoj,

As Dennis suggested, do not delete files under /opt without removing the products, it could lead to things getting out of your hand.

Thanks
Ismail Azad
Esteemed Contributor

Re: /opt is 70% full

/opt consists of applications as a whole. Try not to remove anything in /opt.

Extend the size of the filesystem /opt with lvextend, fsadm. If you remove things from /opt, then you would have unwanted things under /etc/opt and /var/opt. Hope this info helps.
Read, read and read... Then read again until you read "between the lines".....
ani007
Super Advisor

Re: /opt is 70% full

#vgdisplay vg00
calculate free space (free PE*PE size).If space is there in the vg then extend it.
check online JFS is there or not.If online JFS is there then you can do it online.

#lvextend -L XXXXM /dev/vg00/lvname
(XXXXM stands for the size in Mb)
#fsadm -F vxfs -b XXXXM /opt

Regards,
Ani
Doug O'Leary
Honored Contributor

Re: /opt is 70% full

Hey;

Another approach is to examine why the space utilization in /opt is growing. That should be pretty stable filesystem. If you're adding s/w products, then you probably need to grow the filesystem - that or remove any unneeded apps via swremove.

If you're *not* adding s/w and the space utilization is growing, then you need to find out which files are the ones growing. People have shown find commands to tell you which files are the largest - other arguments to find will tell you which files have been modified in the last X days:

find /opt -xdev -type f -mtime -7 -print

for instance will find all the files under /opt that have been modified in the last seven days.

HTH;

Doug O'Leary

------
Senior UNIX Admin
O'Leary Computers Inc
linkedin: http://www.linkedin.com/dkoleary
Resume: http://www.olearycomputers.com/resume.html
ManojK_1
Valued Contributor

Re: /opt is 70% full

Hi all,

Thanks for the reply.

I just wanted to know whether i can delete any files from /opt without disturbing the running system.

Increasing fs is not in the consideration.

Manoj K

Thanks and Regards,
Manoj K