HP Serviceguard Contributed Toolkit Suite Version A.04.02.02 on Linux User Guide (December, 2012)
Table 6 List of attributes that you can edit (continued)
DescriptionAttribute
NOTE: If the Maintenance flag is set to no, then this
feature does not work.
The time interval in seconds to monitor the Apache server
instance. The default value is 30.
MONITOR_INTERVAL
The number of trials attempted by the toolkit script to
check the Apache server daemon before giving up and
exiting. The default value is 0.
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
18 Apache Toolkit