/var usage

Hi,

I'm trying to find out what is filling up /var on my server.

du and df commands gives me contrasting information... and I cannot find what it is that is filling up the filesystem...

# du -sk /var

148/var

# df -k /var

Filesystemkbytesusedavail capacity Mounted on

/dev/dsk/c0d0s5498271 4455702874100%/var

Thanks in advance for your help,

Rm

[412 byte] By [sgtmura] at [2007-11-25 23:02:06]
# 1
Do you have any crash dump files in /var/crash/<hostname>, this is the usual culprit.
bmacdo at 2007-7-5 17:51:32 > top of Java-index,Storage Forums,Storage General Discussion...
# 2

Also check things like the printer spooling if you have any print queues setup. If the printing is not working correctly the spooling directories for printer(s) can fill up quite quickly.

Other things that you can ceck are things like old or redundant files in the /var/tmp directory, as well as any very large messages files (you can always zip the older messages files).

And as Brian said check for crash dumps and core files.

stumoor at 2007-7-5 17:51:32 > top of Java-index,Storage Forums,Storage General Discussion...
# 3
The command "du -sk /var/*" (add the slash-star) will tell you which directory under /var is the culprit.
xwindow at 2007-7-5 17:51:32 > top of Java-index,Storage Forums,Storage General Discussion...
# 4
if du -sk & df -k giving you different usage information, try see anything data under /var directory on root partition. boot from cdrom and cd to /var. if /var is not mounted, then /var should be empty.....
SLIM at 2007-7-5 17:51:32 > top of Java-index,Storage Forums,Storage General Discussion...
# 5

Hi all,

I had the same problem few months ago, the solaris administrator correct the problem but I don't remember how.

The story he explain me is something like :

one or more prcesses are crashed and the memory is still allocated and the system had not yet realized that there are no more process using the memory.

Hope this can help.

Laurent cagnac

lcagnac at 2007-7-5 17:51:32 > top of Java-index,Storage Forums,Storage General Discussion...
# 6

go to this link it will explain what's happened in our case ...

<a href="http://mailman.linuxchix.org/pipermail/techtalk/2005-July/020373.html" target="_blank"> http://mailman.linuxchix.org/pipermail/techtalk/2005-July/02 0373.html</a>

that a linux article but the theory is the same

lcagnac at 2007-7-5 17:51:32 > top of Java-index,Storage Forums,Storage General Discussion...