User's Guide

6. Run the package on a node in the Serviceguard cluster.
# cmrunpkg -n <node_name> <package_name>
7. Enable global switching for the package.
# cmmodpkg -e <package_name>
Once the package is created, if the value of any Metrocluster parameter needs to be changed,
then edit this package configuration file and re-apply it.
Migrating Legacy Packages to Modular Packages using Metrocluster EMC SRDF A.09.00 or Later
To get the benefits of Modular style packages, existing Legacy Metrocluster packages can be
migrated to use the Modular style. However, the migration steps vary based on the HP Serviceguard
version and the Legacy package configuration. While completing the migration procedure, multiple
package configuration files created. Only the final package configuration file that is created at
the end of the procedure must be applied.
Complete the following procedure to migrate Legacy packages to Modular packages using MC
SRDF A.09.00 or later:
1. Create a Modular package configuration file for the Metrocluster Legacy package.
# cmmigratepkg -p <package_name> [-s] -o <modular_sg.conf>
IMPORTANT: This command will generate a package configuration file. Do not apply this
configuration file until you complete the migration procedure.
For more information on the cmmigratepkg command, see the Managing Serviceguard
manual available at http://www.hp.com/go/hpux-serviceguard-docs.
2. If the Metrocluster Legacy package uses ECM toolkits, then generate a new Modular package
configuration file using the package configuration file generated in the step 1.
For example, if the Metrocluster Legacy package uses the ECM Oracle toolkit, generate a
new Modular package configuration file with the following command:
# cmmakepkg i modular_sg.conf -m ecmt/oracle/oracle -t\
haoracle.conf modular_sg_ecm.conf
3. Create a Metrocluster Modular package configuration file using the package configuration
file created in step 1.
When using HP Serviceguard A.11.18, complete the following steps to include Metrocluster
modules in the new modular package configuration file:
a. Include the Metrocluster modules in the new configuration file.
#cmmakepkg i <modular_sg_ecm.conf> -m dts/mcsrdf\
<modular_sg_ecm_mc.conf>
b. Copy the environment variable values from the Metrocluster environment file present in
the package directory, to the variables present in the newly created modular package
configuration file.
When using HP Serviceguard A.11.19, run the following command to include the Metrocluster
modules in the new modular package configuration file:
# cmmakepkg i <modular_sg_ecm.conf> -m dts/mcsrdf -t\
<path_to_env_file> <modular_sg_ecm_mc.conf>
4. Halt the package.
# cmhaltpkg <package_name>
5. Validate the new package configuration file.
# cmcheckconf -P <modular_sg_ecm_mc.conf>
280 Building Disaster Recovery Serviceguard Solutions Using Metrocluster with EMC SRDF