ONTAP Discussions

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

BRIANCLARK
5,314 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
5,314 Views

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

View solution in original post

6 REPLIES 6

spence
5,315 Views

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

BRIANCLARK
5,314 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
5,314 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
5,314 Views

That is even better.

Thanks again. 

SERVIMATICA_MIKEL
5,314 Views

What is the equivalent in c#?

Thanks

SERVIMATICA_MIKEL
5,314 Views

OK

volume-options-list-info

Thanks

Public