Skip to main content

Enabling inline data compaction for Hybrid systems

You can control inline data compaction on Hybrid systems with Flash Pool (hybrid) aggregates or HDD aggregates at the volume or aggregate level by using the wafl compaction enable node shell command. Data compaction is disabled by default for Hybrid systems.

About this task

If you enable data compaction at the aggregate level, data compaction is enabled on any new volume that is created with a volume space guarantee of none in the aggregate. Enabling data compaction on a volume on an HDD aggregate uses additional CPU resources.

  1. Change to the advanced privilege level: set -privilege advanced
  2. Check the data compaction state of the volumes and aggregates for the desired node: node run –node node_name –command wafl compaction status -all
  3. Enable data compaction on the aggregate and volume:
    • For aggregates: node run –node node_name –command wafl compaction enable –A aggregate_name
    • For volumes: node run –node node_name –command wafl compaction enable volume_name

    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 (in ONTAP 9.5 and later).

    ONTAP Command man pages

  4. View the compaction statistics: node run –node node_name –command wafl compaction stats