From: John P. Looney (jplooney-ilug at domain online.ie)
Date: Wed 23 Feb 2000 - 14:07:22 GMT
On Wed, Feb 23, 2000 at 05:53:44AM -0800, Michael Turley mentioned:
> Does anyone know off the top of their heads what
> command to use to find files bigger than 5Megs in the
> var directory - something like find /var -size 5 or du
> /var | sort -rn?
>
> du reports that my var system is full but no matter
> what I get rid of (e.g rm'ed and touched all logfiles
> in /var/tmp) there is no impact on the directory size.
> Any ideas?
Yeah. you could have large "open" files, that have been deleted. When you
have a 10MB "messages" file, and you delete it, it's not "removed" until
syslog, which has it opened (effectivly linking it to /proc/xxxx/fd/xxx),
dies/restarts. Could that be it ?
You could find this by doing:
du -sk /var/*
And it'll tell you what directories are taking up the most space. If a
directory takes up 100MB, but there are only some 10k files in it, it's
likely this has happened, and you have to either restart whatever had the
files open (like syslog, or cyclog), or reboot.
Kate
This archive was generated by hypermail 2.1.6 : Thu 06 Feb 2003 - 13:05:29 GMT