I have a pool made up of 4x NVMe drives, each with a capacity of 960GB, and two VDEVS each with a two-way mirror. The filesystem containing my VMs have a record size property of 64k, while the pool's ashift size is 12. Other than the massive fragmentation the pool is showing, I see a pretty startling disparity between what is showing as "free" capacity at the pool level, and what is "free" at the file system level. In this instance, I trust what the filesystem allocation stats show, because I have tested the capacity limits with a failed VM migration that exceeded available capacity of 23.G.
I am assuming that this disparity is owed to the high fragmenation, and if so, I am at a loss to explain the severity of the fragmentation. Its a fairly new pool, less that a few months old, very little data churn, and the bulk of the heavier IO has been migrating VMs off of a legacy ESXi host onto the new Promox host. Having said that, I have had a pretty low success rate importing the VMS due to various IO related errors (presumably on the ESXI side).
I have never seen this degree of fragmentation before on ZFS, nor the disparity in reported available capacity, so I am at a loss as to what might be behind these issues. Note that I have already ran a manual trim job and that autotrim is set to its default of off.
To resolve the current fragmentation issue, I can backup and recreate the pool to take care of the fragmentation, but until I know what is causing this, I won't bother.
root@pve0:~# zpool list
NAME SIZE ALLOC FREE CKPOINT EXPANDSZ FRAG CAP DEDUP HEALTH ALTROOT
pve0-pool1 1.73T 546G 1.20T - - 42% 30% 1.00x ONLINE -
root@pve0:~# zfs list pve0-pool1/vm
NAME USED AVAIL REFER MOUNTPOINT
pve0-pool1/vm 1.66T 23.5G 96K /pve0-pool1/vm
I am assuming that this disparity is owed to the high fragmenation, and if so, I am at a loss to explain the severity of the fragmentation. Its a fairly new pool, less that a few months old, very little data churn, and the bulk of the heavier IO has been migrating VMs off of a legacy ESXi host onto the new Promox host. Having said that, I have had a pretty low success rate importing the VMS due to various IO related errors (presumably on the ESXI side).
I have never seen this degree of fragmentation before on ZFS, nor the disparity in reported available capacity, so I am at a loss as to what might be behind these issues. Note that I have already ran a manual trim job and that autotrim is set to its default of off.
To resolve the current fragmentation issue, I can backup and recreate the pool to take care of the fragmentation, but until I know what is causing this, I won't bother.
root@pve0:~# zpool list
NAME SIZE ALLOC FREE CKPOINT EXPANDSZ FRAG CAP DEDUP HEALTH ALTROOT
pve0-pool1 1.73T 546G 1.20T - - 42% 30% 1.00x ONLINE -
root@pve0:~# zfs list pve0-pool1/vm
NAME USED AVAIL REFER MOUNTPOINT
pve0-pool1/vm 1.66T 23.5G 96K /pve0-pool1/vm
