Say you want to:
- delete all snapshots
- for every volume with the naming convention *LOGS*
- in the vserver (or SVM) called SVM1
- that are older than 30 days
All you need to do from the Clustershell is::>
set -confirmations off
snapshot delete {-vserver SVM1 -volume
*LOGS* -create-time <30d}
set -confirmations on
That’s it!
Setting confirmations to off, just means you don’t have
to answer y to “do you really want to delete this snapshot” for every snapshot.
Image: Deleting all snapshots older than 2 hours using
the curly bracket method
No comments:
Post a Comment
Note: only a member of this blog may post a comment.