#355 Several ZFS mountpoints results in wrong total disk size

Code (200)

I have this system:

Filesystem Size Used Avail Capacity Mounted on
$ df -h
tank 885G 0B 885G 0% /tank
tank/files 885G 0B 885G 0% /tank/files
tank/files/foo 916G 31G 885G 3% /tank/files/foo

When showing @ http://grimstveit.no/admin/phpsysinfo they sum up all three mountpoints to for example 885G*3 = 2722.92GB avilable. ... Which is not correct, since free disk space is share amongst mountpoints in ZFS.

Can try to provide a patch unless anybody else wants to :-)


  • Anonymous

    Anonymous - 2008-09-12

    if you can provide a suggestion or patch how this could be fixed, we will try to fix this problem

  • Anonymous

    Anonymous - 2008-09-12
    • priority: 5 --> 3
  • Dillon Kass

    Dillon Kass - 2011-11-26

    ZFS datasets (mountpoints) should be ignored and the output of zpool list should be used to calculate size and provide pool info. It would be nice if it were it's own subsection.

  • Dillon Kass

    Dillon Kass - 2014-08-03

    The zfs mount points should be ignored and hidden by default, an option to toggle them on would be nice but their space should not be added to "total space" since datasets usually share space..

    If a zfs filesystem is detected the output of "zpool status" and "zpool list" should be what is printed.


    I only have 6T..not 48T It becomes a huge mess.

    Last edit: Dillon Kass 2014-08-03