On Monday 12 November 2007 20:48:15 [EMAIL PROTECTED] wrote:
> I have a server that has SLES 9.3 installed on a Sunfire 4600.  The
> problem I'm having is that df is reporting incorrect results.  Here is an
> example:
>
> /dev/sda6              10G  -64Z  9.6G 101% /var
>
> du -hs
> 372M    .
>
> Now, this has been going on for a while.  Recently, syslog has been
> stopping giving messages that it is out of space on /var.
>
> Anyone have any idea what could be going on here?

Are you saying that /var is not out of space? That you can create files on it 
without error messages?

df gets its data directly from the file system. It keeps track of how many 
blocks are in use and that is what df is using

du on the other hand looks directly at the files and adds up their sizes. This 
is really incorrect, since most file systems don't allow you to use partial 
blocks, so a file of 1 byte will show up in du as 1 byte, but in df as a full 
block, since that is what is used

If you really can create files on /var, if it really isn't full, then it very 
much looks like it's corrupted, you should run fsck on it - since df gets its 
data from the file system itself, if the fs is healthy its numbers should be 
ok. 

Anders
-- 
Madness takes its toll
-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to