Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

Suppose I created a pool with compression=on, and later wanted to turn off compression in-place - is that possible and if so how?

I'm using Zevo CE on OS X in case that makes any difference (zpool version 28).

share|improve this question
add comment

2 Answers

up vote 2 down vote accepted

Sure - zfs set compression=off pool/filesystem (or just zfs set compression=off pool for the pool's root filesystem).

Note that this does not go back and decompress data that's already been written - you'll need to re-write the data to do that (zfs send and zfs recv can help with this).

share|improve this answer
add comment

Yes, you can do this live. You can even change the compression type...

Remember the distinction between zfs pools and filesystems. Compression properties are set at the zfs filesystem level.

New data to the pool will be uncompressed if you turn it off.

May I ask why you're interested in disabling compression? The recommendation for ZFS is to leave compression ON unless you know your dataset if going to be comprised of non-compressible data (e.g. .tiff files or other media files).

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.