On Wed, Nov 21, 2007 at 07:37:31PM -0500, Ugo Bellavance alleged:
> Hi,
> 
>       2 of my Centos4 servers are showing weird behavior.
> 
> [EMAIL PROTECTED] ~]# du -sh /var/
> 1.8G    /var/
> [EMAIL PROTECTED] ~]# df -h /var
> Filesystem            Size  Used Avail Use% Mounted on
> /dev/sda7             4.3G  3.9G  181M  96% /var
> 
> [EMAIL PROTECTED] var]# df -h /var
> Filesystem            Size  Used Avail Use% Mounted on
> /dev/sda7             2.9G  2.7G     0 100% /var
> [EMAIL PROTECTED] var]# du -sh /var/
> 1.6G    /var/
> 
> du seems to be reporting the right size

Neither is more "correct".  They report different things.  'df' reports on the
number of blocks in use by the filesystem.  'du' crawls the filesystem and
reports the number of blocks used by files.

So what you have here is disk usage by stuff that isn't linked into the
filesystem.  This would mean deleted files that are still opened by processes.

Try 'lsof /var | grep deleted' to list deleted and open files.

Attachment: pgpO2Lp2LtcCI.pgp
Description: PGP signature

_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos

Reply via email to