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

DescriptionAttribute
For Example: LOG_FILE /var/lib/pgsql/
pgsql1.log
This parameter is used to bring this toolkit into
maintenance mode. If this parameter is set to yes, then
MAINTENANCE_FLAG
it enables maintenance feature in the toolkit. PostgreSQL
toolkit searches pgsql.debug file in the PostgreSQL
toolkit package file directory where all the PostgreSQL
toolkit files are located.
If the file exists, monitoring is paused, and you can bring
down PostgreSQL for maintenance. The package does
not fail over to the adoptive node even though
PostgreSQL instance is brought down for maintenance.
After the maintenance work, ensure that PostgreSQL is
brought up. You must delete the pgsql.debug file in
the package directory. This enables the toolkit to
continue monitoring PostgreSQL server application.
NOTE: If the Maintenance flag is set to no, then this
feature does not work.
The time interval in seconds to monitor the PostgreSQL
server instance. The default value is 30.
MONITOR_INTERVAL
The number of trials attempted by the toolkit script to
check the PostgreSQL server daemon before giving up
and exiting. The default value is 2.
RETRY_TIMES
5. Validate the configuration using the cmcheckconf command:
# cmcheckconf -P pgsql_pkg.conf
6. Create the package using the cmapplyconf command, if the cmcheckconf command does
not report any errors:
# cmapplyconf -P pgsql_pkg.conf
Managing packages
You can manage packages by running, maintaining, halting, and deleting them.
Running packages
To start a package:
# cmrunpkg <package_name>
Maintaining packages
HP 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. The maintenance flag can be used 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: pkgpg_pkg1
Package directory: ${SGCONF}/pkgpg_pkg1
Shared configuration on a file system: /pgsql1
To set a PostgreSQL toolkit package to the maintenance mode:
Using PostgreSQL toolkit 33