Switching Metro Mirror or Global Mirror relationships using the CLI

You can use the command-line interface (CLI) 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. You cannot switch roles between primary and secondary volumes for active-active relationships.

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, follow these steps:

  1. To make the master disk in a Metro Mirror or Global Mirror relationship to be 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.

  2. To make the auxiliary disk in a Metro Mirror or Global Mirror relationship to be 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.)