Using MySQL Toolkit in a HP Serviceguard Cluster Revision README: B.06.00
- Attribute Definition File (mysql)
For every parameter in the legacy toolkit user configuration file,
there is an attribute in the ADF. It also has an additional
attribute TKIT_DIR which is analogous to the package directory in
the legacy method of packaging. The ADF is used to generate a
package ASCII template file.
- Module Script (tkit_module.sh)
This script is called by the Master Control Script and acts as an
interface between the Master Control Script and the Toolkit interface
script (toolkit.sh). It is also responsible for calling the Toolkit
Configuration File Generator Script (see description below).
- Toolkit Configuration File Generator Script (tkit_gen.sh)
This script is called by the Module Script when the package
configuration is applied using 'cmapplyconf' to generate the user
configuration file in the package directory(TKIT_DIR).
---------------------------------------------------------------------
C.2 MySQL Configuration File (my.cnf)
The following parameters are contained in the configuration file
/etc/my.cnf. This file must be copied to the file system on the
shared storage (in our example, /etc/my.cnf would be copied to
/MySQL_1/my.conf). Then parameters need to be manually set with
unique values for each DB instance configured.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[mysqld]
datadir=/MySQL_1/mysql # Data Directory for MySQL DB
socket=/MySQL_1/mysql/mysql.sock # Socket file for Client
# Communication.
port=3310 # Port Number for Client
# Communication.
[mysqld_safe]
err-log=/MySQL_1/mysql/mysqld.err # Safe-mysqld's
# Error Log file.
pid-file=/etc/cmcluster/pkg/MySQL1/mysqld.pid # pid file Path.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
=====================================================================
NOTE : mysqld_safe was previously known as "safe_mysqld". For older
version of MySQL user need to modify suitable sections in the my.cnf
file. Do the following for running this toolkit with the older
versions of the MySQL :-