#4281 Wrong Disk/Partition size...

0.82
closed-works-for-me
nobody
None
5
2015-01-12
2013-08-17
Joe Giampaoli
No

Hello, first of all, always very thankful for a great application, I have always been a big webmin fan and user.

Last night I just installed a small little virtual server for some home testing, I decided to use the ubuntu server for simplicity's sake, I gave the virtual disk image a size of 2TB (Dynamic), and when I logged in to webmin I noticed an exagerated disk size in use, which for a basic debian-like server with no GUI and fresh install was just a bit too much.

I am running the virtual server in VirtualBox 4.2.16 and the server is ubuntu 12.04.2 (32bit), the virtual drive was created with ext4 no LVM, so I just thought maybe I should report this to you, I'm not sure if this is happening because of the virtualization.

I'm attaching a screenie of my webmin highlighting the disk usage.

Thank you very much.

Cheers!

Joe Giampaoli

1 Attachments

Discussion

  • Jamie Cameron
    Jamie Cameron
    2013-08-18

    Could you post the output of the "df -h" and "mount" commands on this VM?

     
  • Joe Giampaoli
    Joe Giampaoli
    2013-08-18

    Sure! This is what I got:


    joe@VM-SERVER:~$ df -h
    Filesystem Size Used Avail Use% Mounted on
    /dev/sda1 2.0T 1.7G 1.9T 1% /
    udev 494M 4.0K 494M 1% /dev
    tmpfs 201M 412K 201M 1% /run
    none 5.0M 0 5.0M 0% /run/lock
    none 502M 0 502M 0% /run/shm

    joe@VM-SERVER:~$ mount
    /dev/sda1 on / type ext4 (rw,errors=remount-ro)
    proc on /proc type proc (rw,noexec,nosuid,nodev)
    sysfs on /sys type sysfs (rw,noexec,nosuid,nodev)
    none on /sys/fs/fuse/connections type fusectl (rw)
    none on /sys/kernel/debug type debugfs (rw)
    none on /sys/kernel/security type securityfs (rw)
    udev on /dev type devtmpfs (rw,mode=0755)
    devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=0620)
    tmpfs on /run type tmpfs (rw,noexec,nosuid,size=10%,mode=0755)
    none on /run/lock type tmpfs (rw,noexec,nosuid,nodev,size=5242880)
    none on /run/shm type tmpfs (rw,nosuid,nodev)

    Thanks for your help.

    Joe

     
  • Jamie Cameron
    Jamie Cameron
    2013-08-18

    Ok, I see the issue here - when Webmin reports on disk space used, it includes space that is reserved for the root user only, which is typically 5% of the whole disk.

     
  • Joe Giampaoli
    Joe Giampaoli
    2013-08-18

    AH ok! the "lost + found" reserved space.
    Now it makes sense!
    I just wanted to make sure what was going on.

    Just to let you know I also installed webmin on my normal desktop with Debian 7.0 and I have similar results (space is larger than what I am using), so it seems that it's not something with virtualized partitions or systems.

    I appreciate your help very much!

    Cheers!

    Joe

     
  • Jamie Cameron
    Jamie Cameron
    2013-08-18

    • status: open --> closed-works-for-me
     
  • Jamie Cameron
    Jamie Cameron
    2013-08-18

    Yes, this is absolutely expected. You can use the tunefs command to adjust the reserved space, but only on disks that aren't mounted.