====== ZFS compresison ======
zfs get compression
zfs get compression /rpool
zfs get compressratio
zfs get compressratio /rpool
zfs get compression,compressratio,used,logicalused,referenced,logicalreferenced rpool/data/subvol-118-disk-0
===== switch to ZSTD =====
From OpenZFS 2.0.0 there is support for ZSTD:
zpool get all | grep compr
nvmpool feature@lz4_compress active local
nvmpool feature@zstd_compress disabled local
rpool feature@lz4_compress active local
rpool feature@zstd_compress disabled local
zfs get all rpool | grep compr
rpool compressratio 1.16x -
rpool compression on local
rpool refcompressratio 1.00x -
zfs set compression=zstd rpool/data
cannot set property for 'rpool/data': pool and or dataset must be upgraded to set this property or value