LINUX.IE, website of the Irish Linux Users' Group
Tux rules!

   
Home
New Users
Articles
Download
Projects
Community
Vendors

  Print Version
Email to...
 
Archives:


planetILUG

Recent News

News Archive


Join the
ILUG
on FaceBook


Join the
ILUG
on LinkedIn


Join the
ILUG SETI
Group



















 
 :: Mailing Lists

[ILUG] /var system full

[ILUG] /var system full

John P. Looney jplooney-ilug at online.ie
Wed Feb 23 14:07:22 GMT 2000


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





More information about the ILUG mailing list
Read this without the formatting.
                                                                                                    

 

Hosted by HEAnet


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!
RSS Version
Powered by Dell