ONTAP Recipes

ONTAP Recipes: Manage storage efficiency policies in ONTAP

ontap_recipes

ONTAP Recipes: Did you know you can...?

 

Manage storage efficiency policies in ONTAP  

 

Background (i.e. Post-process) data deduplication and data compression can be run on a FlexVol volume or Infinite Volume.

  • You can schedule a deduplication operation by creating job schedules as part of the efficiency policies or you can specify a threshold percentage, which triggers the deduplication or compression operation only after new data has exceeded the specified percentage.
  • You can disassociate an efficiency policy to stop running any further scheduled based deduplication and data compression operations on the volume by using the volume efficiency modify command.

A volume efficiency policy exists in the context of a Storage Virtual Machine (SVM). The volume efficiency policies support only job schedules that are of type cron."Volume efficiency" is already aliased to "sis" in cluster-shell. Apart from enabling/disabling various storage efficiency features, there are various policies that govern the behavior.

 

ONTAP provides following storage efficiency policies:

  • None: none of the storage efficiency features are enabled.
  • Default:dedupe is ON and deduplication operation start time is set to midnight.
  • --: dedupe is ON, but the user has set a different schedule than default (midnight), so policy becomes "-".
  • Inline: inline data compression, inline data deduplication, inline data compaction and inline data zero detection are enabled.

 You can typically create policies based on:

  • Schedule: when the post-process operation (deduplication/compression) should start.
  • Data Change Rate: how much percentage of data is changed since last operation.
  • QoS: QoS setting

Following are the useful commands to configure deduplication policies in an ONTAP system.

 

Creating an Efficiency Policy

 

  Create a volume efficiency policy named pcy1 that triggers an efficiency operation daily.  

 volume efficiency policy create -vserver vs1 -policy pcy1 -schedule daily

 

  Create a volume efficiency policy named pcy that triggers an efficiency operation when the threshold percentage reaches 40%.

 volume efficiency policy create -vserver vs1 -policy pcy1 -type threshold -start-threshold-percent 40%

 

Setting a Volume Efficiency Policy 

 

  Assign the volume efficiency policy named pcy1 with volume vol1.

 volume efficiency modify -vserver vs1 -volume vol1 -policy pcy1

 

Modifyung a Volume Efficiency Policy

 

  Modify the volume efficiency policy named pcy1 to run every hour.

 volume efficiency policy modify -vserver vs1 -policy pcy1 -schedule hourly

 

  Modify a volume efficiency policy named pcy1 to threshold 20%.

 volume efficiency policy modify -vserver vs1 -policy pcy1 -type threshold -start-threshold-percent 20%

 

Viewing Volume Efficiency Policies

 

  Display information about the policies created for the SVM vs1.

 volume efficiency policy show -vserver vs1

 

  Display the policies for which the duration is set as 8 hours

 volume efficiency policy show -duration 8

 

Disassociate a Volume Efficiency Policy from a Volume

 

  Disassociate the volume efficiency policy from volume vol1.

 volume efficiency modify -vserver vs1 -volume 1ol1 -policy -

 

Delete a Volume Efficiency Policy Not Associated with any Volume

 

   Delete a volume efficiency policy named pcy1.

  volume efficiency policy delete -vserver vs1 -policy pcy1

2 REPLIES 2

tyrone_owen_1

Thanks for the info

 

How can you see which efficiency policy is associated with which volume pls?

Chris_Jones

The "volume efficiency show" command will give you this information. Here is a good reference for it: https://library.netapp.com/ecmdocs/ECMP1610202/html/volume/efficiency/show.html

 

Use the "-instance" parameter or "-fields". Using -fields you can specify which fields are returned. An example of this is:

 

volume efficiency show -vserver svm1 -fields volume, state, status, progress, policy, type, schedule

Announcements
NetApp on Discord Image

We're on Discord, are you?

Live Chat, Watch Parties, and More!

Explore Banner

Meet Explore, NetApp’s digital sales platform

Engage digitally throughout the sales process, from product discovery to configuration, and handle all your post-purchase needs.

NetApp Insights to Action
I2A Banner
Public