dnk
2009-Apr-24 16:43 UTC
[CentOS] df -h shows system at 100% used, but there is space left
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! d
Laurentiu Coica
2009-Apr-24 17:00 UTC
[CentOS] df -h shows system at 100% used, but there is space left
On Fri, Apr 24, 2009 at 7:43 PM, dnk <d.k.emaillists at gmail.com> 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? >Because when an ext2/3 file system is formated by default 5% is reserved for root Use tune2fs -m reserved-blocks-percentage>-- Laurentiu Coica
Jake
2009-Apr-24 17:06 UTC
[CentOS] df -h shows system at 100% used, but there is space left
On Fri, Apr 24, 2009 at 12:43 PM, dnk <d.k.emaillists at gmail.com> 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 >This is completely normal rounding. 5.3/903=.005 or .5% - the "human readable" output doesn't show fractions of a percentage...it rounds. -- Jake Paulus JakePaulus at gmail.com
Robert Heller
2009-Apr-24 18:25 UTC
[CentOS] df -h shows system at 100% used, but there is space left
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.> > d > > > _______________________________________________ > CentOS mailing list > CentOS at centos.org > http://lists.centos.org/mailman/listinfo/centos > >-- 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/
Flaherty, Patrick
2009-Apr-29 14:28 UTC
[CentOS] df -h shows system at 100% used, but there is space left
> 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% /homeI've never run into the reserved blocks being an issue (even though it may be the case here). I have run out of inodes (one per file, and if you have a ton of little files...). Run df -i to see what percent inodes your using. Wikipedia has a good explaination of inodes (http://en.wikipedia.org/wiki/Inode).