Simple practice of RHCS cluster in CentOS6

First set up three virtual host nodes of CentOS6.9 as follows, and have configured mutual trust between the two machines. Refer to the previous article High-availability cluster Heartbeat configuration practice

1)10.20.10.140 node1.walkingcloud.cn node1

2)10.20.10.141 node2.walkingcloud.cn node2

3)10.20.10.142 node3.walkingcloud.cn node3


1、 Yum install cman rgmanager ricci installs the RHCS cluster suite on all three nodes, and the httpd service is installed on each yum install -y httpd

  1. on node1

echo "

node1.walkingcloud.cn

">/var/www/html/index.html

  1. on node2

echo "

node2.walkingcloud.cn

">/var/www/html/index.html

  1. node3

echo "

node3.walkingcloud.cn

">/var/www/html/index.html

2、 Set the same password for the ricci user with passwd ricci on each node

service ricci start and start ricci services

chkconfig ricci on

3、 Install yum install luci graphical management interface on node1

service luci start starts luci, chkconfig luci on

4、 Log in to the luci management interface of node1, https://node1's IP:8084

Enter the root account and password of node1

5、 Create Cluster walkingcloud

And add three nodes to the cluster

6、 Set failover

7、 Add resource

1 ) IP address resource VIP 10.20.10.145/23

2 ) Service script resources

8、 Add resource group, bind IP address and httpd service resource

8、 Start the HA service first, and let the resource services run on node1

9、 Failure migration, test HA function

Restart node1 and check the cluster service logs on the other two nodes

tail -f /var/log/cluster/rgmanager.log and clusstat to view cluster status

As shown in the figure below, you can see that the service is running on node2 on node2, and ip addr is also automatically migrated to node2

Just a simple test of the HA function of the RHCS cluster, after learning GFS, cLVM and other related knowledge, we will introduce further

Recommended Posts

Simple practice of RHCS cluster in CentOS6
Installation and simple practice of MySQL in ubuntu environment (1)
Rapid deployment of Kubernetes (k8s) cluster in CentOS7 environment
Detailed use of nmcli in CentOS8
k8s practice (1): Centos 7.6 deployment k8s (v1.14.2) cluster
Deploy Hadoop cluster services in actual CentOS system
LVM disk expansion problem of Centos7 in Linux
Installation and configuration of CentOS 7 in VMware Workstation
Implementation of CentOS8.0 Network Configuration
Simple practice of RHCS cluster in CentOS6
Explain the implementation of Centos8 static IP configuration
Graphical installation of CentOS8
Deployment of graphite on centos7
Centos7 silent installation of Oracle11g
Install MySQL5.7 in centos7
CentOS7.3.1611 deploys k8s1.5.2 cluster
Install php in centos
CentOS6 install couchdb2 cluster
Centos7 install the correct posture of the Tomcat8 pseudo cluster and set the boot self-start practice notes
CentOS 6.8 deploy zookeeper cluster
Centos7 build Kubernetes cluster
Centos7 mqtt cluster installation
Graphical installation of CentOS8
Install redis5.0 in CentOS7
CentOS cluster related issues
Centos7 deploys Kubernetes cluster
The problem of MySQL import file failure in CentOS environment
Detailed steps to install and configure k8s cluster in centos 7