Managing Serviceguard 14th Edition, June 2007

Cluster and Package Maintenance
Configuring a Legacy Package
Chapter 7 369
edit the configuration or control script files for these packages, although
Serviceguard does not forbid it. Create and modify the information using
cfs admin commands only.
Use cmmakepkg to create the control script, then edit the control script.
Use the following procedure to create the template for the sample
failover package pkg1.
First, generate a control script template, for example:
cmmakepkg -s /etc/cmcluster/pkg1/pkg1.sh
Next, customize the script; see ““Customizing the Package Control
Script” on page 369”.
Customizing the Package Control Script
Check the definitions and declarations at the beginning of the control
script using the information in the Package Configuration
worksheet. You need to customize as follows; see the relevant entries
under “Editing the Configuration File” on page 301 for more
discussion.
Update the PATH statement to reflect any required paths needed to
start your services.
If you are using LVM, enter the names of volume groups to be
activated using the VG[] array parameters, and select the
appropriate options for the storage activation command, including
options for mounting and unmounting filesystems, if desired. Do not
use the VXVM_DG[] or CVM_DG[] parameters for LVM volume groups.
If you are using CVM, enter the names of disk groups to be activated
using the CVM_DG[] array parameters, and select the appropriate
storage activation command, CVM_ACTIVATION_CMD. Do not use the
VG[] or VXVM_DG[] parameters for CVM disk groups.
If you are using VxVM disk groups without CVM, enter the names of
VxVM disk groups that will be imported using the VXVM_DG[] array
parameters. Enter one disk group per array element. Do not use the
CVM_DG[] or VG[] parameters for VxVM disk groups without CVM,
and do not specify an activation command.