ONTAP Discussions

Finding all volumes that have Snapshots turned off (nosnap=on)

BRIANCLARK
4,726 Views

As the subject line states, I am looking for a way (CLI, Powershell Toolkit, etc.. ) that would show me all of my volumes that have snapshots turned off.

Does anyone have a quick method of pulling this information, or is this purely a manual process?

thanks,

Brian

1 ACCEPTED SOLUTION

spence
4,726 Views

7-Mode I assume:  get-navol | get-nasnapshotschedule

View solution in original post

6 REPLIES 6

spence
4,727 Views

7-Mode I assume:  get-navol | get-nasnapshotschedule

BRIANCLARK
4,726 Views

That was exactly what I was looking for, and it seems pretty obvious now that I am looking at it.

thanks for your help.

spence
4,726 Views

So there is also an option on each FlexVol that can disable automated storage side snapshots from being taken, regardless of the schedule.  I had to phone a friend, but in addition to running the above, you might also want to run this one liner to see if the option is enabled:

Get-NaVol | ForEach-Object {$volName = $_.Name;Get-NaVolOption -Name $volName | Where-Object {$_.Name -eq 'nosnap'} | Select-Object -Property @{Name='VolumeName';Expression={$volName}}, Name, Value}

:Thanks Jason Cole!

BRIANCLARK
4,726 Views

That is even better.

Thanks again. 

SERVIMATICA_MIKEL
4,726 Views

What is the equivalent in c#?

Thanks

SERVIMATICA_MIKEL
4,726 Views

OK

volume-options-list-info

Thanks

Public