[原]RHCS集群的服务切换测试札记

估计使用Red Hat或者CentOS做HA集群的朋友多数都会选择RedHat Cluster Suite(RHCS)这个套件来做吧。本篇主要记录构建及测试时候的情况。

poweroff 和 reboot 这种常规操作的服务切换取决于 recovery="relocate" 这个参数,在图形化界面中队应的位置是:

image

主节点断电(或者硬件故障)的故障切换取决于fence设备,我用的是最不被推荐的手动fence(manual fence),此时在 /var/log/messages 中将会有提示:

tail -f /var/log/messages
Apr 29 22:30:41 govmail01 fence_manual: 
Node govmail02 needs to be reset before recovery can procede.  
Waiting for govmail02 to rejoin the cluster or for manual acknowledgement that it has been reset 
(i.e. fence_ack_manual -n govmail02) 

此时的状态是:服务停止(主节点都挂了,服务不能切过来)

发生这种情况,可以按照这个提示,手工输入命令,告诉RHCS "已经将问题节点隔离"

[root@govmail01 ~]# fence_ack_manual -n govmail02

Warning:  If the node "govmail02" has not been manually fenced
(i.e. power cycled or disconnected from shared storage devices)
the GFS file system may become corrupted and all its data
unrecoverable!  Please verify that the node shown above has
been reset or disconnected from storage.

Are you certain you want to continue? [yN] y
done

完成后服务就会在备节点上启动了。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值