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

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 PostgreSQL toolkit configuration file, and then apply the configuration
running the cmapplyconf command.
2. Create an empty file to pause PostgreSQL server processes monitoring.
${SGCONF}/pkgpg_pkg1/pgsql.debug as shown below:
touch ${SGCONF}/pkgpg_pkg1/pgsql.debug
The toolkit monitoring script stops monitoring the PostgreSQL daemons running for the instance
configured for the package. The following message is logged in the package control script:
PostgreSQL toolkit pausing, monitoring, and entering maintenance
mode.
3. Perform the maintenance actions.
For example, you can change the configuration of the PostgreSQL instance, or install a
PostgreSQL patch.
4. To start the monitoring process, run:
# rm -f ${SGCONF}/pkgpg_pkg1/pgsql.debug
The following message is recorded in the Serviceguard package control script log:
Starting PostgreSQL toolkit monitoring again after maintenance.
NOTE: Ensure that the PostgreSQL server instance is up and running before removing the
pgsql.debug file.
Halting packages
To halt a package:
# cmhaltpkg <package_name>
Deleting packages
To delete a package from the cluster:
# cmdeleteconf -p <package_name>
This command prompts for a verification, before deleting the files, unless you use the -f option.
34 PostgreSQL Toolkit