Operating System - HP-UX
1748202 Members
2969 Online
108759 Solutions
New Discussion юеВ

/var is getting filledup regularly

 
j.bobby
Frequent Advisor

/var is getting filledup regularly

Dear guys,

almost in all my unix servers the /var filesystem is growing upto above 90% usage.Can anybody suggest me what are the things we can remove regularly from this /var filesystem.i don't have any printers configured in my servers.Please help me.

thanks & regards
Jagan
10 REPLIES 10
Ivan Krastev
Honored Contributor

Re: /var is getting filledup regularly

Check folders under var for size:

#du -kx /var | sort -rn | head -20

Check also with find for bigger, last modified files.

regards,
ivan
Dennis Handly
Acclaimed Contributor

Re: /var is getting filledup regularly

What directories are being filled up?
/var/adm/crash/ /var/adm/?
/var/adm/sw/products/?
Various log files that need to be trimmed.
/var/tmp/ user files.
j.bobby
Frequent Advisor

Re: /var is getting filledup regularly

Dear ivan,

please find the output below.

# du -kx /var | sort -rn | head -20
4910704 /var
3762680 /var/adm
1496768 /var/adm/sw
1347448 /var/adm/sw/save
1085424 /var/adm/crash
780216 /var/hp
467288 /var/hp/sgpatch
341648 /var/adm/syslog
312904 /var/hp/patch
275064 /var/adm/crash/crash.11
269968 /var/adm/crash/crash.16
259168 /var/hp/patch/depot
255856 /var/adm/sw/save/PHCO_33081/VEA-FILESET/opt/VRTSob
255856 /var/adm/sw/save/PHCO_33081/VEA-FILESET/opt
255856 /var/adm/sw/save/PHCO_33081/VEA-FILESET
255856 /var/adm/sw/save/PHCO_33081
204608 /var/adm/crash/crash.15
167752 /var/adm/crash/crash.12
153656 /var/opt
146616 /var/hp/sgpatch/depot
#

from the above output pls suggest me to get some free space.

jagan
James R. Ferguson
Acclaimed Contributor

Re: /var is getting filledup regularly

Hi Jagan:

If the crash dumps in '/var/adm/crash' are old; or they have been analyzed; or you are not interested in having them analyzed and you know why they happened; remove them.

Another directory that usually grows quite large is '/var/adm/sw'. Do NOT manually remove anything in this directory! It is the key to your Installed Product Database (IPD) and without its contents you cannot install or uninstall software let alone properly patch your server.

Instead, you can reclaim space by doing:

# cleanup -c 1

...which is the safe way to manage (remove) unnecessary files in '/var/adm/sw'.

Regards!

...JRF...
Patrick Wallek
Honored Contributor

Re: /var is getting filledup regularly

I suggest you look at your /var/adm/crash directory. You have approximately 1 GB of space taken up there.

This directory normally contains crash dumps from times when your server crashed. If these crash dumps are old and/or the issue causing the crash(es) has been resolved then they can probably be deleted.
James R. Ferguson
Acclaimed Contributor

Re: /var is getting filledup regularly

Hi (again) Jagan:

I meant to add that if your server is generating crash dumps "regularly", you need to open a support case with HP Support and have the dumps analyzed. This is not normal nor tolerable.

Regards!

...JRF...
Dennis Handly
Acclaimed Contributor

Re: /var is getting filledup regularly

>JRF: If the crash dumps in /var/adm/crash are old; or they have been analyzed;

Right. You can also look at the INDEX file in each directory. If the "cause" is the same, you might want to remove everything but that file for all but the last.
Suraj K Sankari
Honored Contributor

Re: /var is getting filledup regularly

Hi,

Mostly in production environments /var/adm/crash is different FS, so before deleting any files from /var/adm/crash please check is /var/adm/crash FS is under /var ?

Suraj
Dennis Handly
Acclaimed Contributor

Re: /var is getting filledup regularly

>Suraj: please check is /var/adm/crash FS is under /var?

It was, du -x was used.