Interactions Between ZFS Compression, Deduplication, and Encryption Properties
Review the following considerations when using the ZFS compression, deduplication, and encryption properties:
-
When a file is written, the data is compressed, encrypted, and the checksum is verified. Then, the data is deduplicated, if possible.
-
When a file is read, the checksum is verified and the data is decrypted. Then, the data is decompressed, if required.
-
If the
dedup
property is enabled on an encrypted file system that is also cloned and thezfs key -K
orzfs clone -K
commands have not been used on the clones, data from all the clones will be deduplicated, if possible.