Building Disaster Recovery Serviceguard Solutions Using Metrocluster with 3PAR Remote Copy for Linux B.01.00.00, July 2013

5. a. Create a Remote Copy volume group on the primary system and assign the created
volume to that group.
On primary storage system:
cli% creatercopygroup domain <domain_name> <group_name>
<target_name>:<replication_type>
cli% admitrcopyvv <volume_name> <group_name>
<target_name>:<volume_name>
where:
<group_name> is the name of the Remote Copy volume group to be created.
<target_name> is the recovery storage system.
<volume_name> is the name of the virtual volume created in step 3.
<replication_type> is the type of replication to be used. For synchronous replication
use sync and for periodic asynchronous replication use periodic.
HP also recommends you to set the following auto_recover policy for the Remote Copy
volume group:
cli% setrcopygroup pol auto_recover <group_name>
When the link goes down, and the remote copy volume group is in a stopped state
( that is, when replication is not happening ), setting auto_recover option restarts the
group automatically when the link is restored.
6. Export the created volume to all the nodes in the recovery site of the Metrocluster.
cli% createvlun <volume_name> <LUN> <host name>
7. On the primary storage system, start the group created in step 5.
On primary storage system:
cli% startrcopygroup <group_name>
8. To verify the creation of a Remote Copy volume group pair, use either showrcopy command
or 3PAR Management Console.
cli% showrcopy groups <group_name>
A Remote Copy volume group pair is now created. These are the high level commands. For more
information on creating a Remote Copy volume group, see Remote Copy User Guide available
at: http://www.hp.com/go/saw or contact your HP representative.
Creating a 3PAR storage system user to access the remote copy volume group
You can create an HP 3PAR storage system user using HP 3PAR Management Console or HP 3PAR
CLI commands. For information on HP 3PAR Management Console, see the HP 3PAR Management
Console Online Help. To create a user using HP 3PAR CLI commands, from any host, login to the
HP 3PAR CLI using the following example:
1. Access the HP 3PAR CLI of the 3PAR storage system with a user having super or edit privileges
who has access to all domains.
# cli
When prompted, enter the storage system IP or Name, and then enter the user credentials for
the particular storage system.
cli %
2. Create a CLI user (for example, mc3parusr) and password using the createuser command.
cli% createuser c <password> mc3parusr <domain_name> <super or
edit>
12 Configuring an application in a Metrocluster environment