3.9. Changing the compression settings on an LVM-VDO volume
By default, the compression of a VDO pool logical volume (LV) is enabled. To save CPU usage, you can disable it. Enable or disable compression by using the lvchange command.
Prerequisites
- An LVM-VDO volume exists on your system.
Procedure
Check the compression status for your logical volumes:
# lvs -o+vdo_compression,vdo_compression_stateLV VG Attr LSize Pool Origin Data% Meta% Move Log Cpy%Sync Convert VDOCompression VDOCompressionState <vdo_name> <vg_name> vwi-a-v--- 1.00t vpool0 0.00 enabled online vpool0 <vg_name> dwi------- <15.00g 20.03 enabled onlineDisable the compression for VDOPoolLV:
# lvchange --compression n <vg_name>/<vdo_pool_name>If you want to enable the compression, use the
yoption instead ofn.
Verification
View the current status of compression:
# lvs -o+vdo_compression,vdo_compression_stateLV VG Attr LSize Pool Origin Data% Meta% Move Log Cpy%Sync Convert VDOCompression VDOCompressionState <vdo_name> <vg_name> vwi-a-v--- 1.00t vpool0 0.00 offline vpool0 <vg_name> dwi------- <15.00g 20.03 offline