Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#355 Several ZFS mountpoints results in wrong total disk size

open
nobody
Code (200)
3
2008-09-12
2008-08-04
No

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 :-)

Discussion

  • Michael Cramer
    Michael Cramer
    2008-09-12

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

     
  • Michael Cramer
    Michael Cramer
    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.