Microsoft Virtualization Discussions

Get-NCSnapMirror doesn't return status anymore?

ACPS_IDAV
1,922 Views

Get-NCSnapMirror (Netapp.ONTAP 9.13.1.2306) doesn't correctly return the status of SnapMirrors from an Ontap 9.11.1P11 appliance. The returned status for all SnapMirrors, regardless of state, is just "snapmirrored".

 

On another workstation with DataONTAP 9.8.0 installed, the status returned is either "idle", "transferring", or "finalizing".

 

Any ideas?

4 REPLIES 4

ACPS_IDAV
1,736 Views

PSTK 9.13

PSTK 9.13PSTK 9.13PSTK 9.8

PSTK 9.8PSTK 9.8

BRadyovich
1,577 Views

Had a similar snag with Get-NCSnapMirror on different ONTAP versions. For me, upgrading to the latest version of the PowerShell module did the trick.

ACPS_IDAV
1,570 Views

Thanks for the reply.

 

I believe I'm on the latest version: Netapp.ONTAP 9.13.1.2306.

saharsh
901 Views

In Rest status parameter is mapped with the state param.

Please find the description of state param:

statestring
example: snapmirrored

x-nullable: true

State of the relationship.
To initialize the relationship, PATCH the state to "snapmirrored" for relationships with a policy of type "async" or to state "in_sync" for relationships with a policy of type "sync".
To break the relationship, PATCH the state to "broken_off" for relationships with a policy of type "async" or "sync". SnapMirror relationships with the policy type as "sync" and "sync_type" as "automated_failover" cannot be "broken_off".
To resync the relationship, PATCH the state to "snapmirrored" for relationships with a policy of type "async" or to state "in_sync" for relationships with a policy of type "sync". SnapMirror relationships with the policy type as "sync" and "sync_type" as "automated_failover" can be in "broken_off" state due to a failed attempt of SnapMirror failover.
To pause the relationship, suspending further transfers, PATCH the state to "paused" for relationships with a policy of type "async" or "sync". SnapMirror relationships with the policy type as "sync" and "sync_type" as "automated_failover" cannot be "paused".
To resume transfers for a paused relationship, PATCH the state to "snapmirrored" for relationships with a policy of type "async" or to state "in_sync" for relationships with a policy of type "sync".
The entries "in_sync", "out_of_sync", "synchronizing", and "expanding" are only applicable to relationships with a policy of type "sync". A PATCH call on the state change only triggers the transition to the specified state. You must poll on the "state", "healthy" and "unhealthy_reason" properties using a GET request to determine if the transition is successful. To automatically initialize the relationship when specifying "create_destination" property, set the state to "snapmirrored" for relationships with a policy of type "async" or to state "in_sync" for relationships with a policy of type "sync".

Public