victorhooi
Contributor
- Joined
- Mar 16, 2012
- Messages
- 184
I have a ZFS dataset - if I use `zfs list`, it reports as only 2.85 TB used:
However, I use do a du on it - it reports as 10TB used (which is what I expected):
Is there an explanation for the discrepancy? Why is zfs list reporting less space used than the files?
(I do have lz4 compression - however, I checked the compression ratio and it's 1.0x:
NAME USED AVAIL REFER MOUNTPOINT
datastore/ablage 2.85T 14.4T 2.85T /mnt/datastore/ablage
However, I use do a du on it - it reports as 10TB used (which is what I expected):
freenas-naulty-place# cd /mnt/datastore
freenas-naulty-place# du -chs ablage
10T ablage
10T total
Is there an explanation for the discrepancy? Why is zfs list reporting less space used than the files?
(I do have lz4 compression - however, I checked the compression ratio and it's 1.0x:
freenas-naulty-place# zfs get all datastore/ablage
NAME PROPERTY VALUE SOURCE
datastore/ablage type filesystem -
datastore/ablage creation Mon May 7 6:07 2018 -
datastore/ablage used 2.85T -
datastore/ablage available 14.3T -
datastore/ablage referenced 2.85T -
datastore/ablage compressratio 1.00x -
datastore/ablage mounted no -
datastore/ablage quota none local
datastore/ablage reservation none local
datastore/ablage recordsize 128K default
datastore/ablage mountpoint /mnt/datastore/ablage default
datastore/ablage sharenfs off default
datastore/ablage checksum on default
datastore/ablage compression lz4 local
datastore/ablage atime off local
datastore/ablage devices on default
datastore/ablage exec on default
datastore/ablage setuid on default
datastore/ablage readonly off default
datastore/ablage jailed off default
datastore/ablage snapdir hidden default
datastore/ablage aclmode passthrough local
datastore/ablage aclinherit passthrough inherited from datastore
datastore/ablage canmount on default
datastore/ablage xattr on default
datastore/ablage copies 1 local
datastore/ablage version 5 -
datastore/ablage utf8only off -
datastore/ablage normalization none -
datastore/ablage casesensitivity sensitive -
datastore/ablage vscan off default
datastore/ablage nbmand off default
datastore/ablage sharesmb off default
datastore/ablage refquota none local
datastore/ablage refreservation none local
datastore/ablage primarycache all default
datastore/ablage secondarycache all default
datastore/ablage usedbysnapshots 0 -
datastore/ablage usedbydataset 2.85T -
datastore/ablage usedbychildren 0 -
datastore/ablage usedbyrefreservation 0 -
datastore/ablage logbias latency default
datastore/ablage dedup off local