Creating remote-copy consistency groups by using the CLI

You can use the command-line interface (CLI) to create remote-copy consistency groups.

About this task

To create remote-copy consistency groups, complete these steps:

Procedure

  1. To create remote-copy consistency groups, run the mkrcconsistgrp command.
    For example, enter the following command:
    mkrcconsistgrp -name new_name -cluster cluster_id
    

    where new_name is the name of the new consistency group and cluster_id is the ID of the remote cluster for the new consistency group. If the -cluster parameter is not specified, a consistency group is created only on the local cluster. The new consistency group does not contain any relationships and is in the empty state.

  2. To add remote-copy relationships to the group, run the chrcrelationship command.
    For example, enter the following command:
    chrcrelationship -consistgrp consist_group_name rc_rel_id 
    

    where consist_group_name is the name of the new consistency group to assign the relationship to and rc_rel_id is the ID of the relationship.