Much like ethoms in this thread: https://forums.freebsd.org/threads/high-fragmentation-after-zfs-send-recv.50604/#post-283684 I am re-doing my pool by swapping thing around to fix block sizes and also to hopefully resolve some performance issues I was seeing.
My original pool was created in FreeBSD 9.1 many years ago before the 'gnop' trick was known (at least by me). I believe it was reporting around 3% fragmentation before I destroyed it earlier today. Before I did that I did a ZFS send/receive to another volume (zstripe). After the copy I noticed that the fragmentation was out of control:
So, thinking that something probably was messing up with send/receive (or per the last comment in the above post, perhaps that fragmentation was always there but under reported). .. I decided to just use cp(1) to copy back to the newly formed zroot vol. However the copy is about to finish (after hours of running) and I'm seeing what I would still consider to be massive fragmentation:
Especially given that there should be none (right?) since I'm just writing data in a very very serial fashion with cp. Yes it's less than the copy on zstripe but ... why is there any?
I'm at a loss as to what is going on here, any thoughts/insights would be helpful as I'm stuck here wondering if I should re-do the copy or what. Meanwhile my NAS is offline.
P.S. I enabled compression on both zpools but it was not enabled on the original volume.
My original pool was created in FreeBSD 9.1 many years ago before the 'gnop' trick was known (at least by me). I believe it was reporting around 3% fragmentation before I destroyed it earlier today. Before I did that I did a ZFS send/receive to another volume (zstripe). After the copy I noticed that the fragmentation was out of control:
Code:
NAME SIZE ALLOC FREE FRAG EXPANDSZ CAP DEDUP HEALTH ALTROOT
zstripe 7.25T 5.04T 2.21T 42% - 69% 1.00x ONLINE -
Code:
NAME SIZE ALLOC FREE FRAG EXPANDSZ CAP DEDUP HEALTH ALTROOT
zroot 16.2T 7.58T 8.67T 23% - 46% 1.00x ONLINE -
I'm at a loss as to what is going on here, any thoughts/insights would be helpful as I'm stuck here wondering if I should re-do the copy or what. Meanwhile my NAS is offline.
P.S. I enabled compression on both zpools but it was not enabled on the original volume.