Directory Size problem

Gordon Messmer yinyang at eburg.com
Wed Nov 29 17:57:41 UTC 2006


Dan Track wrote:
> 
> I've got a directory /var/spool/mqueue that is at 3.6G. The problem is
> that I've deleted everything in the directory but the size reported
> from du -hs is still reported as 3.6G. I've shutdown all potential
> sevices that could possibly be using teh directory e.g sendmail,
> httpd, syslog but it hasn't helped if I run an lsof or fuser against
> the directory I get no connections listed.

"du" won't show you the size of files that have been removed but are 
still open.  Only "df" does that.  Check the size of the directory, and 
look for files beginning with a dot character.  Try:

ls -laR /var/spool/mqueue




More information about the users mailing list