ZFS Defrag

sukerman

Well-Known Member
Aug 29, 2019
57
7
48
52
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.
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!