ilmarmors
Dabbler
- Joined
- Dec 27, 2014
- Messages
- 25
What is the most efficient way how to recompress existing data if I would like to use zstd intead of lz4? I created Replication task via TrueNAS UI (remember to take out checkbox for recursive and include dataset properties checkboxes, otherwise old compression settings will be copied over to new dataset). I will delete old dataset and rename new one after send / recv will complete. Both datasets are in the same pool. My use case allows to stop writes to original dataset.
I see following processed created with ps
zfs send -V -L -c <pool>/<srcdataset>@<auto snapshot name>
zfs recv -s -F <pool>/<dstdataset>
My dataset is quite big, will now the answer only after few days. Can somebody confirm that zfs send <existing dataset> / recv <dataset with zstd as default compression type> will do the trick and data will be recompressed?
I see following processed created with ps
zfs send -V -L -c <pool>/<srcdataset>@<auto snapshot name>
zfs recv -s -F <pool>/<dstdataset>
My dataset is quite big, will now the answer only after few days. Can somebody confirm that zfs send <existing dataset> / recv <dataset with zstd as default compression type> will do the trick and data will be recompressed?