1748163 Members
3809 Online
108758 Solutions
New Discussion юеВ

/var fs full

 
Prakash Jadwani
Contributor

/var fs full

Which are the unwanted files in /var file system which can be deleted when /var is full


7 REPLIES 7
Rob Leadbeater
Honored Contributor

Re: /var fs full

Hi,

You can start by looking at various log files...

/var/adm/syslog.dated/...
/var/evm/evmlog/...

You may also find a large

/var/adm/messages
/var/adm/sialog (if it's present)

Of course, you'll want to check those files before clearing them down, to ensure there's nothing relevant in them, that points to why the filesystem is filling in the first place...

Hope this helps,

Regards,

Rob
Kapil Jha
Honored Contributor

Re: /var fs full

apart from above files see if there is cron.log file , if it is huge remove or truncate it and restart cron will make you happy.
You can see various large log files by running
du -sk *|sort -n in various directories under var.

Hope this help.
BR,
Kapil
I am in this small bowl, I wane see the real world......
Kapil Jha
Honored Contributor

Re: /var fs full

please check
http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=1203952

and search /var in forum you will get valuable suggesstion.
BR,
Kapil
I am in this small bowl, I wane see the real world......
Ivan Ferreira
Honored Contributor

Re: /var fs full

Also, check for largefiles in /var/spool/mail, sometimes, mail notifications are not read by the users.
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
Frank Gessner
Frequent Advisor

Re: /var fs full

/var/adm/crash/*
Pieter 't Hart
Honored Contributor

Re: /var fs full

apart from the suggestions above, only you can decide what is "unwanted".

you can use "du -xks /var/*" to locate directories with much used space.
from here you can narrow this down with "du -xks /var/dirname1/*" and so on for other dir's.
Then you can make the decision which files can be removed/archived.

updateing the OS (patchkit) can also leave "unwanted" files, try "updadmin" to cleanup.
Paul Sperry
Honored Contributor

Re: /var fs full

rm /var/adm/crash/*

also look at /var/adm/wtmp
you can

cat /dev/null > /var/adm/wtmp