Building Disaster Recovery Serviceguard Solutions Using Metrocluster with Continuous Access EVA A.05.01

4. Import the disk group.
# vxdg -tfC import <dgName>
5. Start the logical volume in the disk group.
# vxvol -g <dgName> startall
6. Create a directory to mount the volume.
# mkdir /<logs>
7. Mount the volume.
# mount /dev/vx/dsk/<dgName>/<logfile>/ <logs>
8. Check to make sure the file system is present, then unmount the file system.
# umount /<logs>
9. Deport the disk group.
# vxdg deport <dgName>
Repeat steps 4 through 9 on all nodes in the remote site that require access to this disk group.
10. Now failover to the original source DR Group using HP P6000 Command View.
Easy storage preparation
Starting with Serviceguard version A.11.20 Patch PHSS_41628, the cmpreparestg command
can be used to create LVM volume groups and VxVM/CVM diskgroups with logical volumes,
filesystem, and mount points in a Metrocluster environment. If the command is run from the nodes
where the replicated disks are in destination mode, Metrocluster displays an error. Also, if the
disks are not in Source mode or link state is not good, Metrocluster displays an error indicating
the same.
The cmpreparestg command and options is described as follows:
cmpreparestg {-l <vgname> | -g dgname} [{-p pv_path... |-P pvs_file}]
{-L [lvname] |-c lv_counts} [-m mountpoint] [-o " option string " ...
] [-n node_name]... [-t]
For example, to create a lvm volume group named newvg and logical volume named newlv in the
cluster, run the following command:
# cmpreparestg -l newvg -p /dev/disk/disk12 -L newlv -o lv_opts="-l 64"
For further information, see the cmpreparestg(1m) manpage. All restrictions imposed by
Serviceguard are applicable when using cmpreparestg in a Metrocluster. Furthermore, the
restrictions and prerequisite mentioned in “Easy deployment of Metrocluster modular packages
(page 32)apply to cmpreparestg as well.
Installing and configuring an application
You must replicate only the disks which contain application data and not the disks which contain
application binaries and configuration files. The following section describes how to configure a
package for the application.
Configuring a Metrocluster package
To create modular packages using Metrocluster with Continuous Access EVA A.05.00 or later:
26 Configuring an application in a Metrocluster environment