ONTAP Discussions

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

BRIANCLARK
7,617 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
7,617 Views

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

View solution in original post

6 REPLIES 6

spence
7,618 Views

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

BRIANCLARK
7,617 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
7,617 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
7,617 Views

That is even better.

Thanks again. 

SERVIMATICA_MIKEL
7,617 Views

What is the equivalent in c#?

Thanks

SERVIMATICA_MIKEL
7,617 Views

OK

volume-options-list-info

Thanks

Public