メインコンテンツまでスキップ

Defer deleteとDelete orderの間で優先度が高いスナップショット自動削除オプションはどれですか。

Views:
38
Visibility:
Public
Votes:
0
Category:
fas-systems<a>Snapshotの自動削除</a><a>200201245</a>
Specialty:
core
Last Updated:

環境

ONTAP 9

回答

Defer delete オプションの優先順位は高くなります。

追加情報

このテスト結果を参照してください。
 

cluster1::*> version
NetApp Release Dirtwolf__9.8.0: Wed Dec 09 01:07:39 UTC 2020

cluster1::*> snapshot  autodelete show -vserver svm1_cluster1 -volume vol5
         Vserver Name: svm1_cluster1
          Volume Name: vol5
              Enabled: true
           Commitment: try
         Defer Delete: user_created
         Delete Order: oldest_first
  Defer Delete Prefix: (not specified)
    Target Free Space: 20%
              Trigger: snap_reserve
         Destroy List: none
Is Constituent Volume: false

Orignialy:Snapshotリザーブ容量は10%です。これにより、Snapshotの自動削除は実行されません

luster1::*> df vol5
Filesystem              kbytes       used      avail capacity  Mounted on                 Vserver
/vol/vol5/              996148     103396     892752      10%  /vol5                      svm1_cluster1
/vol/vol5/.snapshot      52428       5040      47388      10%  /vol5/.snapshot            svm1_cluster1
2 entries were displayed.

cluster1::*> snapshot show -vserver svm1_cluster1 -volume vol5 -fields vserver,volume,snapshot,size,create-time
vserver       volume snapshot create-time              size
------------- ------ -------- ------------------------ -----
svm1_cluster1 vol5   user1    Wed Jun 15 05:32:27 2022 172KB
svm1_cluster1 vol5   user2    Wed Jun 15 05:32:44 2022 156KB
svm1_cluster1 vol5   user3    Wed Jun 15 05:32:48 2022 160KB
svm1_cluster1 vol5   user4    Wed Jun 15 05:32:51 2022 160KB
svm1_cluster1 vol5   user5    Wed Jun 15 05:32:53 2022 140KB
svm1_cluster1 vol5   5min.2022-06-15_0535 Wed Jun 15 05:35:00 2022 180KB
svm1_cluster1 vol5   user6    Wed Jun 15 05:37:12 2022 172KB
svm1_cluster1 vol5   user7    Wed Jun 15 05:37:15 2022 140KB
svm1_cluster1 vol5   user8    Wed Jun 15 05:37:17 2022 180KB
svm1_cluster1 vol5   user9    Wed Jun 15 05:37:20 2022 140KB
svm1_cluster1 vol5   user10   Wed Jun 15 05:37:23 2022 140KB
svm1_cluster1 vol5   user11   Wed Jun 15 05:37:40 2022 200KB
svm1_cluster1 vol5   user112  Wed Jun 15 05:37:43 2022 140KB
svm1_cluster1 vol5   user13   Wed Jun 15 05:37:49 2022 140KB
svm1_cluster1 vol5   user14   Wed Jun 15 05:37:53 2022 212KB
svm1_cluster1 vol5   user15   Wed Jun 15 05:37:57 2022 140KB
svm1_cluster1 vol5   user16   Wed Jun 15 05:38:17 2022 140KB
svm1_cluster1 vol5   user17   Wed Jun 15 05:38:21 2022 212KB
svm1_cluster1 vol5   user18   Wed Jun 15 05:38:25 2022 140KB
svm1_cluster1 vol5   user19   Wed Jun 15 05:38:27 2022 140KB
svm1_cluster1 vol5   user20   Wed Jun 15 05:38:31 2022 140KB
svm1_cluster1 vol5   user21   Wed Jun 15 05:39:26 2022 140KB
svm1_cluster1 vol5   user22   Wed Jun 15 05:39:46 2022 240KB
svm1_cluster1 vol5   user23   Wed Jun 15 05:39:51 2022 140KB
svm1_cluster1 vol5   user24   Wed Jun 15 05:39:57 2022 140KB
svm1_cluster1 vol5   5min.2022-06-15_0540 Wed Jun 15 05:40:00 2022 140KB
svm1_cluster1 vol5   user25   Wed Jun 15 05:40:01 2022 140KB
svm1_cluster1 vol5   5min.2022-06-15_0545 Wed Jun 15 05:45:00 2022 252KB
svm1_cluster1 vol5   5min.2022-06-15_0550 Wed Jun 15 05:50:00 2022 164KB
svm1_cluster1 vol5   user26   Wed Jun 15 05:52:07 2022 140KB
svm1_cluster1 vol5   user27   Wed Jun 15 05:52:18 2022 200KB
31 entries were displayed.

