snapmirror set-preferred-cluster
- PDF of this doc site
Collection of separate PDF docs
Creating your file...
Set this cluster as the preferred cluster
Availability: This command is available to cluster and Vserver administrators at the admin privilege level.
Description
The snapmirror set-preferred-cluster
sets the local cluster as the preferred cluster for SnapMirror active sync relationships of policy-type 'automated-failover-duplex'. Note that the 'preferred-cluster' will be the one serving IO upon scenarios like a network partition between primary and secondary.
You should execute the snapmirror set-preferred-cluster
command from the destination cluster.
Make sure the relationship status is InSync and the ONTAP Mediator is configured, connected, and in quorum before using this command.
Parameters
-destination-path {<[vserver:][volume]>|<[[cluster:]//vserver/]volume>|<hostip:/lun/name>|<hostip:/share/share-name>|<[vserver:]/cg/[app-cgname]>}
- Destination Path-
Specifies the destination endpoint of the SnapMirror relationship.
Examples
To perform a set-preferred-cluster operation of an SnapMirror active sync relationship with source Consistency Group cg_src
in Vserver vs1.example.com
, and the destination Consistency Group cg_dst
in Vserver vs2.example.com
, type the following command from the destination cluster:
destination::> snapmirror set-preferred-cluster -destination-path vs2.example.com:/cg/cg_dst
Note: The SnapMirror set-preferred-cluster operation internally triggers a planned failover operation. Hence, the SnapMirror active sync relationship information in the snapmirror show command will now be available on the new destination that is Vserver vs2.example.com
with cg_dst
as the new source and cg_src
as the new destination Consistency Groups after the SnapMirror set-preferred-cluster operation is completed.