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
Can you try:
di -xoverlay,tmpfs,squashfs,autofs -fSTbuvpM -dg -Bsi -t -smFor 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 -smWhich will mix the units displayed within a single line. This should be similar to
df -h. The-sioption converts to-dH -Bsi, which uses the same units for the entire line.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:
Related
Tickets:
#9BTW, 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: