Menu

#9 'di' and 'df' outputs differ

None
closed
help (1)
2025-01-23
2024-12-24
No

The output of df and di differ in how much free space is reported for the ZFS zroot/datafilesystems. (I have made the output of di mimic the output of df by aliasing di to 'command di -xoverlay,tmpfs,squashfs,autofs -fSTbuvpM -si -t -sm'.

~> di
Filesystem         fs Type         Size     Used    Avail %Used  Mount
zroot/ROOT/default zfs           176.3G   175.6G     0.8G  100%  /
b2:                fuse.rclone     1.0P     0.0P     1.0P    0%  /b2
/dev/nvme1n1p1     vfat          511.0M   416.4M    94.6M   81%  /boot
zroot/data/home    zfs             2.5T     2.5T     0.0T  100%  /home
zroot/data/opt     zfs            36.2G    35.4G     0.8G   98%  /opt
zroot/data/root    zfs           289.4G   288.6G     0.8G  100%  /root
/dev/sdc1          ext4            1.7T     1.5T     0.1T   94%  /run/media/vladimir/hyper0-85e3
efivarfs           efivarfs        0.1M     0.0M     0.1M   29%  /sys/firmware/efi/efivars
zroot/data/local   zfs             1.6T     1.6T     0.0T  100%  /usr/local
zbackups           zfs             9.0T     8.3T     0.6T   93%  /zbackups
                                   1.0P     0.0P     1.0P    1%  Total
~> df
Filesystem         Type        1G-blocks  Used Available Use% Mounted on
efivarfs           efivarfs           1G    1G        1G  27% /sys/firmware/efi/efivars
zroot/ROOT/default zfs              177G  176G        1G 100% /
zroot/data/root    zfs              290G  289G        1G 100% /root
zroot/data/opt     zfs               37G   36G        1G  99% /opt
/dev/nvme1n1p1     vfat               1G    1G        1G  82% /boot
zroot/data/local   zfs             1634G 1633G        1G 100% /usr/local
zroot/data/home    zfs             2584G 2583G        1G 100% /home
zbackups           zfs             9178G 8542G      637G  94% /zbackups
b2:                fuse.rclone  1048576G    0G  1048576G   0% /b2
/dev/sdc1          ext4            1760G 1572G       99G  95% /run/media/vladimir/hyper0-85e3

I'm happy to provide more information.

vladimir@acm.org

Related

Tickets: #9

Discussion

  • Brad Lanam

    Brad Lanam - 2024-12-24

    Can you try:
    di -xoverlay,tmpfs,squashfs,autofs -fSTbuvpM -dg -Bsi -t -sm
    For the moment, I think it is just a rounding display difference. 0.8G in terabytes is rounded to 0.0T.

    You can also try:
    di -xoverlay,tmpfs,squashfs,autofs -fSTbuvpM -dh -Bsi -t -sm
    Which will mix the units displayed within a single line. This should be similar to df -h. The -si option converts to -dH -Bsi, which uses the same units for the entire line.

     
    • Vladimir Ivanovic

      Brad,

      Thanks for the quick reply!

      Both of your suggestions below resolve the difference. You can close
      this bug report.

      — Vladimir

      Vladimir G. Ivanović, Ed.D.
      email vladimir@acm.org
      mobile +1 650 450 4101

      On 24/12/2024 07.47, Brad Lanam wrote:

      Can you try:
      |di -xoverlay,tmpfs,squashfs,autofs -fSTbuvpM -dg -Bsi -t -sm|
      For the moment, I think it is just a rounding display difference. 0.8G
      in terabytes is rounded to 0.0T.

      You can also try:
      |di -xoverlay,tmpfs,squashfs,autofs -fSTbuvpM -dh -Bsi -t -sm|
      Which will mix the units displayed within a single line. This should
      be similar to |df -h|. The |-si| option converts to |-dH -Bsi|, which
      uses the same units for the entire line.


      [tickets:#9] https://sourceforge.net/p/diskinfo-di/tickets/9/ 'di'
      and 'df' outputs differ

      Status: open
      Milestone: 1.0
      Created: Tue Dec 24, 2024 03:25 PM UTC by Vladimir Ivanovic
      Last Updated: Tue Dec 24, 2024 03:25 PM UTC
      Owner: nobody

      The output of |df| and |di| differ in how much free space is reported
      for the ZFS |zroot/data|filesystems. (I have made the output of |di|
      mimic the output of |df| by aliasing |di| to |'command di
      -xoverlay,tmpfs,squashfs,autofs -fSTbuvpM -si -t -sm'|.

      |~>di FilesystemfsTypeSizeUsedAvail%UsedMount
      zroot/ROOT/defaultzfs176.3G175.6G0.8G100%/
      b2:fuse.rclone1.0P0.0P1.0P0%/b2
      /dev/nvme1n1p1vfat511.0M416.4M94.6M81%/boot
      zroot/data/homezfs2.5T2.5T0.0T100%/home
      zroot/data/optzfs36.2G35.4G0.8G98%/opt
      zroot/data/rootzfs289.4G288.6G0.8G100%/root
      /dev/sdc1ext41.7T1.5T0.1T94%/run/media/vladimir/hyper0-85e3
      efivarfsefivarfs0.1M0.0M0.1M29%/sys/firmware/efi/efivars
      zroot/data/localzfs1.6T1.6T0.0T100%/usr/local
      zbackupszfs9.0T8.3T0.6T93%/zbackups 1.0P0.0P1.0P1%Total ~>df
      FilesystemType1G-blocksUsedAvailableUse%Mountedon
      efivarfsefivarfs1G1G1G27%/sys/firmware/efi/efivars
      zroot/ROOT/defaultzfs177G176G1G100%/
      zroot/data/rootzfs290G289G1G100%/root zroot/data/optzfs37G36G1G99%/opt
      /dev/nvme1n1p1vfat1G1G1G82%/boot
      zroot/data/localzfs1634G1633G1G100%/usr/local
      zroot/data/homezfs2584G2583G1G100%/home
      zbackupszfs9178G8542G637G94%/zbackups
      b2:fuse.rclone1048576G0G1048576G0%/b2
      /dev/sdc1ext41760G1572G99G95%/run/media/vladimir/hyper0-85e3 |

      I'm happy to provide more information.

      |vladimir@acm.org |

      Sent from sourceforge.net because you indicated interest in
      https://sourceforge.net/p/diskinfo-di/tickets/9/

      To unsubscribe from further messages, please visit
      https://sourceforge.net/auth/subscriptions/

       

      Related

      Tickets: #9

  • Brad Lanam

    Brad Lanam - 2024-12-24
    • labels: --> help
    • status: open --> closed
    • assigned_to: Brad Lanam
     
    • Vladimir Ivanovic

      BTW, thanks for di!

      — Vladimir

      Vladimir G. Ivanović, Ed.D.
      email vladimir@acm.org
      mobile +1 650 450 4101

      On 24/12/2024 08.47, Brad Lanam wrote:

      • labels: --> help
      • status: open --> closed
      • assigned_to: Brad Lanam
       

Log in to post a comment.

MongoDB Logo MongoDB