mystery /var space usage
Loren M. Lang
lorenl at alzatex.com
Fri Jan 28 04:34:45 PST 2005
On Thu, Jan 27, 2005 at 11:52:23AM +0200, Nelis Lamprecht wrote:
> This is not one of those "I've run out of space on /var issues" but
> rather "what the hell is using up the space" issue.
> My /var file system shows:
> /dev/amrd0s1e 9.8G 4.8G 4.2G 53% /var
> A du -h of /var shows a total of 616M data only. First thing that came
> to mind is some process which is holding onto data so I tried
> restarting various daemons - cyrus, imapd, exim, apache and still no
> change. I've checked with fstat and lsof to see if I can see anything
> suspicious but nothing out of the ordinary shows up.
I find lsof very helpful in this case. It even tells you the sizes of
deleted files that are still held open by which process.
> Baring in mind this is a production mail server with about 60 000
> accounts, does anyone have any other suggestions which I might try ? I
> could just boot into single user mode and back out which will probably
> solve my problem now but for obvious reasons I would like to know what
> is causing the added usage of /var. I'm running 4.10 currently but
> plan to update that to 4.11 if I have to reboot.
> Thanks for your reply.
> freebsd-questions at freebsd.org mailing list
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe at freebsd.org"
I sense much NT in you.
NT leads to Bluescreen.
Bluescreen leads to downtime.
Downtime leads to suffering.
NT is the path to the darkside.
Powerful Unix is.
Public Key: ftp://ftp.tallye.com/pub/lorenl_pubkey.asc
Fingerprint: B3B9 D669 69C9 09EC 1BCD 835A FAF3 7A46 E4A3 280C
More information about the freebsd-questions