Managing Serviceguard Eighteenth Edition, September 2010

Select the appropriate options for the storage activation command (not applicable
for basic VxVM disk groups), and also include options for mounting filesystems,
if desired.
Specify the filesystem mount and unmount retry options.
If your package uses a large number of volume groups or disk groups or mounts
a large number of file systems, consider increasing the number of concurrent
vgchange, mount, umount, and fsck operations.
If your package will use relocatable IP addresses, define IP subnet and IP address
pairs. IPv4 or IPv6 addresses are allowed.
CAUTION: HP recommends that the subnet(s) be specified in the cluster
configuration file via the NETWORK_INTERFACE parameter and either the
HEARTBEAT_IP or STATIONARY_IP parameter; see “Cluster Configuration
Parameters ” (page 143).
If you do not follow this recommendation, the package may not behave as you
expect; see ip_subnet (page 298), ip_address (page 299), and “Stationary and
Relocatable IP Addresses ” (page 90) for complete information.
Add service name(s).
Add service command(s)
Add a service restart parameter, if you so decide.
For more information about services, see the discussion of the service_ parameters
(page 299).
Specify whether or not to kill processes accessing raw devices; see the comments
in the file under RAW DEVICES for more information.
Adding Customer Defined Functions to the Package Control Script
You can add additional shell commands to the package control script to be executed
whenever the package starts or stops. Enter these commands in the CUSTOMER DEFINED
FUNCTIONS area of the script.
If your package needs to run short-lived processes, such as commands to initialize or
halt a packaged application, you can also run these from the CUSTOMER DEFINED
FUNCTIONS.
You can also use the CUSTOMER DEFINED FUNCTIONS to determine why a package
has shut down; see “Determining Why a Package Has Shut Down” (page 200).
An example of this portion of the script follows, showing the date and echo commands
logging starts and halts of the package to a file.
# START OF CUSTOMER DEFINED FUNCTIONS
# This function is a place holder for customer defined functions.
# You should define all actions you want to happen here, before the service is
# started. You can create as many functions as you need.
380 Cluster and Package Maintenance