Skip to main content
NetApp Knowledge Base

How does deleting affect the disk space consumed by snapshots

Views:
199
Visibility:
Public
Votes:
0
Category:
ontap-9
Specialty:
core
Last Updated:
9/27/2024, 8:38:28 AM

Applies to

ONTAP 9

Answer

By comparing the timestamps of the snapshots, only the snapshots created later will consume disk space corresponding to the size of the deleted data.
Note: Snapshots here also include SnapMirror baseline snapshots.
 
Example:

lccls91001::*> set adv -confirmations off; run local snap status vol4

Volume vol4
snapid  status     date           ownblks release fsRev name
------  ------     ------------   ------- ------- ----- --------
  3     complete   Sep 27 16:05     12913    9.11 44038 snapshot2
  2     complete   Sep 26 16:05        32    9.11 44038 snapshot1
  1     complete   Sep 25 16:05        32    9.11 44038 hourly.2022-09-25_1605


lccls91001::*> snapshot show -volume vol4
                                                                 ---Blocks---
Vserver  Volume   Snapshot                                  Size Total% Used%
-------- -------- ------------------------------------- -------- ------ -----
svm91001 vol4
                  hourly.2022-09-25_1605                   128KB     0%   50%
                  snapshot1                                128KB     0%   50%
                  snapshot2                                50.44MB  25%  100%
3 entries were displayed.

 

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.