You can create a policy to automatically delete snapshots when the amount of available
space in your volume is running low. Use the
volume snapshot autodelete modify
When using this command, use your data to replace the following placeholder values:
-
Replace
with the name of the SVM that the volume is created on.svm_name
-
Replace
with name of the volume.vol_name
For -trigger
, assign one of the following values:
volume
– Usevolume
if you want the threshold at which snapshots are deleted to correspond to a total used-volume capacity threshold. The used-volume capacity thresholds that trigger snapshot deletion are determined by the size of your volume, with the threshold scaling from 85–98 percent used capacity. Smaller volumes have a smaller threshold, and larger volumes have a larger one.snap_reserve
– Usesnap_reserve
if you want snapshots to be deleted based on what can be held in your snapshot reserve.
::>
volume snapshot autodelete modify -vserver
svm_name
-volumevol_name
-enabled true -trigger [volume|snap_reserve]
For more information, see the volume snapshot autodelete modify