Menu

#3733 system-status: incorrect reporting of disk space

closed-works-for-me
5
2010-08-13
2010-08-12
No

http://localhost:10000/right.cgi?open=system&open=status seems to display inaccurate values for disk space:

Local disk space 458.33 GB total, 33.24 GB used

Expected to see instead: ~10 GB disk space used.

15:58 server01:../webmin/system-status # df -TaB1
Filesystem Type 1B-blocks Used Available Use% Mounted on
/dev/md1 ext4 491999813632 10644611072 456362979328 3% /
proc proc 0 0 0 - /proc
sysfs sysfs 0 0 0 - /sys
debugfs debugfs 0 0 0 - /sys/kernel/debug
devtmpfs devtmpfs 1970425856 421888 1970003968 1% /dev
tmpfs tmpfs 2048380928 7159808 2041221120 1% /dev/shm
devpts devpts 0 0 0 - /dev/pts
/dev/md0 ext2 126917632 43324416 77040640 36% /boot
fusectl fusectl 0 0 0 - /sys/fs/fuse/connections
/proc none 0 0 0 - /var/lib/named/proc

16:01 server01:../webmin/system-status # df -Tah
Filesystem Type Size Used Avail Use% Mounted on
/dev/md1 ext4 459G 10G 426G 3% /
proc proc 0 0 0 - /proc
sysfs sysfs 0 0 0 - /sys
debugfs debugfs 0 0 0 - /sys/kernel/debug
devtmpfs devtmpfs 1.9G 412K 1.9G 1% /dev
tmpfs tmpfs 2.0G 6.9M 2.0G 1% /dev/shm
devpts devpts 0 0 0 - /dev/pts
/dev/md0 ext2 122M 42M 74M 36% /boot
fusectl fusectl 0 0 0 - /sys/fs/fuse/connections
/proc none 0 0 0 - /var/lib/named/proc

System is-a

16:03 server01:../webmin/system-status # cat /etc/SuSE-release
openSUSE 11.3 (x86_64)
VERSION = 11.3

Discussion

  • Jan Engelhardt

    Jan Engelhardt - 2010-08-12

    I just saw - hooray for ext accounting its data structures :-/

     
  • Jamie Cameron

    Jamie Cameron - 2010-08-13

    The real issue here is that by default, ext filesystems reserve 5% of space for root, and Webmin counts that as used (because total - free = 33G). You can adjust this with the tunefs command though.

     
  • Jamie Cameron

    Jamie Cameron - 2010-08-13
    • status: open --> closed-works-for-me
     

Log in to post a comment.