clusters_install
This is an old revision of the document!
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 | |
rgmanager | |
modcluster | |
clvmd |
1 |
yum install rgmanager lvm2-cluster gfs2-utils -y |
On both nodes install:
1 |
yum groupinstall 'High Availability' 'Resilient Storage' -y |
1 |
yum install luci -y ; chkconfig luci on |
1 2 3 4 5 6 |
# service ricci start Starting system message bus: [ OK ] Starting oddjobd: [ OK ] generating SSL certificates... done Generating NSS database... done Starting ricci: [ OK ] |
1 2 3 4 5 |
# passwd ricci Changing password for user ricci. New password: Retype new password: passwd : all authentication tokens updated successfully. |
1 2 3 4 5 6 7 8 |
# 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 luci |
1 2 3 4 5 6 7 8 9 |
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:
1 |
https: //x .x.x.x:8084 |
(Password field is the ricci password)
Once all is complete click 'Create Cluster'
1 2 3 4 5 6 7 8 |
# 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 |
Configuring Fencing
Now we must configure the fencing method
1 |
|
1 |
|
clusters_install.1462990404.txt.gz · Last modified: 2024/05/23 07:26 (external edit)