ZFS Changing the compression of a zfs dataset

Say you created a new dataset with inherited compression=on the dataset got populated and after a while you need to change to compression=off.

Now what does that mean to how the files are stored in that dataset?
Do the files that exist get uncompressed or stay they untouched and compressed?
Do only new created files get stored uncompressed?
Should better a new dataset be created with the option compression=off?
 
existing files stay compressed, new files will be written uncompressed. there's scripts to rewrite the files, and i think newer openzfs has such functionality built in. as to which option is better, only you can make that judgement.
 
Back
Top