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

6. On each node, ensure that the volume group to be shared is currently inactive on all nodes.
# vgchange -a n /dev/<vg_name>
7. On the configuration node, make the volume group shareable by members of the source disk
site in the cluster:
# vgchange -S y -c y /dev/<vg_name>
This command is issued from the configuration node only, and the cluster must be running on
all nodes for the command to succeed. Note that, both the -S and the -c options are specified.
The -S y option makes the volume group shareable, and the -c y option causes the cluster
ID to be written out to all the disks in the volume group. In effect, this command specifies the
cluster to which a node must belong to get shared access to the volume group.
Configuring the complex workload stack at the source disk site
Install and configure the complex workload on nodes at the source disk site. Create Serviceguard
packages for the complex workload in the source disk site. This package must be configured to
run on the nodes in the source disk site.
To configure a complex workload stack at the source disk site differs, based on CVM, CFS, and
SLVM.
Configuring complex workload packages to use SG SMS CVM or VERITAS CVM
When a storage used by complex workload is CVM disk groups, the complex workload packages
must be configured to depend on the CVM disk group multi-node package. With this package
dependency, the complex workload will not run until its dependent CVM disk group multi-node
package is up, and will halt before the CVM disk group multi-node package is halted.
Set up the following dependency conditions in the Serviceguard package configuration file:
DEPENDENCY_NAME <cvm_dg_pkg_name_dep>
DEPENDENCY_CONDITION <cvm_dg_pkg_name>=UP
DEPENDENCY_LOCATION SAME_NODE
Configuring complex workload packages to use SLVM
When a storage used by complex workload is configured on SLVM volume groups, the complex
workload package must be configured to activate and deactivate the required storage in the
package configuration file.
As an example, modify the package configuration file to activate the volume group in shared mode
and set vg in the for SLVM volume groups.
vg <vg_name>
vgchange_cmd "vgchange -a s
Halting the complex workload at the source disk site
To create an identical complex workload at the target disk site, you must first halt the complex
workload at the source disk site.
For Example:
1. Halt the complex workload stack on the replication source disk site node using cmhaltpkg
command.
2. When using CFS or CVM, deport the disk groups at the replication source disk site nodes.
# vxdg deport <cvm_dg_name>
Setting up the complex workload redundantly in Metrocluster 33