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

6. Create the package using the cmapplyconf command, if the cmcheckconf command does
not report any errors:
# cmapplyconf -P pkg_MySQL.conf
7. Enable package switching for the MySQL toolkit package using:
# cmmodpkg -e -n node1 -n node2 <package_name>
# cmmodpkg -e <package_name>
8. Start the package using the cmrunpkg command.
# cmrunpkg <package_name>
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: mysql_1
package directory: ${SGCONF}/pkg/MySQL1
MySQL DATADIR: /MySQL_1/mysql
To set a MySQL 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 MySQL toolkit configuration file, and then apply the configuration
by running cmapplyconf command.
2. Create an empty file to pause MySQL server processes monitoring.
${SGCONF}/pkg/MySQL1/mysql.debug as shown below:
touch ${SGCONF}/pkg/MySQL1/mysql.debug
The toolkit monitoring script stops monitoring the MySQL daemons running for the instance
configured for the package. The following message is logged in the package control script:
MySQL toolkit pausing, monitoring and entering maintenance mode.
3. Perform the maintenance actions.
For example, you can change the configuration of the MySQL instance, or install a MySQL
patch.
4. To start monitoring application processes, run:
# rm -f ${SGCONF}/pkg/MySQL1/mysql.debug
The following message is recorded in the Serviceguard package control script log:
Starting MySQL toolkit monitoring again after maintenance.
Using MySQL toolkit 25