Skip to main content
NetApp Knowledge Base

Is turn volume efficiency ON/OFF equal to enable/disable the in-line compression?

Views:
78
Visibility:
Public
Votes:
0
Category:
ontap-9
Specialty:
CORE
Last Updated:

Applies to

ONTAP 9.x

Answer

No.

After disabled the volume efficiency, the in-line compression will be disabled too.

cluster2::> vol efficiency off -vserver * -volume *
Efficiency for volume "vol0" of Vserver "cluster2-01" is disabled.
[Job 59] Job succeeded: Successful
Efficiency for volume "dstsvm1_root" of Vserver "dstsvm1" is disabled.
Efficiency for volume "dstvol1" of Vserver "dstsvm1" is disabled.
[Job 60] Job succeeded: Successful
Efficiency for volume "dstsvm2_root" of Vserver "dstsvm2" is disabled.
Efficiency for volume "dstvol2" of Vserver "dstsvm2" is disabled.
Efficiency for volume "svm1_root" of Vserver "svm1" is disabled.
8 entries were acted on.

cluster2::> vol efficiency show -fields compression , inline-compression , state
vserver     volume state    compression inline-compression
----------- ------ -------- ----------- ------------------
cluster2-01 vol0   Disabled false       false
dstsvm1     dstfg1 Disabled false       false
dstsvm1     dstsvm1_root Disabled false false
dstsvm1     dstvol1 Disabled false      false
dstsvm2     dstfg2 Disabled false       false
dstsvm2     dstsvm2_root Disabled false false
dstsvm2     dstvol2 Disabled false      false
svm1        svm1_root Disabled false    false
8 entries were displayed.

But After re-enable the volume efficiency, the in-line compression will not be re-enabled.

cluster2::> vol efficiency on -vserver * -volume *
Efficiency for volume "vol0" of Vserver "cluster2-01" is enabled.
[Job 61] Job succeeded: Successful
Efficiency for volume "dstsvm1_root" of Vserver "dstsvm1" is enabled.
Efficiency for volume "dstvol1" of Vserver "dstsvm1" is enabled.
[Job 62] Job succeeded: Successful
Efficiency for volume "dstsvm2_root" of Vserver "dstsvm2" is enabled.
Efficiency for volume "dstvol2" of Vserver "dstsvm2" is enabled.
Efficiency for volume "svm1_root" of Vserver "svm1" is enabled.
8 entries were acted on.

cluster2::> vol efficiency show -fields compression , inline-compression , state
vserver     volume state   compression inline-compression
----------- ------ ------- ----------- ------------------
cluster2-01 vol0   Enabled false       false
dstsvm1     dstfg1 Enabled false       false
dstsvm1     dstsvm1_root Enabled false false
dstsvm1     dstvol1 Enabled false      false
dstsvm2     dstfg2 Enabled false       false
dstsvm2     dstsvm2_root Enabled false false
dstsvm2     dstvol2 Enabled false      false
svm1        svm1_root Enabled false    false
8 entries were displayed.

We still need to run the command to re-enable the in-line compression.

cluster2::> vol efficiency modify -vserver * -volume * -compression true -inline-compression true

Error: command failed on vserver "cluster2-01" volume "vol0": Failed to modify efficiency configuration for volume "vol0" of Vserver "cluster2-01": Compression is not allowed on a root volume.

Warning: Do you want to continue running this command? {y|n}: y

Warning: Enabling compression on a secondary volume is strongly discouraged. If compression is enabled on a secondary volume, storage efficiency present on the source will not be preserved during
        replication. The destination system needs to run offline storage efficiency scanner (compression and deduplication) to achieve storage savings. Additional compression savings on the destination
        comes at a cost of extra computation resources. In environments where there is a lot of shared data present on the source, (virtualized environments employing file clones), data inflation during
        transfer may lead to failed backups due to lack of space on the secondary volume.
Do you want to continue? {y|n}: y
[Job 63] Job succeeded: Successful
Info: volume "dstvol1" of vserver "dstsvm1" is a SnapVault destination and the following volume efficiency schedule attributes are not applicable - "Job Schedule", "Duration", and "Enabled".
[Job 64] Job succeeded: Successful
Info: volume "dstvol2" of vserver "dstsvm2" is a SnapVault destination and the following volume efficiency schedule attributes are not applicable - "Job Schedule", "Duration", and "Enabled".
7 entries were modified.

cluster2::> vol efficiency show -fields compression , inline-compression , state
vserver     volume state   compression inline-compression
----------- ------ ------- ----------- ------------------
cluster2-01 vol0   Enabled false       false
dstsvm1     dstfg1 Enabled true        true
dstsvm1     dstsvm1_root Enabled true  true
dstsvm1     dstvol1 Enabled true       true
dstsvm2     dstfg2 Enabled true        true
dstsvm2     dstsvm2_root Enabled true  true
dstsvm2     dstvol2 Enabled true       true
svm1        svm1_root Enabled true     true
8 entries were displayed.

 

Additional Information

additionalInformation_text

 

NetApp provides no representations or warranties regarding the accuracy or reliability or serviceability of any information or recommendations provided in this publication or with respect to any results that may be obtained by the use of the information or observance of any recommendations provided herein. The information in this document is distributed AS IS and the use of this information or the implementation of any recommendations or techniques herein is a customer's responsibility and depends on the customer's ability to evaluate and integrate them into the customer's operational environment. This document and the information contained herein may be used solely in connection with the NetApp products discussed in this document.