How will Snapshots be affected if the snapshot policy is changed?
Applies to
- ONTAP 9
- Snapshot
- Configure custom Snapshot policies
- Suppose Snapshot policies with the old policy and new policy only differ in the
countand theprefixis the same for both:
::> snapshot policy show
Vserver: svm1
Number of Is
Policy Name Schedules Enabled Comment
------------------------ --------- ------- ----------------------------------
new_policy 1 true -
Schedule Count Prefix SnapMirror Label Retention Period
-------------- ----- ------------- ------------------ ------------------
5min 7 5min - 6 minutes
old_policy 1 true -
Schedule Count Prefix SnapMirror Label Retention Period
-------------- ----- ------------- ------------------ ------------------
5min 30 5min - 6 minutes
::> vol modify -vserver svm1 -volume vol1 -snapshot-policy new_policy
Answer
There will be 7 snapshots on vol1 due to the reasons below:
- ONTAP identifies Snapshots by their prefix and performs rotation accordingly.
- ONTAP deletes the oldest snapshot and then generates a new snapshot based on volume's snapshot policy.
