Table of ContentsView in Frames

Deleting Snapshot copies automatically

You can define and enable a policy for automatically deleting Snapshot copies and FlexClone LUNs. Automatically deleting Snapshot copies and FlexClone LUNs can help you manage space utilization.

About this task

You can automatically delete Snapshot copies from read-write volumes and FlexClone LUNs from read-write parent volumes. You cannot set up automatic deletion of Snapshot copies from Infinite Volumes or from read-only volumes, for example, SnapMirror destination volumes.

Step

  1. Define and enable a policy for automatically deleting Snapshot copies by using the volume snapshot autodelete modify command.
    See the volume snapshot autodelete modify man page for information about the parameters that you can use with this command to define a policy that meets your needs.
    Example
    The following command enables the automatic deletion of Snapshot copies and sets the trigger to snap_reserve for the vol3 volume, which is part of the vs0.example.com Storage Virtual Machine (SVM):
    cluster1::> volume snapshot autodelete modify -vserver vs0.example.com 
    -volume vol3 -enabled true -trigger snap_reserve
    Example
    The following command enables the automatic deletion of Snapshot copies and of FlexClone LUNs marked for autodeletion for the vol3 volume, which is part of the vs0.example.com Storage Virtual Machine (SVM):
    cluster1::> volume snapshot autodelete modify -vserver vs0.example.com 
    -volume vol3 -enabled true -trigger volume -commitment try -delete-order 
    oldest_first -destroy-list lun_clone,file_clone