Building Disaster Recovery Serviceguard Solutions Using Metrocluster with Continuous Access for P9000 and XP A.11.00

Repeat steps 4 through 9 on all the nodes in the cluster that require access to this disk group.
10. Resynchronize the Continuous Access pair device.
# pairresync -g <devgrpA> -c 15
Easy deployment of storage
Starting with Serviceguard version A.11.20 Patch PHSS_41628, you can use the cmpreparestg
command 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, then Metrocluster throws an error. Also, if the
disks are not in PAIR state, then Metrocluster thorws an error indicating the same.
The cmpreparestg command and options are described below:
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 an lvm volume group with name newvg and logical volume with name
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. The restrictions and
prerequisite mentioned in the section “Easy deployment of Metrocluster modular packages (page
33) apply to cmpreparestg as well.
Installing and configuring an application
The disks where the application binaries and configuration files reside must not be replicated. Only
the disks where application data resides must be replicated. The following section describes how
to configure a package for the application.
Configuring a Metrocluster package
To configure a Modular package:
1. Run the following command to create a Metrocluster Modular package configuration file:
# cmmakepkg m dts/mcxpca temp.config
In this command, dts/mcxpca is the Metrocluster with Continuous Access for P9000 and XP
module that needs to be included to create a Metrocluster with Continuous Access for P9000
and XP package configuration file.
By default, the mcxpca module includes only the Serviceguard volume group module. If modules
other than the Serviceguard modules need to be included, they must be explicitly specified
while creating the Metrocluster modular package configuration file.
The following example shows the package IP, the filesystem, and the monitor subnet module
included along with the mcxpca module.
# cmmakepkg m dts/mcxpca m sg/filesystem m sg/monitor_subnet -m
sg/package_ip temp.config
NOTE: Metrocluster is usually used with applications such as Oracle. So, the application
toolkit module must also be included when Metrocluster is used in conjunction with an
application.
For Example, when Metrocluster is used in conjunction with the Oracle toolkit, the Oracle
toolkit module and other required modules must also be included with the Metrocluster module.
Run the following command:
26 Configuring an application in a Metrocluster environment