brain:/# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/xvda1 9.2G 8.6G 151M 99% /
tmpfs 136M 0 136M 0% /lib/init/rw
udev 10M 560K 9.5M 6% /dev
tmpfs 136M 0 136M 0% /dev/shm
/dev/mapper/bkp 5.8G 140M 5.4G 3% /mnt/bkp
brain:/# du -sh
du: cannot access `./proc/31128/task/31128/fd/4': No such file or directory
du: cannot access `./proc/31128/task/31128/fdinfo/4': No such file or directory
du: cannot access `./proc/31128/fd/4': No such file or directory
du: cannot access `./proc/31128/fdinfo/4': No such file or directory
2.6G .
What gives? Why is only 151 mb available when only 2.6 out of 9.2 gigs are used? And why does it say 8.6 gigs are used when only 2.6 gigs are?
(.virtualenv)user@brain:~$ cat /proc/version
Linux version 2.6.26-2-686-bigmem (Debian 2.6.26-26lenny1) ([email protected]) (gcc version 4.1.3 20080704 (prerelease) (Debian 4.1.2-25)) #1 SMP Thu Nov 25 01:59:22 UTC 2010
running on Xen virtualization software.
By default, 5% of the disk is reserved for root, this 5% is perhaps free but not available. You can verify that you have blocks reseved with
tune2fs -l /dev/xvda1
; you can change the amount reseved with tune2fs's -r, (see the tune2fs manpage)