HP Serviceguard Contributed Toolkit Suite Version A.04.02.02 on Linux User Guide (December, 2012)
Configuring legacy MySQL toolkit packages
To configure legacy MySQL toolkit packages:
1. Create a directory for the package on all the cluster nodes using the following command:
# mkdir $SGCONF/pkg/MySQL
2. Copy the toolkit files from $SGROOT/mysqltoolkit to the package directory
$SGCONF/pkg/MySQL.
3. cd to the package directory.
4. Create the package configuration and control templates using the cmmakepkg command:
Configuration template: # cmmakepkg -p pkg_MySQL.conf
Control template: # cmmakepkg -s MySQL.cntl
5. Edit the following attributes manually in the package configuration file. Table 9 (page 23)
lists all the attributes that you can edit manually in the package configuration file.
Table 9 List of attributes that you can edit
ExampleDescriptionAttribute
Configuration file parameters
mysqlThe package name must be unique
in the cluster.
PACKAGE_NAME
node1The name of the node that runs the
package.
NODE_NAME
$SGCONF/pkg/MySQL/
MySQL.cntl
This is the script to start the service.RUN_SCRIPT
$SGCONF/pkg/MySQL/
MySQL.cntl
This is the script to halt the service.HALT_SCRIPT
mysql_monitorThe service name must be unique in
the cluster.
SERVICE_NAME
aaa.bb.ccc.dThis is the package subnet.SUBNET
Control Script Parameters
vgMySQLThe VG created for this package.VG[0]
/dev/vgMySQL/lvol1The logical volume created in VT.LV[0]
/MySQL_1This is the file system for DB.FS[0]
ext2The FS type is Extended 2.FS_TYPE[0]
-o rwMount with read or write options.FS_MOUNT_OPT[0]
/dev/md0Linux Multiple Device.MD
aaa.bb.ccc.dThis is the package subnet.SUBNET
aaa.bb.ccc.dddThis is the relocatable IP address.IP
mysql_monitorThe service name must be unique in
the cluster.
service_name
$SGCONF/pkg/MySQL/
toolkit.sh monitor
This is an interface to hamysql.sh.service_cmd
To run the toolkit.sh script with the start option, edit the customer_defined_run_cmds
function in the package control script as follows:
function customer_defined_run_cmds
{
Using MySQL toolkit 23