Managing HP Serviceguard for Linux, Tenth Edition, September 2012

The following table describes different types of failover behavior and the settings in the
package configuration file that determine each behavior. See “Package Parameter
Explanations” (page 205) for more information.
Table 5 Package Failover Behavior
Parameters in Configuration FileSwitching Behavior
Package switches normally after
detection of service or network failure,
node_fail_fast_enabled set to no. (Default)
service_fail_fast_enabled set to no for all services.
(Default)
generic resource failure or when a
configured dependency is not met. Halt
auto_run set to yes for the package. (Default)
script runs before switch takes place.
(Default)
failover_policy set to min_package_node.
Package fails over to the node with the
fewest active packages.
failover_policy set to configured_node. (Default)
Package fails over to the node that is
next on the list of nodes. (Default)
failback_policy set to automatic.
Package is automatically halted and
restarted on its primary node if the
primary node is available and the
package is running on a non-primary
node.
Package can be manually returned to its
primary node if it is running on a
failback_policy set to manual. (Default)
failover_policy set to configured_node. (Default)
non-primary node, but this does not
happen automatically.
All packages switch following a system
reboot on the node when a specific
service fails. Halt scripts are not run.
service_fail_fast_enabled set to yes for a specific
service.
auto_run set to yes for all packages.
All packages switch following a system
reboot on the node when any service
fails.
service_fail_fast_enabled set to yes for all services.
auto_run set to yes for all packages.
Parameters for Configuring Generic Resources
Serviceguard provides the following parameters for configuring generic resources.
Configure each of these parameters in the package configuration file for each resource
the package will be dependent on.
generic_resource_name: defines the logical name used to identify a generic
resource in a package.
generic_resource_evaluation_type: defines when the status of a generic
resource is evaluated. This can be set to during_package_start or
Package Configuration Planning 125