1834440 Members
2323 Online
110067 Solutions
New Discussion

disk cleanup

 
SOLVED
Go to solution
Maciej Szewczykowski
Frequent Advisor

disk cleanup

Hello everybody,
I have a question concerning disk structure and it's usage.
Attached is the file which is the output of bdf command. The question is: how to keep file system mounted on /var within a certain size, so it doesn't exceed (for example) 90% of space of this particular system? each time total sixe of files exceeds 90%, the system practically breaks down - and the matter concerns only this logical volume (/var), which in this case is rather small (500MB). Is there a command/script that makes possible cleaning temporary/log files mounted on /var/adm? why the sytem (HP-UX 11.0) reacts so badly to disk overload?
what would an experienced admin do in case of frequent /var overloading?
thanks a lot in advance.
5 REPLIES 5
Ravi_8
Honored Contributor

Re: disk cleanup

Hi,

size of /var is indeed very small.
usually i keep the logs of last one week on each machine and remaining logs will be removed using cron
never give up
Rainer von Bongartz
Honored Contributor

Re: disk cleanup

To be honest I would first of all increase /var
500 MB is much to low.

You could also create a new lvol and mount it to /var/adm.


Regards
Rainer
He's a real UNIX Man, sitting in his UNIX LAN making all his UNIX plans for nobody ...
Massimo Bianchi
Honored Contributor
Solution

Re: disk cleanup

I,
var is so important because all system logs and temporary files get there.

only 500Mb is really small, i would do the following:

- create other logical volumes!

- move software there, usually /var/adm/sw can grow much, due to patches, and /var/adm/crash due to dumps

- create link to these new fs from the older ones

- create a dummy file, to be removed whereas needs arises
.

To do the previous things you should to down to single user mode ov even to maintenance mode (booting with "hpux -is" or "hpux -lm" )

HTH,
Massimo
James R. Ferguson
Acclaimed Contributor

Re: disk cleanup

Hi:

As suggested, the size of your '/var' is rather small. Increasing it would certainly be in order, since the 'var/adm/sw' directory is the repository for your software Installed Product Database (IPD) and the place where previous software patch versions are kept. Whatever you do, do *NOT* attempt to mangage the space in this directory by means other than the 'cleanup' command. To do so may mean the inability to patch.

You can regain space in '/var' by running the 'cleanup' command to trim the Software Distributer (SD) logs and to remove copies of patches that have been superceded:

# cleanup -c 1

I suggest that you download the current 'cleanup' patch. Man pages, of course, come with it:

http://www1.itrc.hp.com/service/patch/patchDetail.do?patchid=PHCO_27779&context=hpux:800:11:00

Regards!

...JRF...