Linux HA 高可用性群集管理

准备工作

  1. 192.168.0.86 群集节点1

  2. 192.168.0.51 群集节点2

  3. 192.168.0.93 管理节点(与整个群集没有关系)

iptables 关闭 sellinux关闭

 

.安装

1.在管理节点安装 luci

yum install luci -y

/etc/init.d/luci start

Point your web browser to https://desktop93.example.com:8084 to access luci

web界面下输入 https的部分就能访问到luci,HA的管理页面

如图:

rhel6 HA

这样就能进入HA的管理界面了

 

2.在两个节点上安装ricci,使其开机自动开启

yum install ricci -y

chkconfig ricci on

 

. luci上配置,Cluster—fence(机器挂掉自动接管的东东)-Failover Domail(恢复域)

-Resources(资源)-service(服务)

1.建立HA(创建,创建内容,等待创建好群集)

rhel6 HA

2.将节点添加入群集

rhel6 HA

 

 

2.建立Fence(并且将2个节点加入fence)

a创建fence

rhel6 HA

b选择类型

rhel6 HA

c.类型起名

rhel6 HA

 

d查看创建好的fence

rhel6 HA

e.同意创建

rhel6 HA

 

f.进入节点

rhel6 HA

g.进入第一个节点

rhel6 HA

 

h.创建fence method

 

rhel6 HA

g.创建 fence instrice

rhel6 HA

 

k.起域名

rhel6 HA

(第二个节点同上)


2.建立恢复域

a建立域

rhel6 HA

b选择类型,起名字

rhel6 HA

 

3.建立资源

a建立

rhel6 HA

b. 添加虚拟Ip地址

rhel6 HA

c.选择好优先级别

rhel6 HA

d.添加脚本,服务

rhel6 HA


4服务

a.添加服务

rhel6 HA

b.添加虚拟ip

rhel6 HA

c.添加脚本服务

rhel6 HA

oK 一切正常 ,我们就能在虚拟Ip访问自己的东东!弄挂一个服务器,服务照常正常

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

转载于:https://blog.51cto.com/luoning504/732867

相关文章:

  • 2021-12-15
  • 2021-12-22
  • 2022-12-23
  • 2022-12-23
  • 2021-07-28
  • 2021-11-18
  • 2021-05-19
猜你喜欢
  • 2021-07-01
  • 2022-12-23
  • 2021-06-16
  • 2021-12-03
  • 2021-09-08
  • 2021-06-20
  • 2022-12-23
相关资源
相似解决方案