HP Serviceguard Linux Contributed Toolkit Suite A.04.02.01 User Guide (696979-001, June 2012)

DescriptionAttribute
The number of trials attempted by the toolkit script to
check the Apache server daemon before giving up and
exiting. The default value is 2.
RETRY_TIMES
The volume group created for this package.vg
This is the file system for the database.fs_name
For example: /dev/vg01/lvol1
This is the filesystem directory, which is Extended 2.fs_directory
For example: /shared/apache1
5. Validate the configuration using the cmcheckconf command:
# cmcheckconf -P pkg_apache.conf
6. Create the package using the cmapplyconf command, if the cmcheckconf command does
not report any errors:
# cmapplyconf -P pkg_apache.conf
Managing packages
You can manage packages by running, maintaining, halting, and deleting them.
Running packages
To start a package use the following command:
# cmrunpkg <package_name>
Maintaining packages
Serviceguard normally monitors critical processes, but there might be situations when a planned
maintenance task (for example, changing the configuration) is required that affects those monitored
processes. You can use the maintenance flag to signal to Serviceguard that it must not failover the
instance to an adoptive node.
For easy comprehension, the following naming conventions are used in this section:
package name: APACHE1
package directory: ${SGCONF}/pkg/apache1
To set an Apache toolkit package to the maintenance mode:
1. Enable the maintenance for the package during package creation.
To enable the maintenance mode, set the MAINTENANCE_FLAG to yes in the package
configuration file or in the Apache toolkit configuration file, and then apply the configuration
by running the cmapplyconf command.
2. Create an empty file to pause monitoring script.
${SGCONF}/pkg/apache1/apache.debug as shown below:
touch ${SGCONF}/pkg/apache1/apache.debug
The toolkit monitoring script stops monitoring the Apache daemons running for the instance
configured for the package. The following message is logged in the package control script:
Apache toolkit pausing, monitoring, and entering maintenance mode.
Using SG Apache toolkit 17