#How can we get the snapshot used size for a FG and FV?

1 messages · Page 1 of 1 (latest)

brittle seal
#

I only found using
df -h

When finding flexgroup snapshot used size.
vol show and volume snapshot show don't work.
Is there any command that I can use to gte the snapshot used size for both FG and FV?
Or maybe using the ONTAP RestAPI?

marble aspen
#

For me, the volume snapshot show command woks fine for FlexGroups? What do you mean by "doesn't work"?

#

In any case there are other options, like volume show -fields snapshot-space-used,logical-used-by-snapshots or volume show-footprint and volume show-space ....

vestal pilot
#

For FG:

snap show vol_name* -is-cons tr
marble aspen
#

you only need that if you want to see what each constituent consumes. as seen in the screenshot I posted, the whole flexgroup shows the sum of the constituents

brittle seal
#

From what I seen from the command:
vol show MT6299_MDLOG -fields size,used,available,percent-snapshot-space,percent-used,snapshot-space-used,snapshot-policy,snapshot-count
The snapshot-space-used is 0%
vserver volume size available used percent-used percent-snapshot-space snapshot-space-used snapshot-policy snapshot-count


mtksfs11 MT6299_MDLOG 1.19PB 236.3TB 980.1TB 80% 0% ** 0%** snapshot_d7 12

#

And for the second command
volume snapshot show MT6299_MDLOG

Vserver Volume Snapshot Size Total% Used%


mtksfs11 MT6299_MDLOG
bak_20250220_0010 848.7TB 70% 50%
bak_20250220_1355 766.1TB 63% 47%
bak_20250220_1455 762.7TB 63% 47%
bak_20250220_1555 755.7TB 62% 47%
bak_20250221_0010 751.8TB 62% 47%
snapshot_daily.2025-02-27_0010 814.8TB 67% 49%
snapshot_daily.2025-02-28_0010 825.3TB 68% 49%
snapshot_daily.2025-03-01_0010 830.2TB 68% 49%
snapshot_daily.2025-03-02_0010 833.8TB 69% 49%
snapshot_daily.2025-03-03_0010 835.9TB 69% 49%
snapshot_daily.2025-03-04_0010 843.2TB 69% 50%
snapshot_daily.2025-03-05_0010 853.6TB 70% 50%
12 entries were displayed.

And the command to retrieve the FG snapshot usage is using:
df -terabyte MT6299_MDLOG
Filesystem total used avail capacity Mounted on Vserver
/vol/MT6299_MDLOG/ 1216TB 980TB 236TB 80% /MT6299_MDLOG mtksfs11
/vol/MT6299_MDLOG/.snapshot
0TB 120TB 0TB 0% /MT6299_MDLOG/.snapshot mtksfs11

The usage of snapshot for flexgroup is 120TB

brittle seal
marble aspen
#

what you're seeing is snapshot spill, which happens if you set snapshot reserve to 0. All snapshots together consume 120TB but that spills over in your live filesystem so the 980TB used include those 120TB for snapshots

brittle seal