Building Disaster Recovery Serviceguard Solutions Using Metrocluster with EMC SRDF

Configuring a Metrocluster package
Using command line
When configuring Modular packages using Metrocluster with EMC SRDF A.09.00 or later, only
the package configuration file must be edited. All parameters that were previously available in the
Metrocluster environment file are now configured from the package configuration file. The
Metrocluster environment file is automatically generated on all the nodes when the package
configuration is applied in the cluster.
CAUTION: Do not delete the Metrocluster environment file that is generated. This file is crucial
for Metrocluster operations.
To configure a Modular package using Metrocluster with EMC SRDF A.09.00 or later:
1. Run the following command to create a Metrocluster with EMC SRDF modular package
configuration file:
# cmmakepkg m dts/mcsrdf temp.config
2. Edit the following attributes in the temp.config file:
a. dts/dts/dts_pkg_dir This is the package directory for this Metrocluster Modular
package. The Metrocluster Environment file is generated for this package in this directory.
This value must be unique for all packages.
For example,
dts/dts/dts_pkg_dir /etc/cmcluster/<package_name>
b. DEVICE_GROUP Specify the SRDF Device Group managed by this package.
c. RDF_MODE Set this attribute to sync or async based on the data replication mode of
the device group.
d. CONSISTENCYGROUPS Set this attribute to 1 in case consistency groups are being
managed.
There are additional Metrocluster parameters available in the package configuration file. HP
recommends that you retain the default values of these variables unless there is a specific
business requirement to change them. For more information about the additional Metrocluster
parameters, see Appendix B (page 87).
3. Validate the package configuration file.
# cmcheckconf -P temp.config
4. Apply the package configuration file.
# cmapplyconf -P temp.config
NOTE: If external_pre_script is specified in a Metrocluster package configuration,
the external_pre_script is executed after the execution of Metrocluster module scripts
in package startup. Metrocluster module scripts are always executed first during package
startup.
5. Run the package on a node in the Serviceguard cluster.
# cmrunpkg -n <node_name> <package_name>
6. Enable global switching for the package.
# cmmodpkg -e <package_name>
After the package is created, if you want to change the value of any Metrocluster parameter, then
edit this package configuration file and re-apply the configuration.
Installing and configuring an application 31