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 virtual disks in a stand-alone Metro Mirror or Global Mirror relationship when that relationship is in a consistent state. 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 VDisks 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 svctask switchrcrelationship -primary master command. For example, enter:
    svctask 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 svctask switchrcrelationship -primary aux command. For example, enter:
    svctask switchrcrelationship -primary aux rc_rel_id

    Where rc_rel_id is the ID of the relationship to switch.

Library | Support | Terms of use | Feedback
© Copyright IBM Corporation 2003, 2009. All Rights Reserved.