HP Serviceguard Metrocluster manual # cmmigratepkg -p packagename -s -o modularsg.conf

Models: Serviceguard Metrocluster

1 151
Download 151 pages 11.74 Kb
Page 103
Image 103

4.Halt the package.

#cmhaltpkg <package_name>

5.Validate the package configuration file.

#cmcheckconf -P <modular_sg_ecm_cc.conf>

6.Apply the package configuration with the modular configuration file created in step 3.

#cmapplyconf -P <modular_sg_ecm_cc.conf>

7.Run the package on a node in the Serviceguard cluster.

#cmrunpkg -n <node_name> <package_name>

8.Enable global switching for the package.

#cmmodpkg -e <package_name>

Migrating legacy style primary and recovery packages to modular packages using EMC SRDF

Continentalclusters legacy packages can be migrated to modular packages using the procedure listed in this section. 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 are created. Only the final package configuration file that is created at the end of the procedure must be applied.

To migrate Continentalclusters with EMC SRDF legacy packages to modular packages using Continentalclusters A.08.00:

1.Create a modular package configuration file for the legacy package.

# cmmigratepkg -p <package_name> [-s] -o <modular_sg.conf>

IMPORTANT: This command generates 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 —> HP Serviceguard.

2.If the Continentaclusters 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 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 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

Continentalclusters modules in the new modular package configuration file:

a.Include the Continentalclusters module in the new configuration file.

# cmmakepkg –i <modular_sg_ecm.conf> -m dts/ccsrdf\ <modular_sg_ecm_cc.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 or later versions, run the following command to include the Continentalclusters modules in the new modular package configuration file:

#cmmakepkg –i <modular_sg_ecm.conf> -m dts/ccsrdf –t\ <path_to_env_file> <modular_sg_ecm_cc.conf>

4.Halt the package.

#cmhaltpkg <package_name>

Migrating legacy to modular packages 103

Page 103
Image 103
HP Serviceguard Metrocluster manual # cmmigratepkg -p packagename -s -o modularsg.conf