You can also delete snapshots in multiple volumes using a wildcard in the –volume option. I do this a lot. Another tip is to go into diag mode and use the –force
command so you are not prompted for each snapshot deletion.
From: toasters-bounces@teaparty.net [mailto:toasters-bounces@teaparty.net]
On Behalf Of Geissler, Norbert
Sent: Tuesday, March 3, 2015 11:04 AM
To: 'Mark Flint'; '<Toasters@teaparty.net>'
Subject: AW: CDOT snapshot thoughts
You can delete multiple snapshots of a volume in cDOT at once,
set snap reserve to zero and stop creating snapshost automagically:
snapshot delete -vserver VSERVER -volume VOLUME -snapshot *
volume modify -vserver VSERVER -volume VOLUME -percent-snapshot-space 0
volume modify -vserver VSERVER -volume VOLUME -snapshot-policy none
Hope that helps automating the task ...
Norbert
--
Von:
toasters-bounces@teaparty.net [mailto:toasters-bounces@teaparty.net]
Im Auftrag von Mark Flint
Gesendet: Dienstag, 3. März 2015 17:26
An: <Toasters@teaparty.net>
Betreff: CDOT snapshot thoughts
So, I have a user who want me to turn of snapshots, and delete the old ones, across about 100 areas, all of over 10TB in size. No problem says I…..
then my poor brain starts to think about how I could do this using the available policies. A colleague suggested altering the specific protection
policy applied to these areas, so that the policy has zero snapshots kept, with the thought that it would slowly ‘age them out’. Turns out not, or
that’s the way it looks at the moment. So, I’m left with a couple of options, basically, manually delete all the snapshots via script, and turn off
snapshotting completely on those areas, and reduce the snap reserve to zero…..or hope the policy will do some magic for me overnight.
Anyone think of a better way to do this?
Happy Tuesday!
This email transmission and any documents, files or previous email messages attached to it may contain information that is confidential or legally privileged.
If you are not the intended recipient or a person responsible for delivering this transmission to the intended recipient, you are hereby notified
that you must not read this transmission and that any disclosure, copying, printing, distribution or use of this transmission is strictly prohibited.
If you have received this transmission in error, please immediately notify the sender by telephone or return email and delete the original transmission and its attachments without reading or saving in any manner.