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

Using MySQL toolkit
After installing the MySQL toolkit, you can use this toolkit to:
Configure packages in an SG/LX environment
Manage packages
Configuring MySQL toolkit packages
You can configure MySQL toolkit packages using either legacy or modular style of packaging.
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 ${SGCONF}/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:
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
/dev/vgMySQL/lvol1The logical volume created in VT.LV
/MySQL_1This is the file system for DB.FS
ext2The FS type is Extended 2.FS_TYPE
-o rwMount with read or write options.FS_MOUNT_OPT
/dev/md0Linux Multiple Device.MD
aaa.bb.ccc.dThis is the package subnet.SUBNET
aaa.bb.ccc.dddThis is the relocatable IP address.IP
22 MySQL Toolkit