Managing HP Serviceguard for Linux, Seventh Edition, July 2007
Configuring Packages and Their Services
Editing the Configuration File
Chapter 6222
• If your package will use relocatable IP addresses, enter the
ip_subnet and ip_address addresses. ip_subnet must be a subnet
that is already specified in the cluster configuration.
• For each service the package will run:
— enter the service_name (for example, a daemon or long-running
process)
— enter the service_cmd (for example, the command that starts
the process)
— enter values for service_fail_fast_enabled and
service_halt_timeout if you need to change them from their
defaults.
— Configure the service_restart parameter if you want the
package to restart the service if it exits. (A value of unlimited
can be useful if you want the service to execute in a loop, rather
than exit and halt the package.)
Include a service entry for disk monitoring if the package depends on
monitored disks. Use entries similar to the following:
service_name=“cmresserviced_Pkg1”
service_cmd=”$SGBIN/cmresserviced /dev/sdd1”
service_restart=””
See “Creating a Disk Monitor Configuration” on page 228 for more
information.
You can configure a maximum of 30 services per package.
• If the package needs to activate LVM volume groups, configure
vgchange_cmd, or leave the default.
• If the package needs to mount LVM volumes to file systems (other
than Red Hat GFS; see fs_type on page 213), use the vg
parameters to specify the names of the volume groups to be
activated, and select the appropriate vgchange_cmd.
Use the fs_ options in the FILESYSTEMS portion of the configuration
file to specify the options for mounting and unmounting the file
systems. Enter each volume group on a separate line, for example:
vg vg01
vg vg02