Enable inline data compaction for FAS systems
YYou can enable inline data compaction on FAS systems with Flash Pool (hybrid) aggregates or HDD aggregates at the volume level by using the volume efficiency cluster shell command. Data compaction is disabled by default for volumes created on FAS systems. Learn more about volume efficiency in the ONTAP command reference.
To enable inline data compaction on a volume, its -space-guarantee option must be set to none. Enabling data compaction on a volume on an HDD aggregate uses additional CPU resources.
-
Change to the advanced privilege level:
set -privilege advancedLearn more about
setin the ONTAP command reference. -
Check the data compaction state of the volumes and aggregates for the desired node:
volume efficiency show -volume <volume_name>Learn more about
volume efficiency showin the ONTAP command reference. -
Enable data compaction on volume:
volume efficiency modify -volume <volume_name> -data-compaction trueLearn more about
volume efficiency modifyin the ONTAP command reference.If data compaction is set to
falsefor either an aggregate or a volume, then compaction fails. Enabling compaction does not compact existing data; only new writes to the system are compacted. Thevolume efficiency startcommand contains more information about how to compact existing data. Learn more aboutvolume efficiency startin the ONTAP command reference. -
View the compaction statistics:
volume efficiency show -volume <volume_name>