Building Disaster Recovery Serviceguard Solutions Using Metrocluster with 3PAR Remote Copy

4. Create the filesystem.
# newfs -F vxfs /dev/vgname/rlvol
5. Deactivate and export the Volume Groups on the primary system without removing the special
device files.
# vgchange -a n <vgname>
# vgexport -s -p -m <mapfilename> <vgname>
Make sure that you copy the mapfiles to all the host systems.
6. On the source disk site, import the VGs on all of the other 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>
7. If the volume group is configured in asynchronous periodic mode, then to reflect the volume
group configuration done at the source disk site, you must synchronize the Remote Copy
volume group from the 3PAR storage system of the source disk site.
# cli% syncrcopy <rc_volume_group_name>
8. To set the remote copy volume group automatic resynchronization period when the group is
created in case of periodic asynchronous mode.
9. 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>
10. 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>
11. 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:
20 Configuring an application in a Metrocluster environment