HP Serviceguard manual During Run Script Execution, Package Time Line Legacy Package

Models: Serviceguard

1 407
Download 407 pages 39.81 Kb
Page 62
Image 62

During Run Script Execution

Once the package manager has determined that the package can start on a particular node, it launches the script that starts the package (that is, a package’s control script or master control script is executed with the start parameter). This script carries out the following steps:

1.Executes any external_pre_scripts (modular packages only (page 252))

2.Activates volume groups or disk groups.

3.Mounts file systems.

4.Assigns package IP addresses to the LAN card on the node (failover packages only).

5.Executes any customer-defined run commands (legacy packages only; see “Adding Customer Defined Functions to the Package Control Script ” (page 307)) or external_scripts (modular packages only; (page 252)).

6.Starts each package service.

7.Starts up any EMS (Event Monitoring Service) resources needed by the package that were specially marked for deferred startup.

8.Exits with an exit code of zero (0).

Figure 23 Package Time Line (Legacy Package)

At any step along the way, an error will result in the script exiting abnormally (with an exit code of 1). For example, if a package service is unable to be started, the control script will exit with an error.

NOTE: This diagram is specific to legacy packages. Modular packages also run external scripts and “pre-scripts” as explained above.

If the run script execution is not complete before the time specified in the run_script_timeout, the package manager will kill the script. During run script execution, messages are written to a log file. For legacy packages, this is in the same directory as the run script and has the same name as the run script and the extension.log. For modular packages, the pathname is determined by the script_log_file parameter in the package configuration file (see (page 237)). Normal starts are recorded in the log, together with error messages or warnings related to starting the package.

62 Understanding Serviceguard Software Components

Page 62
Image 62
HP Serviceguard manual During Run Script Execution, Package Time Line Legacy Package