NOTE: This diagram applies specifically to legacy packages. Differences for modular scripts are called out above.

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. The package script may not have been able to clean up some of its resources such as LVM volume groups, VxVM disk groups or package mount points, so before attempting to start up the package on any node, be sure to check whether any resources for the package need to be cleaned up

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

Package Error Condition

 

Results

 

 

 

Error or Exit Code

Node Failfast

Service

HP-UX Status

Halt script

Package Allowed to

Package

 

Enabled

Failfast

on Primary

runs after

Run on Primary

Allowed to Run

 

 

Enabled

after Error

Error or Exit

Node after Error

on Alternate

 

 

 

 

 

 

Node

Service Failure

Either Setting

YES

system reset

No

N/A (system reset)

Yes

Service Failure

Either Setting

NO

Running

Yes

No

Yes

Run Script Exit 1

Either Setting

Either Setting

Running

No

Not changed

No

Run Script Exit 2

YES

Either Setting

system reset

No

N/A (system reset)

Yes

Run Script Exit 2

NO

Either Setting

Running

No

No

Yes

Run Script

YES

Either Setting

system reset

No

N/A (system reset)

Yes

Timeout

 

 

 

 

 

 

Run Script

NO

Either Setting

Running

No

Not changed

No

Timeout

 

 

 

 

 

 

Halt Script Exit 1

YES

Either Setting

Running

N/A

Yes

No

Halt Script Exit 1

NO

Either Setting

Running

N/A

Yes

No

Halt Script

YES

Either Setting

system reset

N/A

N/A (system reset)

Yes, unless the

Timeout

 

 

 

 

 

timeout

 

 

 

 

 

 

happened after

 

 

 

 

 

 

the cmhaltpkg

 

 

 

 

 

 

command was

 

 

 

 

 

 

executed.

Halt Script

NO

Either Setting

Running

N/A

Yes

No

Timeout

 

 

 

 

 

 

Service Failure

Either Setting

YES

system reset

No

N/A (system reset)

Yes

Service Failure

Either Setting

NO

Running

Yes

No

Yes

66 Understanding Serviceguard Software Components

Page 66
Image 66
HP Serviceguard manual Normal and Abnormal Exits from the Halt Script, Package Control Script Error and Exit Conditions