ZFS Defrag

sukerman

Well-Known Member
Aug 29, 2019
58
7
48
53
Hi All,

root@db1:~# zpool list NAME SIZE ALLOC FREE CKPOINT EXPANDSZ FRAG CAP DEDUP HEALTH ALTROOT pool 1.04T 579G 485G - - 67% 54% 1.00x ONLINE - root@db1:~#

A couple of questions please:

1) This is a NVME datacenter SSD. Is fragmentation worth worrying about for mysql usage?
2) I heard that you can defrag by zfs sending the data to another pool. Can you achieve the same by 'moving' the disk to another dataset via the proxmox GUI?

Thanks,

Jack.
 
Since ZFS is copy on write, its usage of the disk space will fragment with time. With SSDs I really would not worry about the fragmentation as the access times will always be in the same range, opposite to HDDs which need to move their RW heads to get to the data.