1826501 Members
2139 Online
109692 Solutions
New Discussion

/var space problems

 
Grant Te Brugge
Occasional Contributor

/var space problems

We have limited space assigned to the var volume.

What can clean of this volume to maintain it. We already trim logs on a regular basis.


thanks

Grant
9 REPLIES 9
Anthony deRito
Respected Contributor

Re: /var space problems

Grant, use the following commands to try and help you determine why the filesystem is full.

list files in sorted by time:
#cd /var
#ls -lt

find files [n] days old:
#find /var -mtime +[n] -exec ll {} ;

find large files [n] size:
#find /var -xdev -size +$[n]c -exec ll {} ;

find large disk usage directories:
#cd /var
#du -x | sort -n

Tony








James R. Ferguson
Acclaimed Contributor

Re: /var space problems

Grant:

Try a search of this formum. This is a common problem. In general, do the following:

remove unnecessary files in /var/adm/crash, /var/preserve, /var/tmp, etc.

run cleanup (see man pages)

do a 'find' to find large files

...JRF...

Rick Garland
Honored Contributor

Re: /var space problems

You could try the patch cleanup if you are sure you no longer need to swremove a patch(es).

Ignite is always an option for this as well.
Antoanetta Naghiu
Esteemed Contributor

Re: /var space problems

Lots, lots of posts on this topic. Do a search on forum by /var search key. E.g, see:
http://my1.itrc.hp.com/cm/QuestionAnswer/1,1150,0xda63c5ea0230d411ade80090279cd0f9,00.html
http://my1.itrc.hp.com/cm/QuestionAnswer/1,1150,0x0a5e7e990647d4118fee0090279cd0f9,00.html
http://my1.itrc.hp.com/cm/QuestionAnswer/1,1150,0x665d7e990647d4118fee0090279cd0f9,00.html

If you have a very stable system (you are not going to roll it back), I like Andy Monks' idea (see the last above mentioned post).
RikTytgat
Honored Contributor

Re: /var space problems

Hi,

Things to check:

/var/adm/crash : Mem dumps after system crashes are kept there.

Files backed upo during patch installation are kept somewhere under /var/adm/sw/.... . To clean these up (watch out: no patch removal possible after cleanup) execute:
HPUX 10.x : cleanup (cfr man cleanup(1m))
HPUX 11 : swmodify -x patch_commit=true

This should free up some (a lot of) space.

If this isn't the case, use 'du -sk /var/*' and try to locate the big directories/files.


Bye,
Rik
CHRIS_ANORUO
Honored Contributor

Re: /var space problems

cat /dev/null > /var/adm/wmtp
delete files in /var/preserve
Reduce log files with cat /dev/null > var/sam/log/*.log
When We Seek To Discover The Best In Others, We Somehow Bring Out The Best In Ourselves.
Rita C Workman
Honored Contributor

Re: /var space problems

All the above are good ... just be careful about doing a find and remove on large files or files older than a certain date...you may inadvertently remove something in /var you really need.
Another place that hides files is /var/tmp: And since it's a temp directory you probably have plenty there you can clean up....

Regards,

Rita C Workman
Honored Contributor

Re: /var space problems

Just one last thought....I know you have limited space. But have you done a vgdisplay on vg00 to see if you have any PE you could use to increase /var a little???

Regards,
Art Evans
Occasional Advisor

Re: /var space problems

check in the /var/opt/pd dir if you have a superviser running check in that dir for core dumps also check your spoolers for *.BAK and rm them.
every dog has his day, and some have two