Managing HP Serviceguard for Linux, Tenth Edition, September 2012

5. Distribute the control script to the cluster nodes
6. Apply the package configuration file
Each of these tasks is described in the sub-sections that follow.
Creating the Legacy Package Configuration
The package configuration process defines a set of application services that are run by
the package manager when a package starts up on a node in the cluster. The
configuration also includes a prioritized list of cluster nodes on which the package can
run together with definitions of the acceptable types of failover allowed for the package.
Using Serviceguard Manager to Configure a Package
You can create a legacy package and its control script in Serviceguard Manager; use
the Help for detailed instructions.
Using Serviceguard Commands to Configure a Package
Use the following procedure to create a legacy package.
1. Create a subdirectory for each package you are configuring in the $SGCONF
directory:
mkdir $SGCONF/pkg1
You can use any directory names you like. (See “Understanding the Location of
Serviceguard Files” (page 156) for the name of Serviceguard directories on your
version of Linux.)
2. Generate a package configuration file for each package, for example:
cmmakepkg -p $SGCONF/pkg1/pkg1.conf
You can use any file name you like for the configuration file.
3. Edit each configuration file to specify package name, prioritized list of nodes (with
39 bytes or less in the name), the location of the control script, and failover
parameters for each package. Include the data you recorded on the Package
Configuration Worksheet.
Configuring a Package in Stages
It is a good idea to configure failover packages in stages, as follows:
1. Configure volume groups and mount points only.
2. Distribute the control script to all nodes.
3. Apply the configuration.
4. Run the package and ensure that it can be moved from node to node.
5. Halt the package.
6. Configure package IP addresses and application services in the control script.
272 Cluster and Package Maintenance