ここでは、70MBのデータがアクティブファイルシステムから削除され、削除されたデータは、最新のスナップショット user27
のスナップショット予約容量を使ってスナップショット予約容量を148%に増やしました

cluster1::*> snapshot show -vserver svm1_cluster1 -volume vol5 -fields vserver,volume,snapshot,size,create-tim                                                                                                                                   e
vserver       volume snapshot create-time              size
------------- ------ -------- ------------------------ -----
svm1_cluster1 vol5   user1    Wed Jun 15 05:32:27 2022 172KB
svm1_cluster1 vol5   user2    Wed Jun 15 05:32:44 2022 156KB
svm1_cluster1 vol5   user3    Wed Jun 15 05:32:48 2022 160KB
svm1_cluster1 vol5   user4    Wed Jun 15 05:32:51 2022 160KB
svm1_cluster1 vol5   user5    Wed Jun 15 05:32:53 2022 140KB
svm1_cluster1 vol5   5min.2022-06-15_0535 Wed Jun 15 05:35:00 2022 180KB
svm1_cluster1 vol5   user6    Wed Jun 15 05:37:12 2022 172KB
svm1_cluster1 vol5   user7    Wed Jun 15 05:37:15 2022 140KB
svm1_cluster1 vol5   user8    Wed Jun 15 05:37:17 2022 180KB
svm1_cluster1 vol5   user9    Wed Jun 15 05:37:20 2022 140KB
svm1_cluster1 vol5   user10   Wed Jun 15 05:37:23 2022 140KB
svm1_cluster1 vol5   user11   Wed Jun 15 05:37:40 2022 200KB
svm1_cluster1 vol5   user112  Wed Jun 15 05:37:43 2022 140KB
svm1_cluster1 vol5   user13   Wed Jun 15 05:37:49 2022 140KB
svm1_cluster1 vol5   user14   Wed Jun 15 05:37:53 2022 212KB
svm1_cluster1 vol5   user15   Wed Jun 15 05:37:57 2022 140KB
svm1_cluster1 vol5   user16   Wed Jun 15 05:38:17 2022 140KB
svm1_cluster1 vol5   user17   Wed Jun 15 05:38:21 2022 212KB
svm1_cluster1 vol5   user18   Wed Jun 15 05:38:25 2022 140KB
svm1_cluster1 vol5   user19   Wed Jun 15 05:38:27 2022 140KB
svm1_cluster1 vol5   user20   Wed Jun 15 05:38:31 2022 140KB
svm1_cluster1 vol5   user21   Wed Jun 15 05:39:26 2022 140KB
svm1_cluster1 vol5   user22   Wed Jun 15 05:39:46 2022 240KB
svm1_cluster1 vol5   user23   Wed Jun 15 05:39:51 2022 140KB
svm1_cluster1 vol5   user24   Wed Jun 15 05:39:57 2022 140KB
svm1_cluster1 vol5   5min.2022-06-15_0540 Wed Jun 15 05:40:00 2022 140KB
svm1_cluster1 vol5   user25   Wed Jun 15 05:40:01 2022 140KB
svm1_cluster1 vol5   5min.2022-06-15_0545 Wed Jun 15 05:45:00 2022 252KB
svm1_cluster1 vol5   5min.2022-06-15_0550 Wed Jun 15 05:50:00 2022 164KB
svm1_cluster1 vol5   user26   Wed Jun 15 05:52:07 2022 140KB
svm1_cluster1 vol5   user27   Wed Jun 15 05:52:18 2022 71.28MB
31 entries were displayed.

