markusressel / zfs-inplace-rebalancing

Simple bash script to rebalance pool data between all mirrors when adding vdevs to a pool.
Creative Commons Zero v1.0 Universal
340 stars 30 forks source link

[Question] would this work even without any zfs disk remodeling? #17

Closed joaomamede closed 1 year ago

joaomamede commented 1 year ago

Would this script work even without any disk remodeling?

I started my Raidz1 with a recordsize of 128k and my files are all huge (11GB up to 1.5TB) I changed it recently to recordsize=1M and the new files read 20x faster than old ones, so I wanted to rewrite the whole 65TB worth of data.

Thanks for this.

markusressel commented 1 year ago

If ZFS will write new files using the new recordsize setting, then I think it should work, yes. Do keep in mind that you need enough free space to do this though, especially if the files are very big.

markusressel commented 1 year ago

Closing this, feel free to open a new one if anything comes up.