I have just done a zfs send/recv of an entire pool. The purpose of this is to move to 4K sector based vdevs. The existing pool is using ashift=9, and the new pool is ashift=12. Since it's not possibel to convert vdevs ashift size. So I detached one drive out of every mirrored vdev, created a new pool with same number of vdevs. Then did a send/recv from existing pool to new pool. But whilst the FRAG property of the existing pool is only 2%. The FRAG of the new pool is 40%. The filesystem data is mostly using lz4 compression, so I used zfs
Why is the fragmentation so high? The filesystems are supposed to be exactly the same. And I thought I read somewhere that send/recv was a good way to remove fragmentation. But for me it's increased by 2000%.
It has same the result (40% fragmentation) with just
send -R -e -p
.Why is the fragmentation so high? The filesystems are supposed to be exactly the same. And I thought I read somewhere that send/recv was a good way to remove fragmentation. But for me it's increased by 2000%.
It has same the result (40% fragmentation) with just
zfs send -R
, except the pool size increases due to compression being lost.