Snapshots size shows 0KB or changes after creation in ONTAP
Applies to
- ONTAP 9
- Clustered Data ONTAP 8
- Snapshots
Issue
System Manager shows snapshots with the size of 0 KB.
- The same behavior can be observed when viewing snapshots from the command line:
::> volume snapshot show -vserver svm01 -volume volume1
Vserver Volume Snapshot Size Total% Used%
-------- -------- ------------------------------------- -------- ------ -----
svm01
volume1
daily.2017-01-01_0010 5.55MB 0% 0%
weekly.2017-01-01_0015 3.05GB 0% 0%
daily.2017-01-04_0010 0B 0% 0%
daily.2017-01-05_0010 0B 0% 0%
daily.2017-01-06_0010 0B 0% 0%
- Snapshot size changes after creation.
Snapshot space usage can be checked by running the following commands:
Thevolume snapshot show
command displays information about Snapshot copies
::> volume snapshot show -volume vol_name
The volume snapshot compute-reclaimable command calculates the volume space that can be reclaimed if one or more specified Snapshot copies are deleted.
Note: This can be a long-running task.
::> volume snapshot compute-reclaimable -vserver SVM_name -volume vol_name -snapshots snapshot_name
For volume snapshot compute-reclaimable command options, refer to the man page.
- The size of the individual snapshots does not add up to the snapshot used size in the
df -h
orvolume show-space
commands. - The issue can cause a snapshot spill when the snapshot usage does not seem higher than the snapshot reserve.