Managing Serviceguard 12th Edition, March 2006

Configuring Packages and Their Services
Creating the Package Control Script
Chapter 6 289
When you create the CFS/CVM 4.1 multi-node or system multi-node
package, Serviceguard automatically creates their control scripts. It is
highly recommended that you never 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.
For failover packages, create the control script by editing the control
script (
pkg_name
.sh) file. Use the following procedure to create the
template for the sample failover package
pkg1
.
First, generate a control script template:
# cmmakepkg -s /etc/cmcluster/pkg1/pkg1.sh
You may customize the script, as described in the section “Customizing
the Package Control Script” below.
Creating Failover Packages For Database Products
To coordinate the startup and shutdown of database software with
cluster node startup and shutdown, you can use the database template
files provided with the separately purchasable Enterprise Cluster
Master Toolkit product (B5139DA). These files are found in
/opt/cmcluster/toolkit/DB/. Separate toolkits are available for
Oracle, Informix, and Sybase. In addition to the standard package
control script, you use the special script that is provided for the database.
To set up these scripts, follow the instructions that appear in the
README file provided with each toolkit.
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:
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.