Managing HP Serviceguard A.11.20.00 for Linux, June 2012

Normal and Abnormal Exits from the Halt Script
The package’s ability to move to other nodes is affected by the exit conditions on leaving the halt
script. The following are the possible exit codes:
0—normal exit. The package halted normally, so all services are down on this node.
1—abnormal exit, also known as no_restart exit. The package did not halt normally.
Services are killed, and the package is disabled globally. It is not disabled on the current
node, however.
Timeout—Another type of exit occurs when the halt_script_timeout is exceeded. In this
scenario, the package is killed and disabled globally. It is not disabled on the current node,
however.
Package Control Script Error and Exit Conditions
Table 4 shows the possible combinations of error condition, failfast setting and package movement
for failover packages.
Table 4 Error Conditions and Package Movement for Failover Packages
ResultsPackage Error Condition
Package
Allowed to Run
Package Allowed to
Run on Primary
Node after Error
Halt script
runs after
Error or Exit
Linux Status
on Primary
after Error
Service
Failfast
Enabled
Node Failfast
Enabled
Error or Exit Code
on Alternate
Node
YesN/A (system reset)Nosystem resetYESEither SettingService Failure
YesNoYesRunningNOEither SettingService Failure
NoNot changedNoRunningEither SettingEither SettingRun Script Exit 1
YesN/A (system reset)Nosystem resetEither SettingYESRun Script Exit 2
YesNoNoRunningEither SettingNORun Script Exit 2
YesN/A (system reset)Nosystem resetEither SettingYESRun Script
Timeout
NoNot changedNoRunningEither SettingNORun Script
Timeout
NoYesN/ARunningEither SettingYESHalt Script Exit 1
NoYesN/ARunningEither SettingNOHalt Script Exit 1
Yes, unless the
timeout
N/A (system reset)N/Asystem resetEither SettingYESHalt Script
Timeout
happened after
the cmhaltpkg
command was
executed.
NoYesN/ARunningEither SettingNOHalt Script
Timeout
YesN/A (system reset)Nosystem resetYESEither SettingService Failure
YesNoYesRunningNOEither SettingService Failure
YesN/A (system reset)Nosystem resetEither SettingYESLoss of Network
YesYesYesRunningEither SettingNOLoss of Network
Yes if
dependency met
Yes when
dependency is
again met
YesRunningEither SettingEither Settingpackage
depended on
failed
How Packages Run 53