The transition to NetApp MS Azure AD B2C is complete. If you missed the pre-registration, you will be invited to reigister at next log in.
Please note that access to your NetApp data may take up to 1 hour.
To learn more, read the FAQ and watch the video.
Need assistance? Complete this form and select “Registration Issue” as the Feedback Category.

ONTAP Discussions

Finding Large Snapshots

PhilyBoy

A very useful command to search the entire cluster for snapshots older than a specified number of hours is this:

volume snapshot show -create-time <1000h -fields create-time, size

This helped hugely to track down old snaps and zap 'em. One was 3.1TB !

So taking this theme and developing it I now want to find any snapshot accross the cluster bigger than a specified size. However the same type of command doesn't work:

volume snapshot show -size <100GB -fields size

What am I doing wrong ?? Or does anyone know of a command which will displat snapshots for all volumes over a certain size ??

 

Many thanks !

 

1 ACCEPTED SOLUTION

gaurav_verma

XXXXXXXXXX::> vol snapshot show -size >1GB
---Blocks---
Vserver Volume Snapshot Size Total% Used%
-------- -------- ------------------------------------- -------- ------ -----
snapshot-01  vol0  hourly.3 2.83GB 1% 11%
snapshot-02  vol0  hourly.3 2.93GB 1% 13%
2 entries were displayed.

 

View solution in original post

3 REPLIES 3

SEAJEPROACT

I run these commands...

 

When to check after forgotten snapshots, a specific year and exclude of a specific vserver:

::> snap show -create-time *2018* -vserver !*BACKUP*

 

When to check after snapshots bigger than a certain size:

::> snap show -size >1t

gaurav_verma

XXXXXXXXXX::> vol snapshot show -size >1GB
---Blocks---
Vserver Volume Snapshot Size Total% Used%
-------- -------- ------------------------------------- -------- ------ -----
snapshot-01  vol0  hourly.3 2.83GB 1% 11%
snapshot-02  vol0  hourly.3 2.93GB 1% 13%
2 entries were displayed.

 

View solution in original post

PhilyBoy

Thanks - works a treat. Easy to find anything which is a concern.

Announcements
NetApp on Discord Image

We're on Discord, are you?

Live Chat, Watch Parties, and More!

Explore Banner

Meet Explore, NetApp’s digital sales platform

Engage digitally throughout the sales process, from product discovery to configuration, and handle all your post-purchase needs.

NetApp Insights to Action
I2A Banner
Public