Managing HP Serviceguard A.11.20.10 for Linux, December 2012

To generate a configuration file that contains all the optional modules:
cmmakepkg $SGCONF/pkg1/pkg1.conf
To create a generic failover package (that could be applied without editing):
cmmakepkg -n pkg1 -m sg/failover $SGCONF/pkg1/pkg1.conf
To generate a configuration file for a failover package that uses relocatable IP addresses and
runs an application that requires file systems to be mounted at run time (enter the command
all on one line):
cmmakepkg -m sg/failover -m sg/package_ip -m sg/service -m
sg/filesystem -m sg/volume_group $SGCONF/pkg1/pkg1.conf
To generate a configuration file adding the generic resources module to an existing
package (enter the command all on one line):
cmmakepkg -i $SGCONF/pkg1/pkg1.conf -m sg/generic_resource
To generate a configuration file for a failover package that runs an application that requires
another package to be up (enter the command all on one line):
cmmakepkg -m sg/failover -m sg/dependency -m sg/service
$SGCONF/pkg1/pkg1.conf
To generate a configuration file adding the services module to an existing package (enter
the command all on one line):
cmmakepkg -i $SGCONF/pkg1/pkg1.conf -m sg/service
$SGCONF/pkg1/pkg1_v2.conf
NOTE: You can add more than one module at a time.
To generate a configuration file adding the Persistent Reservation module to an existing
package:
cmmakepkg -i $SGCONF/pkg1/pkg1.conf -m sg/pr_cntl
To create a serviceguard-xdc package in serviceguard-xdc environment:
cmmakepkg -m sg/all -m xdc/xdc pkg_xdc.conf
cmcheckconf -P pkg_xdc.conf
cmapplyconf -P pkg_xdc.conf
6.2.3 Next Step
The next step is to edit the configuration file you have generated; see “Editing the Configuration
File” (page 186).
6.3 Editing the Configuration File
When you have generated the configuration file that contains the modules your package needs
(see “Generating the Package Configuration File” (page 185)), you need to edit the file to set the
package parameters to the values that will make the package function as you intend.
It is a good idea to configure complex failover packages in stages, as follows:
1. Configure volume groups and mount points only.
2. Check and apply the configuration; see “Verifying and Applying the Package Configuration
(page 189).
3. Run the package and ensure that it can be moved from node to node.
186 Configuring Packages and Their Services