Skip Navigation Links | |
Exit Print View | |
Oracle Solaris Cluster Data Service for MySQL Cluster Guide Oracle Solaris Cluster 4.1 |
1. Installing and Configuring HA for MySQL Cluster
Overview of Installing and Configuring HA for MySQL Cluster
Planning the HA for MySQL Cluster Installation and Configuration
MySQL Cluster and Oracle Solaris Containers
Oracle Solaris Cluster HA for MySQL Cluster Components
Dependencies Between HA for MySQL Cluster Components
Installing and Configuring MySQL Cluster
How to Enable a MySQL Cluster Database to Run in a Global Zone Configuration
How to Install and Configure MySQL Cluster in a Global Zone
Verifying the Installation and Configuration of MySQL Cluster
How to Verify the Installation and Configuration of MySQL Cluster
Installing the HA for MySQL Cluster Package
How to Install the HA for MySQL Cluster Package
Registering and Configuring HA for MySQL Cluster
Specifying Configuration Parameters for the MySQL Cluster Management Server Resource
How to Create and Enable Resources for MySQL Cluster Management Server
Specifying Configuration Parameters for the MySQL Cluster ndb Daemon Resource
How to Create and Enable Resources for the MySQL Cluster ndb Daemon
Specifying Configuration Parameters for the MySQL Cluster ndb Shutdown Controller Resource
How to Create and Enable Resources for MySQL Cluster ndb Shutdown Controller
Verifying the HA for MySQL Cluster Installation and Configuration
How to Verify the HA for MySQL Cluster Installation and Configuration
Tuning the HA for MySQL Cluster Fault Monitor
Operation of the HA for MySQL Cluster Management Server Parameter File
Operation of the HA for MySQL Cluster ndb Daemon Parameter File
Operation of the Fault Monitor for HA for MySQL Cluster Management Server
Operation of the Fault Monitor for HA for MySQL Cluster ndb Daemon
Debugging HA for MySQL Cluster
How to Activate Debugging for HA for MySQL Cluster
A. Files for Configuring HA for MySQL Cluster
B. Deployment Example: Installing MySQL Cluster in the Global Zone
Before you perform the procedures in this section, ensure that the HA for MySQL Cluster data service packages are installed.
Use the configuration and registration files in the /opt/SUNWscmys/*/util directories to register the HA for MySQL Cluster resources. The configuration files define the dependencies that are required between the HA for MySQL Cluster component and other resources. For information about these dependencies, see Dependencies Between HA for MySQL Cluster Components.
This section covers the following main topics:
Specifying Configuration Parameters for the MySQL Cluster Management Server Resource
How to Create and Enable Resources for MySQL Cluster Management Server
Specifying Configuration Parameters for the MySQL Cluster ndb Daemon Resource
How to Create and Enable Resources for the MySQL Cluster ndb Daemon
Specifying Configuration Parameters for the MySQL Cluster ndb Shutdown Controller Resource
How to Create and Enable Resources for MySQL Cluster ndb Shutdown Controller
HA for MySQL Cluster provides a script that automates the process of configuring the MySQL Cluster management server resource. This script obtains configuration parameters from the mysql_ndb_mgmd_config file. A template for this file is in the /opt/SUNWscmys/ndb_mgmd/util directory. To specify configuration parameters for the MySQL Cluster management server resource, copy the mysql_ndb_mgmd_config file to another directory and edit this mysql_ndb_mgmd_config file.
Note - This configuration file needs to be accessible from the global or local zone on each node where the MySQL Cluster is installed.
Each configuration parameter in the mysql_ndb_mgmd_config file is defined as a keyword-value pair. The mysql_ndb_mgmd_config file already contains the required keywords and equals signs. For more information, see mysql_ndb_mgmd_config File. When you edit the /myplace/mysql_ndb_mgmd_config file, add the required value to each keyword listed in the following table.
Table 1-4 Keyword-Value Pairs in the mysql_ndb_mgmd_config File
|
Before You Begin
Ensure that you have edited the mysql_ndb_mgmd_config file to specify configuration parameters for the Oracle Solaris Cluster HA for Management Server data service. For more information, see Specifying Configuration Parameters for the MySQL Cluster Management Server Resource.
# mkdir /pfile
# ksh /opt/SUNWscmys/ndb_mgmd/util/mysql_ndb_mgmd_register \ > -f /myplace/mysql_ndb_mgmd_config -p
# ksh /opt/SUNWscmys/ndb_mgmd/util/mysql_ndb_mgmd_register \ > -f /myplace/mysql_ndb_mgmd_config
# clresourcegroup online -eM mgm-rg
Oracle Solaris Cluster HA for MySQL Cluster provides a script that automates the process of configuring the MySQL Cluster ndb daemon resource. This script obtains configuration parameters from the mysql_ndbd_config file. A template for this file is in the /opt/SUNWscmys/ndbd/util directory. To specify configuration parameters for the MySQL Cluster ndb daemon resource, copy the mysql_ndbd_config file to another directory and edit this mysql_ndbd_config file.
Note - This configuration file needs to be accessible from the global or local zone on each node where the MySQL Cluster is installed.
Each configuration parameter in the mysql_ndbd_config file is defined as a keyword-value pair. The mysql_ndbd_config file already contains the required keywords and equals signs. For more information, see mysql_ndbd_config File. When you edit the /myplace/mysql_ndbd_config file, add the required value to each keyword.
The keyword-value pairs in the mysql_ndbd_config file are listed in the following table.
Table 1-5 Keyword-Value Pairs in the mysql_ndbd_config File
|
Before You Begin
Ensure that you have edited the mysql_ndbd_config file to specify configuration parameters for the Oracle Solaris Cluster HA for ndb Daemon data service. For more information, see Specifying Configuration Parameters for the MySQL Cluster ndb Daemon Resource.
# mkdir /pfile
# ksh /opt/SUNWscmys/ndbd/util/mysql_ndbd_register \ > -f /myplace/mysql_ndbd_config -p
# ksh /opt/SUNWscmys/ndbd/util/mysql_ndbd_register \ > -f /myplace/mysql_ndbd_config
# clresourcegroup online -eM ndb-rg
Oracle Solaris Cluster HA for MySQL Cluster provides a script that automates the process of configuring the MySQL Cluster ndb shutdown controller resource. This script obtains configuration parameters from the ndbd_shutdown_config file. A template for this file is in the /opt/SUNWscmys/ndbd_shutdown/util directory. To specify configuration parameters for the MySQL Cluster ndb shutdown controller resource, copy the ndbd_shutdown_config file to another directory and edit this ndbd_shutdown_config file.
Each configuration parameter in the ndbd_shutdown_config file is defined as a keyword-value pair. The ndbd_shutdown_config file already contains the required keywords and equals signs. For more information, see ndb_shutdown_config File. When you edit the /myplace/ndbd_shutdown_config file, add the required value to each keyword.
The keyword-value pairs in the ndbd_shutdown_config file are as follows.
Table 1-6 Keyword-Value Pairs in the ndbd_shutdown_config File
|
Before You Begin
Ensure that you have edited the ndbd_shutdown_config file to specify configuration parameters for the Oracle Solaris Cluster HA for ndb Shutdown Controller data service. For more information, see Specifying Configuration Parameters for the MySQL Cluster ndb Shutdown Controller Resource.
# ksh /opt/SUNWscmys/ndbd_shutdown/util/ndb_shutdown_register \ > -f /myplace/ndbd_shutdown_config
# clresourcegroup online -eM ndb-rg
If you want to take the ndbd daemon offline on one node only, you must suspend the stop action of the ndb shutdown controller. Otherwise, it restarts all ndbd daemons without loading data.
Perform the following task before you disable the shutdown controller resource on one node, or before you take offline the resource group that contains the ndb daemon resource and the ndb shutdown controller resource.
# touch /tmp/shutdown-controller-resourcename_noop
Note - During the stop, the noop file is removed.
Before You Begin
Before you begin make sure you already bootstrapped the MySQL Server on all nodes and zones to host the MySQL server.
This procedure provides the general steps to register a MySQL server. For complete instructions, see Registering and Configuring HA for MySQL Cluster. However, the deployment example in Appendix B, Deployment Example: Installing MySQL Cluster in the Global Zone shows all the steps to their full extent.
If you want monitoring of an ndb table by each SQL server you are about to configure, set NDB_CHECK=yes in the configuration files mysql_config and ha_mysql_config. This setting creates a functional dependency between the MySQL servers and the MySQL Cluster data node processes. Consider deploying the MySQL server in a scalable or multiple-masters topology.
For more details about the GRANT and UPDATE statements for each of the MySQL server you have configured, see Oracle Solaris Cluster Data Service for MySQL Guide.
# /opt/SUNWscmys/util/ha_mysql_register -f config-file -e
(Optional) Specifies that you want password encryption.
# /opt/SUNWscmys/util/ha_mysql_register -f config-file