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 advanced
Learn more about
set
in 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 show
in the ONTAP command reference. -
Enable data compaction on volume:
volume efficiency modify -volume <volume_name> -data-compaction true
Learn more about
volume efficiency modify
in the ONTAP command reference.If data compaction is set to
false
for 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 start
command contains more information about how to compact existing data. Learn more aboutvolume efficiency start
in the ONTAP command reference. -
View the compaction statistics:
volume efficiency show -volume <volume_name>