Service | Description |
---|---|
ricci | Cluster management daemon (Remote cluster and storage management) Default port 11111 Propagates updated cluster configuration from (and to) cluster nodes |
luci | Luci is a web-based HA administration application Luci can handle most common cluster tasks - avoiding the need for manual configuration changes - Configure whole clusters - add, remove, reboot and configure nodes - Service management - Resource management - Failover Domains - Global Fencing |
cman | Red Hat Cluster Manager Performs cluster management in HA add-on Runs on each cluster node and handles communication between nodes in the cluster |
rgmanager | Cluster resource group manager - it is layered on to of magma (API) Provides cold failover of resource collected into groups. |
modcluster | |
clvmd | Cluster LVM Daemon All clusters must have this running on them to provide LVM metadata updates |
yum install rgmanager lvm2-cluster gfs2-utils -yNote that installing only the rgmanager will pull in all necessary dependencies to create an HA cluster from the HighAvailability channel. The lvm2-cluster and gfs2-utils packages are part of ResilientStorage channel and may not be needed by your site.
yum groupinstall 'High Availability' 'Resilient Storage' -yOn main web management server
yum install luci -y ; chkconfig luci onOn both nodes:
# service ricci start Starting system message bus: [ OK ] Starting oddjobd: [ OK ] generating SSL certificates... done Generating NSS database... done Starting ricci: [ OK ]
# passwd ricci Changing password for user ricci. New password: Retype new password: passwd: all authentication tokens updated successfully.On main node:
# service luci start Adding following auto-detected host IDs (IP addresses/domain names), corresponding to `mysql-cluster-1' address, to the configuration of self-managed certificate `/var/lib/luci/etc/cacert.config' (you can change them by editing `/var/lib/luci/etc/cacert.config', removing the generated certificate `/var/lib/luci/certs/host.pem' and restarting luci): (none suitable found, you can still do it manually as mentioned above) Generating a 2048 bit RSA private key writing new private key to '/var/lib/luci/certs/host.pem' Start luci... [ OK ] Point your web browser to https://mysql-cluster-1:8084 (or equivalent) to access luciAdd the following IP table rules to your servers:
iptables -I INPUT 1 -p tcp --dport 5404 -j ACCEPT iptables -I INPUT 1 -p udp --dport 5404 -j ACCEPT iptables -I INPUT 1 -p tcp --dport 5405 -j ACCEPT iptables -I INPUT 1 -p udp --dport 5405 -j ACCEPT iptables -I INPUT 1 -p tcp --dport 11111 -j ACCEPT iptables -I INPUT 1 -p tcp --dport 21064 -j ACCEPT iptables -I INPUT 1 -p tcp --dport 16851 -j ACCEPT iptables -I INPUT 1 -p tcp --dport 8084 -j ACCEPT iptables -I INPUT 1 -p tcp --dport 443 -j ACCEPT
Port | Protocol | Description |
---|---|---|
5404, 5405 | ||
11111 | ||
21064 | ||
16851 | ||
8084 | ||
443 | tcp |
In your browser go to the following address and log in using the servers root account:
https://x.x.x.x:8084Once you have located the 'Create New Cluster' section, enter the parameters for the cluster you are creating
# clustat Cluster Status for mysql Cluster @ Wed May 11 06:28:39 2016 Member Status: Quorate Member Name ID Status ------ ---- ---- ------ mysql-cluster-1 1 Online, Local mysql-cluster-2 2 Offline
Now we must configure the fencing method