Managing HP Serviceguard A.11.20.10 for Linux, December 2012

PATH Specifies the path to be used by the script.
SUBNET Specifies the IP subnets that are to be monitored for the
package.
RUN_SCRIPTand HALT_SCRIPT Use the full pathname of each script.
These two parameters allow you to separate package run
instructions and package halt instructions for legacy
packages into separate scripts if you need to. In this case,
make sure you include identical configuration information
(such as node names, IP addresses, etc.) in both scripts.
In most cases, though, HP recommends that you use the
same script for both run and halt instructions. (When the
package starts, the script is passed the parameter start;
when it halts, it is passed the parameter stop.)
LV The name of a logical volume hosting a file system that will
be mounted by the package.
FS The name of the mount point for a file system to be mounted
by the package.
VGCHANGE As vgchange_cmd (page 180).
6.2 Generating the Package Configuration File
When you have chosen the configuration modules your package needs (see “Choosing Package
Modules” (page 163)), you are ready to generate a package configuration file that contains those
modules. This file will consist of a base module (failover, multi-node or system multi-node) plus the
modules that contain the additional parameters you have decided to include.
6.2.1 Before You Start
Before you start building a package, create a subdirectory for it in the $SGCONF directory, for
example:
mkdir $SGCONF/pkg1
(See “Understanding the Location of Serviceguard Files” (page 129) for information about
Serviceguard pathnames.)
6.2.2 cmmakepkg Examples
The cmmakepkg command generates a package configuration file. Some examples follow; see
the cmmakepkg (1m) manpage for complete information. All the examples create an editable
configuration file pkg1.conf in the $SGCONF/pkg1 directory.
NOTE: If you do not include a base module (or default or all) on the cmmakepkg command
line, cmmakepkg will ignore the modules you specify and generate a default configuration file
containing all the parameters.
For a complex package, or if you are not yet sure which parameters you will need to set, the
default may be the best choice; see the first example below.
You can use the-v option with cmmakepkg to control how much information is displayed online
or included in the configuration file. Valid values are 0, 1 and 2. -v 0 removes all comments; -v
1 includes a brief heading for each parameter; -v 2 provides a full description of each parameter.
The default is level 2.
6.2 Generating the Package Configuration File 185