You can use the command-line interface (CLI) to reverse the roles of primary and
secondary volumes in a stand-alone remote-copy relationship when that relationship is in a
consistent state. You cannot switch roles between primary and secondary volumes for active-active
relationships.
About this task
Relationships that are members of consistency groups must be switched by using the consistency
group CLI commands. To switch the roles of primary and secondary volumes in Metro Mirror or Global Mirror relationships, complete the
following steps:
Procedure
-
To set the master disk in a Metro Mirror or Global Mirror relationship as the primary,
run the switchrcrelationship -primary master command.
For example, enter:
switchrcrelationship -primary master rc_rel_id
Where
rc_rel_id is the ID of the relationship to switch.
-
To set the auxiliary disk in a Metro Mirror or Global Mirror relationship as the primary,
run the switchrcrelationship -primary aux command.
For example, enter:
switchrcrelationship -primary aux rc_rel_id
Where
rc_rel_id is the ID of the relationship to switch.
Remember:
- You cannot switch a global relationship if cycling is (automatically) set.
- To switch the direction of a multi cycling mode-based relationship,
the relationship must stop with access enabled. Then, start by using -force in
the opposite direction. (Using the -force parameter might result in a loss of
access. Use it only under the direction of your support center.)