Skip to main content
NetApp Knowledge Base

How will Snapshots be affected if the snapshot policy is changed?

Views:
212
Visibility:
Public
Votes:
0
Category:
ontap-9
Specialty:
CORE
Last Updated:

Applies to

::> 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.
NetApp provides no representations or warranties regarding the accuracy or reliability or serviceability of any information or recommendations provided in this publication or with respect to any results that may be obtained by the use of the information or observance of any recommendations provided herein. The information in this document is distributed AS IS and the use of this information or the implementation of any recommendations or techniques herein is a customer's responsibility and depends on the customer's ability to evaluate and integrate them into the customer's operational environment. This document and the information contained herein may be used solely in connection with the NetApp products discussed in this document.