Designing Disaster Recovery Clusters using Metroclusters and Continentalclusters, Reprinted October 2011 (5900-1881)

7. Login to the 3PAR storage system of the target disk site. Stop the Remote Copy volume group
and reverse the direction of replication to make disks read/write.
cli% setrcopygroup reverse stopgroups <rc_volume_group_name>
8. On the target disk site, import the VGs on all of the systems that might run the Serviceguard
package and backup the LVM configuration.
# vgimport -s -m <mapfilename> <vgname>
# vgchange -a y <vgname>
# vgcfgbackup <vgname>
# vgchange -a n <vgname>
9. Login to the source disk site's 3PAR storage system. Reverse the direction of replication to
bring it back to its original direction.
cli% setrcopygroup reverse <rc_volume_group_name>
cli% startrcopygroup <rc_volume_group_name>
It may be possible to skip the commands to stop and reverse the replication. However, the
vgimport command may take longer to complete and this will not activate the volume group
to perform the vgcfgbackup. Perform the vgcfgbackup when the volume group is activated
during the first recovery package activation.
Creating VxVM Disk Groups
If you are using VERITAS storage, use the following procedure to create disk groups. The following
section explains how to set up VERITAS disk groups. On one node in the source disk site do the
following:
1. Run the vxdisksetup command on the primary system to initialize the disks to be used with
VxVM.
# /etc/vx/bin/vxdisksetup -i disk3
2. Create a disk group to be used with the vxdg command on the primary system.
# vxdg init logdata disk3
3. Verify the configuration of the created disk group.
# vxprint g logdata
4. Run the vxassist command to create the logical volume.
# vxassist -g logdata make logfile 2048m
5. Verify the configuration of the created volume.
# vxprint -g logdata
6. Create a filesystem running the following command.
# newfs -F vxfs /dev/vx/rdsk/logdata/logfile
7. Create a directory to mount the created volume.
# mkdir /logs
8. Mount the created volume.
# mount /dev/vx/dsk/logdata/logfile /logs
9. Verify if file system exits, then unmount the file system.
# umount /logs
10. Deport the disk group.
# vxdg deport logdata
Configuring an application in a Metrocluster with 3PAR Remote Copy environment 321