Skip to main content

Enable inline data compaction for FAS systems

Contributors netapp-dbagwell netapp-ahibbard netapp-bhouser netapp-barbe netapp-thomi netapp-aherbin

You 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.

About this task

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.

Steps
  1. Change to the advanced privilege level:

    set -privilege advanced
    Cli
  2. Check the data compaction state of the volumes and aggregates for the desired node:

    volume efficiency show -volume <volume_name>
    Cli
  3. Enable data compaction on volume:

    volume efficiency modify -volume <volume_name> -data-compaction true
    Cli
    Note

    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. The volume efficiency start command contains more information about how to compact existing data. For more information, see the ONTAP command reference.

  4. View the compaction statistics:

    volume efficiency show -volume <volume_name>
    Cli