1. Installing and Configuring HA for MySQL
A. Deployment Example: Installing MySQL in the Global Zone
B. Deployment Example: Installing MySQL in the Non-Global HA Container
C. Deployment Example: Installing MySQL in a Non-Global Zone
Installing and Configuring MySQL on Local Storage in a Non-Global Zone
Example: Preparing the Cluster for MySQL
Example: Configuring Cluster Resources for MySQL
Example: Installing the MySQL Software on Local Storage
Example: Bootstrapping the MySQL Software on Local Storage
Example: Modifying the MySQL Configuration File
Example: Enabling the MySQL Software to Run in the Cluster
D. Deployment Example: Installing MySQL in a Scalable or Multiple-Master Configuration
In this task you will install the Solaris Container on phys-schost-1 and phys-schost-2. Perform this procedure on both hosts.
This example presents a sparse root zone. You can use a whole root zone if that type better suits your configuration.
phys-schost-1# mkdir /zones
create -b set zonepath=/zones/clu1 set autoboot=true set pool=pool_default add inherit-pkg-dir set dir=/lib end add inherit-pkg-dir set dir=/platform end add inherit-pkg-dir set dir=/sbin end add inherit-pkg-dir set dir=/usr end add net set address=zone-1 Choose a different addtress (zone-2) on the second node. set physical=hme0 end add attr set name=comment set type=string set value="MySQL cluster zone" Put your desired zone name between the quotes here. end
phys-schost-1# zonecfg -z clu1 -f /tmp/x
phys-schost-1# zoneadm -z clu1 install
phys-schost-1# zlogin -C clu1
phys-schost-1# zoneadm -z clu1 boot
phys-schost-1# ~~.