[CentOS] df -h shows system at 100% used, but there is space left
haldir.junk at gmail.com
Sun Apr 26 04:33:08 UTC 2009
The amount shown under "Avail" does not include the reserve, even if
it is set. If the reserve is used, then "avail" (and "Use%") become a
negative value. For example it might say -2.5GB Available.
The "Size" does include the reserve however.
I agree with Jake that this is due to it rounding 99.5% used to a whole number.
On Fri, Apr 24, 2009 at 2:25 PM, Robert Heller <heller at deepsoft.com> wrote:
> At Fri, 24 Apr 2009 09:43:57 -0700 CentOS mailing list <centos at centos.org> wrote:
>> Has anyone seen output like this before? Notice on my /dev/md0 That it
>> reports 100% used, but also 5.3 Gb available. What would cause this?
>> # df -h
>> Filesystem Size Used Avail Use% Mounted on
>> /dev/sda2 71G 1.6G 66G 3% /
>> /dev/sda1 99M 22M 73M 23% /boot
>> tmpfs 506M 0 506M 0% /dev/shm
>> /dev/md0 903G 851G 5.3G 100% /home
>> Thanks in advance!
> There is a 'reserve' of space, that only root can write to. In the case
> of /dev/md0 above, normal users will get a 'no space left on device'
> error trying to write files. root, however, can still manage to write
> another 5.3 gig before encountering this error. It only shows up as so
> large because the reserve space is a *percentage* of the total file
> system, and /dev/md0 is a huge file system.
>> CentOS mailing list
>> CentOS at centos.org
> Robert Heller -- 978-544-6933
> Deepwoods Software -- Download the Model Railroad System
> http://www.deepsoft.com/ -- Binaries for Linux and MS-Windows
> heller at deepsoft.com -- http://www.deepsoft.com/ModelRailroadSystem/
> CentOS mailing list
> CentOS at centos.org
More information about the CentOS