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.
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!