1834484 Members
3317 Online
110067 Solutions
New Discussion

Size of /opt filesystem

 
Simon R Wootton
Regular Advisor

Size of /opt filesystem

/opt is currently running at 86% on our N4000. Ideally, I'd like this under 80%. We recently replaced predictive support with ISEE and I think this may have pushed the size up a little.

Does anyone know of log files or other non-essential files that could be removed from /opt to reduce the size ?

All help appreciated and rewarded as usual.

Simon
9 REPLIES 9
Ian Dennison_1
Honored Contributor

Re: Size of /opt filesystem

if you have ignite, I would create a separate file system for /opt/ignite, as it does gobble up space.

Share and Enjoy! Ian
Building a dumber user
monasingh_1
Trusted Contributor

Re: Size of /opt filesystem

How much /opt do you have? If I have space on disk, I give around 1.5 to 2GB min to /opt and /usr each. If you still have the space problem(86%) then do following:

cd to /opt
then do du -sk *
It will show which dir is using what amonut of disk space. Then you can see which one you can get rid of. Opt normally does not grow as much, but du -sk * will give you some hint what has grown by how much..

hope this helps..
monasingh_1
Trusted Contributor

Re: Size of /opt filesystem

Also, delete any unwanted software if you have...
Robert-Jan Goossens
Honored Contributor

Re: Size of /opt filesystem

Hi Simon,

How about a search on /opt

# find /opt -name *log* -exec ls {} \;
or
# find /opt -size +1000 -exec ls \;

Robert-Jan.
Leif Halvarsson_2
Honored Contributor

Re: Size of /opt filesystem

Hi,
There is no log files on the /opt (normaly this files is located under the /var/opt directory. But there is perhaps some software in the /opt you can remove if you not use it (for example web servers, apache or ns_fasttrack depending on the HP-UX release).
Stefan Farrelly
Honored Contributor

Re: Size of /opt filesystem

Take a look at the large dirs in /opt to see what you can move or get rid of;

cd /opt
du -sk * | sort -n

And at the bottom you will see the largest dirs, such as langtools (cant remove), perf (you could swremove perfview/measureware or move this dir elsewhere and replace with a link) or perhaps you have gcc (compiler) which you could install to a different dir.

But, what you should really do is extend /opt (if you have onlinejfs its easy) or else do it in single user mode, or identify what software is on /opt that you can swremove to free up some space.
Im from Palmerston North, New Zealand, but somehow ended up in London...
Sritharan
Valued Contributor
Pete Randall
Outstanding Contributor

Re: Size of /opt filesystem

Hi Simon,

You could try running swremove interactively, and examine all the filesets to determine if there are any un-needed ones that were loaded during a default installation.

Pete

Pete
Trond Haugen
Honored Contributor

Re: Size of /opt filesystem

If you have a Netscape server running it will have it's accedd and error logs in /opt by default.

Regards,
Trond
Regards,
Trond Haugen
LinkedIn