cluster1::*> df vol5
Filesystem              kbytes       used      avail capacity  Mounted on                 Vserver
/vol/vol5/              996148      55888     940260       5%  /vol5                      svm1_cluster1
/vol/vol5/.snapshot      52428      77724          0     148%  /vol5/.snapshot            svm1_cluster1
2 entries were displayed.

Snapshotの自動削除機能が起動しました。
スケジュールされたSnapshotから順に削除されます 5min.2022-06-15_0535

cluster1::*> snapshot show -vserver svm1_cluster1 -volume vol5 -fields vserver,volume,snapshot,size,create-tim                                                                                                                                   e
vserver       volume snapshot create-time              size
------------- ------ -------- ------------------------ -----
svm1_cluster1 vol5   user1    Wed Jun 15 05:32:27 2022 172KB
svm1_cluster1 vol5   user2    Wed Jun 15 05:32:44 2022 156KB
svm1_cluster1 vol5   user3    Wed Jun 15 05:32:48 2022 160KB
svm1_cluster1 vol5   user4    Wed Jun 15 05:32:51 2022 160KB
svm1_cluster1 vol5   user5    Wed Jun 15 05:32:53 2022 168KB
svm1_cluster1 vol5   user6    Wed Jun 15 05:37:12 2022 172KB
svm1_cluster1 vol5   user7    Wed Jun 15 05:37:15 2022 140KB
svm1_cluster1 vol5   user8    Wed Jun 15 05:37:17 2022 180KB
svm1_cluster1 vol5   user9    Wed Jun 15 05:37:20 2022 140KB
svm1_cluster1 vol5   user10   Wed Jun 15 05:37:23 2022 140KB
svm1_cluster1 vol5   user11   Wed Jun 15 05:37:40 2022 200KB
svm1_cluster1 vol5   user112  Wed Jun 15 05:37:43 2022 140KB
svm1_cluster1 vol5   user13   Wed Jun 15 05:37:49 2022 140KB
svm1_cluster1 vol5   user14   Wed Jun 15 05:37:53 2022 212KB
svm1_cluster1 vol5   user15   Wed Jun 15 05:37:57 2022 140KB
svm1_cluster1 vol5   user16   Wed Jun 15 05:38:17 2022 140KB
svm1_cluster1 vol5   user17   Wed Jun 15 05:38:21 2022 212KB
svm1_cluster1 vol5   user18   Wed Jun 15 05:38:25 2022 140KB
svm1_cluster1 vol5   user19   Wed Jun 15 05:38:27 2022 140KB
svm1_cluster1 vol5   user20   Wed Jun 15 05:38:31 2022 140KB
svm1_cluster1 vol5   user21   Wed Jun 15 05:39:26 2022 140KB
svm1_cluster1 vol5   user22   Wed Jun 15 05:39:46 2022 240KB
svm1_cluster1 vol5   user23   Wed Jun 15 05:39:51 2022 140KB
svm1_cluster1 vol5   user24   Wed Jun 15 05:39:57 2022 140KB
svm1_cluster1 vol5   user25   Wed Jun 15 05:40:01 2022 140KB
svm1_cluster1 vol5   5min.2022-06-15_0545 Wed Jun 15 05:45:00 2022 252KB
svm1_cluster1 vol5   5min.2022-06-15_0550 Wed Jun 15 05:50:00 2022 164KB
svm1_cluster1 vol5   user26   Wed Jun 15 05:52:07 2022 140KB
svm1_cluster1 vol5   user27   Wed Jun 15 05:52:18 2022 71.32MB
29 entries were displayed.

