minus disk usage

Eric Sandeen sandeen at redhat.com
Fri Mar 4 17:55:52 UTC 2011


On 3/4/11 12:52 AM, GMO-HS Yoichi Takahashi wrote:
> Hi,This is Yoichi Takahashi
> 
> I have a trouble on the ext3 filesystem.
> The display changes whenever the df command is executed. (at short intervals)
> It is a minus display for the following, and normal displays. 
> see below /dev/sda2
> 
> Filesystem          Size  Used Avail Use% Mounted on
> /dev/sda2              97G -345M   93G   0% /
> /dev/sda1              99M   15M   80M  16% /boot
> tmpfs                 2.0G     0  2.0G   0% /dev/shm
> /dev/sda3             803G  2.5G  759G   1% /home
> 
> Filesystem          Size  Used Avail Use% Mounted on
> /dev/sda2              97G  1.2G   91G   2% /
> /dev/sda1              99M   15M   80M  16% /boot
> tmpfs                 2.0G     0  2.0G   0% /dev/shm
> /dev/sda3             803G  2.5G  759G   1% /home
> 
> Filesystem          Size  Used Avail Use% Mounted on
> /dev/sda2              97G  448M   92G   1% /
> /dev/sda1              99M   15M   80M  16% /boot
> tmpfs                 2.0G     0  2.0G   0% /dev/shm
> /dev/sda3             803G  2.5G  759G   1% /home
> 
> Filesystem          Size  Used Avail Use% Mounted on
> /dev/sda2              97G -109M   92G   0% /
> /dev/sda1              99M   15M   80M  16% /boot
> tmpfs                 2.0G     0  2.0G   0% /dev/shm
> /dev/sda3             803G  2.5G  759G   1% /home
> 
> The load is always a high server. 
> LoadAverage is always 3or4 in the server
> 
> Dose anyone know why this happned ?
> Any ideas be appreciated.
> 

It may be changing because files are being added & removed
at the time?  As for the negative...

What kernel and what coreutils are you using?

stat -f / would let us know what the kernel is returning;
I am guessing that this is a bug in coreutils related to
the handling of reserved-for-root space...

If you can try the test again, but do:

# df -B 4096 /; stat -f /

(assuming 4k fs blocksize)

a few times, and see what those return.

-Eric




More information about the Ext3-users mailing list