HA高可用集群部署(ricci+luci+fence

HA高可用集群部署(ricci+luci+fence_virtd) 双机热备

主机环境 RedHat6.5 64位
实验环境 服务端1 ip 172.25.29.1  主机名:server1.example.com  ricci
    服务端2 ip 172.25.29.2    主机名:server2.example.com  ricci
    管理端1 ip 172.25.29.3    主机名:server3.example.com  luci
    管理端2 ip 172.25.29.250    fence_virtd
防火墙状态:关闭
 
1. 安装ricci、luci及创建节点
1.安装、开启ricci(服务端1)
[root@server1yum.repos.d]# vim dvd.repo      #安装之前,修改yum源
#repos on instructor for classroom use
#Main rhel6.5 server
[base]
name=InstructorServer Repository
baseurl=http://172.25.29.250/rhel6.5
gpgcheck=0
 
#HighAvailability rhel6.5
[HighAvailability]
name=InstructorHighAvailability Repository
baseurl=http://172.25.29.250/rhel6.5/HighAvailability
gpgcheck=0
 
#LoadBalancer packages
[LoadBalancer]
name=InstructorLoadBalancer Repository
baseurl=http://172.25.29.250/rhel6.5/LoadBalancer
gpgcheck=0
 
#ResilientStorage
[ResilientStorage]
name=InstructorResilientStorage Repository
baseurl=http://172.25.29.250/rhel6.5/ResilientStorage
gpgcheck=0
 
#ScalableFileSystem
[ScalableFileSystem]
name=InstructorScalableFileSystem Repository
baseurl=http://172.25.29.250/rhel6.5/ScalableFileSystem
gpgcheck=0
[root@server1yum.repos.d]# yum clean all        #清除缓存
Loadedplugins: product-id, subscription-manager
Thissystem is not registered to Red Hat Subscription Management. You can usesubscription-manager to register.
Cleaningrepos: HighAvailability LoadBalancer ResilientStorage
              : ScalableFileSystem base
Cleaningup Everything
 
[root@server1yum.repos.d]# yum install ricci -y    #安装ricci
[root@server1yum.repos.d]# passwd ricci      #修改ricci密码
Changingpassword for user ricci.
Newpassword:
BADPASSWORD: it is based on a dictionary word
BADPASSWORD: is too simple
Retypenew password:
passwd:all authentication tokens updated successfully.
[root@server1yum.repos.d]# /etc/init.d/ricci start      #开启ricci
Startingsystem message bus:                              [  OK  ]
Startingoddjobd:                                        [  OK  ]
generatingSSL certificates...  done
GeneratingNSS database...  done
Startingricci:                                          [  OK  ]
[root@server1yum.repos.d]# chkconfig ricci  on    #开机自动开启
服务端2和服务端1做相同的操作
 
2.安装、开启luci (管理端1)
安装之前,与服务端1一样修改yum源
[root@server3yum.repos.d]# yum install luci -y      #安装luci
[root@server3yum.repos.d]# /etc/init.d/luci start    #开启ruci
Startluci...                                            [  OK  ]
Pointyour web browser to https://server3.example.com:8084 (or equivalent) to accessluci
 
在登陆之前,必须有DNS解析,也就是在/etc/hosts添加
例如: 172.25.29.3        server3.example.com
 
3.创建节点
登陆 https://server3.example.com:8084      #luci开放的是8084端口
安全证书,选I Understand Risks

HA高可用集群部署(ricci+luci+fence

点击Confirm Security Excepton

HA高可用集群部署(ricci+luci+fence

进入到管理服务器的luci界面,登陆时的密码是安装luci虚拟机的root密码

HA高可用集群部署(ricci+luci+fence

选择Manage Clusters,之后点击Create创建集群

HA高可用集群部署(ricci+luci+fence

如图,Cluster Name创建集群的名称,勾选Use the Same Passwordfor All Nodes,指的是所有结点所用的是相同的密码,填写要创建的结点名称和密码,名称是服务端的主机名,密码是上面提到的passwd ricci的修改的密码。勾选Download PackagesReboot和Enable,选择Create Cluster

HA高可用集群部署(ricci+luci+fence

正在创建节点,如图

HA高可用集群部署(ricci+luci+fence

创建完成,如图

HA高可用集群部署(ricci+luci+fence

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:https://www.heiqu.com/f99be3e36f8d22754b6a274c7760bf78.html