また、ほとんどのスナップショットはすぐに削除されます

cluster1::*> snapshot show -vserver svm1_cluster1 -volume vol5 -fields vserver,volume,snapshot,size,create-time
vserver       volume snapshot create-time              size
------------- ------ -------- ------------------------ -----
svm1_cluster1 vol5   user24   Wed Jun 15 05:39:57 2022 140KB
svm1_cluster1 vol5   user25   Wed Jun 15 05:40:01 2022 264KB
svm1_cluster1 vol5   user26   Wed Jun 15 05:52:07 2022 140KB
svm1_cluster1 vol5   user27   Wed Jun 15 05:52:18 2022 71.33MB
4 entries were displayed.

Snapshotリザーブ容量は140%です

cluster1::*> df vol5
Filesystem              kbytes       used      avail capacity  Mounted on                 Vserver
/vol/vol5/              996148      52448     943700       5%  /vol5                      svm1_cluster1
/vol/vol5/.snapshot      52428      73444          0     140%  /vol5/.snapshot            svm1_cluster1
2 entries were displayed.

Snapshotの自動削除が続行されます

cluster1::*> snapshot show -vserver svm1_cluster1 -volume vol5 -fields vserver,volume,snapshot,size,create-time
vserver       volume snapshot create-time              size
------------- ------ -------- ------------------------ -----
svm1_cluster1 vol5   user26   Wed Jun 15 05:52:07 2022 140KB
svm1_cluster1 vol5   user27   Wed Jun 15 05:52:18 2022 71.33MB
2 entries were displayed.

cluster1::*> snapshot show -vserver svm1_cluster1 -volume vol5 -fields vserver,volume,snapshot,size,create-time
vserver       volume snapshot create-time              size
------------- ------ -------- ------------------------ -------
svm1_cluster1 vol5   user27   Wed Jun 15 05:52:18 2022 71.33MB

cluster1::*> snapshot show -vserver svm1_cluster1 -volume vol5 -fields vserver,volume,snapshot,size,create-time
vserver       volume snapshot create-time              size
------------- ------ -------- ------------------------ -------
svm1_cluster1 vol5   user27   Wed Jun 15 05:52:18 2022 71.33MB

最後に、すべてのSnapshotが削除され、Snapshotリザーブスペースが解放されます

cluster1::*> snapshot show -vserver svm1_cluster1 -volume vol5 -fields vserver,volume,snapshot,size,create-time
There are no entries matching your query.

cluster1::*> df vol5
Filesystem              kbytes       used      avail capacity  Mounted on                 Vserver
/vol/vol5/              996148      30456     965692       3%  /vol5                      svm1_cluster1
/vol/vol5/.snapshot      52428          0      52428       0%  /vol5/.snapshot            svm1_cluster1
2 entries were displayed.

event log show 正確なSnapshot削除順序を記録しました

