clusters_install
This is an old revision of the document!
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 |
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 |
iptables -I INPUT 1 -p tcp --dport 5404 -j ACCEPT iptables -I INPUT 1 -p tcp --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 | Description |
---|---|
5404, 5405 | |
11111 | |
21064 | |
16851 | |
8084 | |
443 |
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 @ Tue May 10 18:58:49 2016 Member Status: Quorate Member Name ID Status ------ ---- ---- ------ mysql-cluster-1 1 Online, Local mysql-cluster-1 1 Online |
Configuring Fencing
Now we must configure the fencing method
1 |
|
1 |
|
clusters_install.1462948409.txt.gz · Last modified: 2024/05/23 07:26 (external edit)