Managing HP Serviceguard A.11.20.10 for Linux, December 2012

Figure 10 Package Moving During Failover
3.3.1.2.1 Configuring Failover Packages
You configure each package separately. You create a failover package by generating and editing
a package configuration file template, then adding the package to the cluster configuration
database; details are in Chapter 6: “Configuring Packages and Their Services ” (page 163).
For legacy packages (packages created by the method used on versions of Serviceguard earlier
than A.11.18), you must also create a package control script for each package, to manage the
execution of the package’s services. See “Configuring a Legacy Package” (page 225) for detailed
information.
Customized package control scripts are not needed for modular packages (packages created by
the method introduced in Serviceguard A.11.18). These packages are managed by a master
control script that is installed with Serviceguard; see Chapter 6: “Configuring Packages and Their
Services ” (page 163), for instructions for creating modular packages.
3.3.1.2.2 Deciding When and Where to Run and Halt Failover Packages
The package configuration file assigns a name to the package and includes a list of the nodes on
which the package can run.
Failover packages list the nodes in order of priority (i.e., the first node in the list is the highest
priority node). In addition, failover packages files contain three parameters that determine failover
behavior. These are the auto_run parameter, the failover_policy parameter, and the
failback_policy parameter.
3.3.1.2.3 Failover Packages’ Switching Behavior
The auto_run parameter (known in earlier versions of Serviceguard as the
PKG_SWITCHING_ENABLED parameter) defines the default global switching attribute for a failover
package at cluster startup: that is, whether Serviceguard can automatically start the package when
the cluster is started, and whether Serviceguard should automatically restart the package on a new
node in response to a failure. Once the cluster is running, the package switching attribute of each
42 Understanding Serviceguard Software Components