Microsoft Virtualization Discussions

Volumes not snapmirrored

skellner
2,386 Views

I want to check which volumes per controller are not snapmirrored. I think there should be an elegant way to achiveve this with powershell and the command get-navol and get-nasnapmirror. However, didn't manage it yet. Maybe someone of you can help me with this task or created a similar script already. Thanks in advance.

Regards

Stefan

1 REPLY 1

cknight
2,386 Views

It's easy to get which volumes are snapmirrored:

Get-NaVol | Get-NaSnapmirror

There are various ways of figuring which ones aren't snapmirrored.  Here's one:

Get-NaVol | % { if ( (Get-NaSnapmirror $_) -eq $null ) { Write-Output $_; }}

Public