switchrcrelationship
Use the switchrcrelationship command to reverse the roles of primary and secondary volumes in a stand-alone Metro Mirror or Global Mirror relationship when that relationship is in a consistent state.
Syntax
Parameters
- -primary master | aux
- (Required) Specifies whether the master disk or the auxiliary disk is to be the primary.
- rc_rel_id | rc_rel_name
- (Required) Specifies the ID or the name of the relationship to switch.
Description
The switchrcrelationship command applies to a stand-alone relationship. It is rejected if it is used to try to switch a relationship that is part of a consistency group. It is normally issued to reverse the roles of the primary and secondary volume in a relationship perhaps as part of a failover process during a disaster recovery event.
Write access to the old primary disk is lost. Write access to the new primary disk is acquired.
- ConsistentSynchronized
- ConsistentStopped and Synchronized
- Idling and SynchronizedNote: A command in idling state is rejected if any of the indicated secondary volumes is the target of an existing FlashCopy® map.
The relationship moves to the ConsistentSynchronized state after the successful completion of this command. If you specify the -primary parameter with the current primary, the command has no effect.
When the direction of the
relationship is changed, a volume that is a secondary volume in a remote copy relationship
becomes a primary volume, and a primary volume in a remote copy relationship becomes a secondary
volume. If the resultant secondary volume is mapped to a host (type
hide_secondary
), it is no longer presented to that host. However, the mapping
still exists for configuration purposes. If the volume that was a secondary volume before the
switch is mapped to a host of type hide_secondary
, it is presented to that host
because it is no longer a secondary volume.
The switchrcrelationship command is rejected if you use Global Mirroring with the multi cycling mode.
An invocation example
switchrcrelationship -primary master rccopy2
The resulting output:
No feedback