[SOLVED] ZFS Compression, what is the best to use?

fireon

Distinguished Member
Oct 25, 2010
4,596
544
183
Austria/Graz
deepdoc.at
Hello,

this day have seen that compression is default on (rpool) lz4 by new installations. On my old installation (Upgrade machine from pve3 to pve4) there is the defaultcompression to "on". So what are the differences?

On my v-machines pool the compression was not activated. I set it this day to "on" and one VM to "lz4". So what is right?

Code:
zfs get compression
NAME                                           PROPERTY     VALUE     SOURCE
rpool                                          compression  on        local
rpool/ROOT                                     compression  on        inherited from rpool
rpool/ROOT/pve-1                               compression  on        inherited from rpool
rpool/ROOT/pve-1@12_2015                       compression  -         -
rpool/ROOT/pve-1/vm-108-disk-1                 compression  on        inherited from rpool
rpool/swap                                     compression  on        inherited from rpool
v-machines                                     compression  on        local
v-machines/home                                compression  on        inherited from v-machines
v-machines/home@12_2015                        compression  -         -
v-machines/vm-100-disk-2                       compression  lz4       local
v-machines/vm-100-disk-2@vor_vnsi_xvdr_update  compression  -         -
v-machines/vm-101-disk-1                       compression  on        local
v-machines/vm-102-disk-1                       compression  on        inherited from v-machines
v-machines/vm-102-disk-1@vor_kernel4           compression  -         -
v-machines/vm-102-state-vor_kernel4            compression  on        inherited from v-machines
v-machines/vm-103-disk-2                       compression  on        inherited from v-machines
v-machines/vm-104-disk-1                       compression  on        inherited from v-machines
v-machines/vm-105-disk-1                       compression  on        inherited from v-machines
v-machines/vm-106-disk-1                       compression  on        inherited from v-machines
v-machines/vm-107-disk-1                       compression  on        inherited from v-machines

Thanks and best Regards
fireon