Skip to main content
NetApp Knowledge Base

What is the order between new snapshots auto-creation and old snapshot auto-deletion?

Views:
117
Visibility:
Public
Votes:
0
Category:
ontap-9
Specialty:
core
Last Updated:

Applies to

  • ONTAP 9
  • volume-level Snapshot copies
  • Snapshot  auto-creation\auto-deletion

Answer

ONTAP deletes the oldest snapshot and then generates a new snapshot based on volume snapshot policy 

Additional Information

Example:
lccls910102::> snapshot show -volume vol2;date
                                                                 ---Blocks---
Vserver  Volume   Snapshot                                  Size Total% Used%
-------- -------- ------------------------------------- -------- ------ -----
svm91002 vol2
                  weekly.2023-11-12_0015                  1.26MB     1%   80%
                  weekly.2023-11-19_0015                  1.21MB     1%   79%
                  daily.2023-11-23_0010                   1.16MB     1%   78%
                  daily.2023-11-24_0010                   1.12MB     1%   78%
                  hourly.2023-11-24_0905                   132KB     0%   28%
                  hourly.2023-11-24_1005                   132KB     0%   28%
                  hourly.2023-11-24_1105                   132KB     0%   28%
                  hourly.2023-11-24_1205                   568KB     1%   63%
                  5min.2023-11-25_1555                     136KB     0%   29%
                  5min.2023-11-25_1600                    1.33MB     1%   80%
                  5min.2023-11-25_1605                     132KB     0%   28%
11 entries were displayed.                                                      <<<<<<< Maximum Snapshots for the Schedule of 5min.yyyy-mm-dd_hhmm snapshots is 3.

Node      Date                     Time zone
--------- ------------------------ -------------------------
lccls910102-01
          Sat Nov 25 16:09:59 2023 PRC

lccls910102::> snapshot show -volume vol2;date
                                                                 ---Blocks---
Vserver  Volume   Snapshot                                  Size Total% Used%
-------- -------- ------------------------------------- -------- ------ -----
svm91002 vol2
                  weekly.2023-11-12_0015                  1.26MB     1%   85%
                  weekly.2023-11-19_0015                  1.21MB     1%   85%
                  daily.2023-11-23_0010                   1.16MB     1%   84%
                  daily.2023-11-24_0010                   1.12MB     1%   84%
                  hourly.2023-11-24_0905                   132KB     0%   37%
                  hourly.2023-11-24_1005                   132KB     0%   37%
                  hourly.2023-11-24_1105                   132KB     0%   37%
                  hourly.2023-11-24_1205                   568KB     1%   72%
                  5min.2023-11-25_1600                    1.33MB     1%   86%
                  5min.2023-11-25_1605                     136KB     0%   38%
10 entries were displayed.                                <<<<<<< The oldest snapshot named 5min.2023-11-25_1555 was deleted firstly.

Node      Date                     Time zone
--------- ------------------------ -------------------------
lccls910102-01
          Sat Nov 25 16:10:00 2023 PRC

lccls910102::> snapshot show -volume vol2;date
                                                                 ---Blocks---
Vserver  Volume   Snapshot                                  Size Total% Used%
-------- -------- ------------------------------------- -------- ------ -----
svm91002 vol2
                  weekly.2023-11-12_0015                  1.26MB     1%   79%
                  weekly.2023-11-19_0015                  1.21MB     1%   78%
                  daily.2023-11-23_0010                   1.16MB     1%   77%
                  daily.2023-11-24_0010                   1.12MB     1%   77%
                  hourly.2023-11-24_0905                   132KB     0%   28%
                  hourly.2023-11-24_1005                   132KB     0%   28%
                  hourly.2023-11-24_1105                   132KB     0%   28%
                  hourly.2023-11-24_1205                   568KB     1%   62%
                  5min.2023-11-25_1600                    1.33MB     1%   80%
                  5min.2023-11-25_1605                     136KB     0%   28%
                  5min.2023-11-25_1610                        0B     0%    0%
11 entries were displayed.                                                        <<<<<<< The new snapshot named 5min.2023-11-25_1610 was generated later.

Node      Date                     Time zone
--------- ------------------------ -------------------------
lccls910102-01
          Sat Nov 25 16:10:00 2023 PRC

 

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.