cluster1::*> event log show
Time                Node             Severity      Event
------------------- ---------------- ------------- ---------------------------
6/15/2022 05:58:56  cluster1-01      INFORMATIONAL wafl.volume.snap.autoDelete: Deleting Snapshot copy 'user27' in volume 'vol5@vserver:5f4c3202-5759-11eb-b4fc-005056b0b181' to recover storage.
6/15/2022 05:58:45  cluster1-01      INFORMATIONAL wafl.volume.snap.autoDelete: Deleting Snapshot copy 'user26' in volume 'vol5@vserver:5f4c3202-5759-11eb-b4fc-005056b0b181' to recover storage.
6/15/2022 05:58:35  cluster1-01      INFORMATIONAL wafl.volume.snap.autoDelete: Deleting Snapshot copy 'user25' in volume 'vol5@vserver:5f4c3202-5759-11eb-b4fc-005056b0b181' to recover storage.
6/15/2022 05:58:24  cluster1-01      INFORMATIONAL wafl.volume.snap.autoDelete: Deleting Snapshot copy 'user24' in volume 'vol5@vserver:5f4c3202-5759-11eb-b4fc-005056b0b181' to recover storage.
6/15/2022 05:58:13  cluster1-01      INFORMATIONAL wafl.volume.snap.autoDelete: Deleting Snapshot copy 'user23' in volume 'vol5@vserver:5f4c3202-5759-11eb-b4fc-005056b0b181' to recover storage.
6/15/2022 05:58:02  cluster1-01      INFORMATIONAL wafl.volume.snap.autoDelete: Deleting Snapshot copy 'user22' in volume 'vol5@vserver:5f4c3202-5759-11eb-b4fc-005056b0b181' to recover storage.
6/15/2022 05:57:51  cluster1-01      INFORMATIONAL wafl.volume.snap.autoDelete: Deleting Snapshot copy 'user21' in volume 'vol5@vserver:5f4c3202-5759-11eb-b4fc-005056b0b181' to recover storage.
6/15/2022 05:57:40  cluster1-01      INFORMATIONAL wafl.volume.snap.autoDelete: Deleting Snapshot copy 'user20' in volume 'vol5@vserver:5f4c3202-5759-11eb-b4fc-005056b0b181' to recover storage.
6/15/2022 05:57:30  cluster1-01      INFORMATIONAL wafl.volume.snap.autoDelete: Deleting Snapshot copy 'user19' in volume 'vol5@vserver:5f4c3202-5759-11eb-b4fc-005056b0b181' to recover storage.
6/15/2022 05:57:19  cluster1-01      INFORMATIONAL wafl.volume.snap.autoDelete: Deleting Snapshot copy 'user18' in volume 'vol5@vserver:5f4c3202-5759-11eb-b4fc-005056b0b181' to recover storage.
6/15/2022 05:57:08  cluster1-01      INFORMATIONAL wafl.volume.snap.autoDelete: Deleting Snapshot copy 'user17' in volume 'vol5@vserver:5f4c3202-5759-11eb-b4fc-005056b0b181' to recover storage.
6/15/2022 05:56:58  cluster1-01      INFORMATIONAL wafl.volume.snap.autoDelete: Deleting Snapshot copy 'user16' in volume 'vol5@vserver:5f4c3202-5759-11eb-b4fc-005056b0b181' to recover storage.
6/15/2022 05:56:47  cluster1-01      INFORMATIONAL wafl.volume.snap.autoDelete: Deleting Snapshot copy 'user15' in volume 'vol5@vserver:5f4c3202-5759-11eb-b4fc-005056b0b181' to recover storage.
6/15/2022 05:56:36  cluster1-01      INFORMATIONAL wafl.volume.snap.autoDelete: Deleting Snapshot copy 'user14' in volume 'vol5@vserver:5f4c3202-5759-11eb-b4fc-005056b0b181' to recover storage.
6/15/2022 05:56:25  cluster1-01      INFORMATIONAL wafl.volume.snap.autoDelete: Deleting Snapshot copy 'user13' in volume 'vol5@vserver:5f4c3202-5759-11eb-b4fc-005056b0b181' to recover storage.
6/15/2022 05:56:04  cluster1-01      INFORMATIONAL wafl.volume.snap.autoDelete: Deleting Snapshot copy 'user11' in volume 'vol5@vserver:5f4c3202-5759-11eb-b4fc-005056b0b181' to recover storage.
6/15/2022 05:55:53  cluster1-01      INFORMATIONAL wafl.volume.snap.autoDelete: Deleting Snapshot copy 'user10' in volume 'vol5@vserver:5f4c3202-5759-11eb-b4fc-005056b0b181' to recover storage.
6/15/2022 05:55:43  cluster1-01      INFORMATIONAL wafl.volume.snap.autoDelete: Deleting Snapshot copy 'user9' in volume 'vol5@vserver:5f4c3202-5759-11eb-b4fc-005056b0b181' to recover storage.
6/15/2022 05:55:32  cluster1-01      INFORMATIONAL wafl.volume.snap.autoDelete: Deleting Snapshot copy 'user8' in volume 'vol5@vserver:5f4c3202-5759-11eb-b4fc-005056b0b181' to recover storage.
6/15/2022 05:55:21  cluster1-01      INFORMATIONAL wafl.volume.snap.autoDelete: Deleting Snapshot copy 'user7' in volume 'vol5@vserver:5f4c3202-5759-11eb-b4fc-005056b0b181' to recover storage.
6/15/2022 05:55:00  cluster1-01      INFORMATIONAL wafl.volume.snap.autoDelete: Deleting Snapshot copy '5min.2022-06-15_0555' in volume 'vol5@vserver:5f4c3202-5759-11eb-b4fc-005056b0b181' to recover storage.
6/15/2022 05:55:00  cluster1-01      INFORMATIONAL wafl.vol.snap_create.done: type="Volume", owner="", vol="vol5", app="", volident="@vserver:5f4c3202-5759-11eb-b4fc-005056b0b181", run_time="0"
6/15/2022 05:54:55  cluster1-01      INFORMATIONAL wafl.volume.snap.autoDelete: Deleting Snapshot copy 'user6' in volume 'vol5@vserver:5f4c3202-5759-11eb-b4fc-005056b0b181' to recover storage.
6/15/2022 05:54:44  cluster1-01      INFORMATIONAL wafl.volume.snap.autoDelete: Deleting Snapshot copy 'user5' in volume 'vol5@vserver:5f4c3202-5759-11eb-b4fc-005056b0b181' to recover storage.
6/15/2022 05:54:34  cluster1-01      INFORMATIONAL wafl.volume.snap.autoDelete: Deleting Snapshot copy 'user4' in volume 'vol5@vserver:5f4c3202-5759-11eb-b4fc-005056b0b181' to recover storage.
6/15/2022 05:54:23  cluster1-01      INFORMATIONAL wafl.volume.snap.autoDelete: Deleting Snapshot copy 'user3' in volume 'vol5@vserver:5f4c3202-5759-11eb-b4fc-005056b0b181' to recover storage.
6/15/2022 05:54:12  cluster1-01      INFORMATIONAL wafl.volume.snap.autoDelete: Deleting Snapshot copy 'user2' in volume 'vol5@vserver:5f4c3202-5759-11eb-b4fc-005056b0b181' to recover storage.
6/15/2022 05:54:02  cluster1-01      INFORMATIONAL wafl.volume.snap.autoDelete: Deleting Snapshot copy 'user1' in volume 'vol5@vserver:5f4c3202-5759-11eb-b4fc-005056b0b181' to recover storage.
6/15/2022 05:53:51  cluster1-01      INFORMATIONAL wafl.volume.snap.autoDelete: Deleting Snapshot copy '5min.2022-06-15_0550' in volume 'vol5@vserver:5f4c3202-5759-11eb-b4fc-005056b0b181' to recover storage.
6/15/2022 05:53:40  cluster1-01      INFORMATIONAL wafl.volume.snap.autoDelete: Deleting Snapshot copy '5min.2022-06-15_0545' in volume 'vol5@vserver:5f4c3202-5759-11eb-b4fc-005056b0b181' to recover storage.
6/15/2022 05:53:29  cluster1-01      INFORMATIONAL wafl.volume.snap.autoDelete: Deleting Snapshot copy '5min.2022-06-15_0540' in volume 'vol5@vserver:5f4c3202-5759-11eb-b4fc-005056b0b181' to recover storage.
6/15/2022 05:53:19  cluster1-01      INFORMATIONAL wafl.volume.snap.autoDelete: Deleting Snapshot copy '5min.2022-06-15_0535' in volume 'vol5@vserver:5f4c3202-5759-11eb-b4fc-005056b0b181' to recover storage.

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.