HP Serviceguard Contributed Toolkit Suite Version A.04.02.02 on Linux User Guide (December, 2012)
$SGCONF/pkg/MySQL/toolkit.sh start
test_return 51
}
To run the toolkit.sh script with the start option, edit the customer_defined_halt_cmds
function in the package control script as follows:
function customer_defined_halt_cmds
{
$SGCONF/pkg/MySQL/toolkit.sh stop
test_return 52
}
6. Edit the MySQL toolkit configuration file hamysql.conf.
7. Copy the package directory to the other nodes in the cluster.
For example, change to the parent directory of the package directory and enter the following
command:
# rcp -r –p /usr/local/pkg/cmcluster/pkg/MySQL node2:$PWD/
8. Validate the configuration using the cmcheckconf command:
# cmcheckconf -P pkg_MySQL.conf
9. Add the package to the Serviceguard environment using the cmapplyconf command, if the
cmcheckconf command does not report any errors:
# cmapplyconf -P pkg_MySQL.conf
10. Enable package switching for the MySQL toolkit package using:
# cmmodpkg -e -n node1 -n node2 <package_name>
# cmmodpkg -e <package_name>
11. Start the package using the cmrunpkg command.
# cmrunpkg <package_name>
Configuring modular MySQL toolkit packages
To configure modular MySQL toolkit packages:
1. Create a directory for the package on all the cluster nodes using the following command:
# mkdir $SGCONF/pkg/mysql
2. cd to the package directory.
3. Create the package configuration and control templates using the cmmakepkg command:
# cmmakepkg –m tkit/mysql/mysql pkg_MySQL.conf
4. Edit the following attributes manually in the package configuration file. Table 10 (page 24)
lists the attributes that you can edit manually in the package configuration file.
Table 10 Lists the attributes that you can edit
DescriptionAttribute
This directory holds the toolkit configuration file. This
parameter directs cmapplyconf to generate the
TKIT_DIR
hamysql.conf file under this directory. To put the
toolkit into maintenance mode, create mysql.debug
file under this directory. This is synonymous with the
package directory acronym.
The file path of the configuration file for a MySQL server
instance.
CONFIGURATION_FILE_PATH
For example:
24 MySQL Toolkit