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

Files and directories created for MySQL toolkit after installation
The following table describes the scripts installed as part of the MySQL installation.
Table 3 Files created after MySQL toolkit is installed
Available in directoryDescriptionFile name
Red Hat: ${SGCONF}/mysqltoolkitThis is the toolkit configuration file. It
contains a list of pre-defined variables
hamysql.conf
that must be set for your unique
environment.
This is the toolkit interface script that
acts as an interface between the
toolkit.sh
package control script and the toolkit
main script, hamysql.sh.
This is the toolkit main script that
contains internal functions that start or
stop a MySQL instance.
hamysql.sh
This is the toolkit monitor script that
contains internal functions for
monitoring a DB server instance.
hamysql.mon
Table 4 Files for creating modular packages
Available in directoryDescriptionFile name
Red Hat: ${SGCONF}/modules/
tkit/mysql
This is an attribute definition file used
to generate a package ASCII template
in modular style of packaging.
mysql.1
Red Hat: ${SGCONF}/scripts/
tkit/mysql
This is the module script. This script is
called by the master control script and
acts as an interface between the
tkit_module.sh
tkit_module.sh master control
script and the toolkit interface script
(toolkit.sh). It is also responsible
for calling the toolkit configuration file
generator script.
NOTE: This file is used only for
creating modular packages.
Red Hat: ${SGCONF}/scripts/
tkit/mysql
This is the toolkit configuration file
generator script. This script is called
by the module script when the
tkit_gen.sh
package configuration is applied
using cmapplyconf to generate the
user configuration file in the package
directory, TKIT_DIR.
NOTE: This file is used only for
creating modular packages.
Setting up the MySQL server in SG/LX environment
Before creating the packages, you must configure the shared storage and create the database.
1. Create a unique volume group and filesystem on shared storage for each instance of the
database to be included in the configuration.
2. On each node, create a mount point for each filesystem. The mount point for a specified
instance/package must be the same for all the nodes.
The following example shows a configuration of MySQL for a filesystem, /MySQL_1 on /dev/
vg01.
20 MySQL Toolkit