Creating Metro Mirror, Global Mirror, or active-active relationships using the CLI
About this task
Procedure
- To create a Metro
Mirror relationship,
run the mkrcrelationship command. For example, enter:
mkrcrelationship -master master_volume_id -aux aux_volume_id -cluster system_idWhere master_volume_id is the ID of the master volume, aux_volume_id is the ID of the auxiliary volume, and system_id is the ID of the remote clustered system.
- To create a new Global Mirror relationship,
run the mkrcrelationship command with the -global parameter. For example, enter:
mkrcrelationship -master master_volume_id -aux aux_volume_id -cluster system_id -globalWhere master_volume_id is the ID of the master volume, aux_volume_id is the ID of the auxiliary volume, and system_id is the ID of the remote system.
- To create a new relationship with cycling
enabled:
mkrcrelationship -master books_volume -aux books_volume -cluster DR_cluster -global -cyclingmode multiNote: Add change volumes to a relationship by issuing chrcrelationship -auxchange or chrcrelationship -masterchange. - To create a new active-active
relationship, run the mkrcrelationship command
with the -activeactive parameter. For example, enter:
mkrcrelationship -master master_volume_id -aux aux_volume_id -cluster system_id -activeactiveWhere master_volume_id is the ID of the master volume, aux_volume_id is the ID of the auxiliary volume, and system_id is the ID of the remote system.