Microsoft Virtualization Discussions

get-navol MirrorStatus

cscott

Hi,

     In trying to set up some reporting on snapmirrored volumes and the space they are using(with PowerShell), I tried to poll on MirrorStatus from get-navol.  This apparently does not have to do with snapmirror, can anyone shed light on what MirrorStatus in the output refers to?

...

...

IsWraparound :

MirrorStatus : unmirrored

Name : vol1

...

...

Thanks,

Scott

1 ACCEPTED SOLUTION

cknight

The MirrorStatus field in VolumeInfo contains the RAID mirror status (for a traditional volume; for a flexible volume, the corresponding value of its containing aggregate).  Synchronous aggregate mirroring (aka SyncMirror) is used in MetroCluster configurations.

View solution in original post

4 REPLIES 4

cknight

The MirrorStatus field in VolumeInfo contains the RAID mirror status (for a traditional volume; for a flexible volume, the corresponding value of its containing aggregate).  Synchronous aggregate mirroring (aka SyncMirror) is used in MetroCluster configurations.

View solution in original post

cscott

I was afraid that was the answer, that means more involved scripting....oh well.  Thank you for the information.

Scott

cknight

Not too complicated if you just want SnapMirror status:

PS C:\> Get-NaVol vol2 | Get-NaSnapmirror | select Status -ExpandProperty Status

idle

cscott

No, unfortunately.  Am going to put together a script that pulls all the snapmirrored volumes from a controller, shows the allocated size versus the used size.

going to have to be something along the lines:

get-nasnapmirror |select DestinationLocation, then split that, match it to the array in the pipeline, put it into another loop for the vol the select Name, then do the math on Used versus Total.  Not insurmountable at all, just far more complicated.  Was hoping that MirrorStatus could be used in a where-object or select farther up to reduce lines.

Thanks,

Scott

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