Table of ContentsView in Frames

Moving between secondary and adaptive compression

You can move between secondary compression and adaptive compression depending on the amount of data read. Adaptive compression is typically preferred when there are lot of random reads on the system and higher performance is required. Secondary compression is preferred when data is written sequentially, and higher compression savings are required.

About this task

The default compression is selected based on your aggregates and platform.

Steps

  1. Use the volume efficiency modify command to disable data compression on the volume.
    Example

    The following command disables data compression on the volume vol1:

    volume efficiency modify -compression false -inline-compression false -volume vol1
  2. Use the set -privilege advanced command to change the privilege level to advanced.
  3. Use the volume efficiency undo command to decompress the compressed data.
    Example

    The following command decompress the compressed data on the volume vol1:

    volume efficiency undo -vserver vs1 -volume vol1 -compression true
  4. Use the volume efficiency show command to ensure that the status of the operation is idle.
    Example

    The following command displays the status of an efficiency operation on volume vol1:

    volume efficiency show -vserver vs1 -volume vol1
  5. Use the volume efficiency modify command to enable data compression and set the type of compression.
    Example

    The following command enables data compression and sets the compression type as secondary compression on the volume vol1:

    volume efficiency modify -vserver vs1 -volume vol1 -compression true -compression-type secondary
  6. Use the set -privilege admin command to change the privilege level to admin.
  7. Optional: Use the volume efficiency modify command to enable inline compression.
    Example

    The following command enables inline compression on the volume vol1:

    volume efficiency modify -vserver vs1 -volume vol1 -inline-compression true