gpt4 book ai didi

linux - Redhat 集群客户围栏失败

转载 作者:太空宇宙 更新时间:2023-11-04 04:18:49 25 4
gpt4 key购买 nike

我已经为 fencing 创建了一个空的 shell 脚本,如下所示

#!/bin/bash
echo "success: myfence $2"
exit 0

我已将其添加到 cluster.conf 中,但是当我测试以太网时出现以下错误。

Feb 10 07:58:36 node2 fenced[2006]: fenced 3.0.12.1 started
Feb 10 07:58:36 node2 fenced[2006]: failed to get dbus connection
Feb 10 08:06:52 node2 fenced[1982]: fenced 3.0.12.1 started
Feb 10 08:06:52 node2 fenced[1982]: failed to get dbus connection
Feb 10 08:11:38 node2 fenced[1928]: fenced 3.0.12.1 started
Feb 10 08:11:38 node2 fenced[1928]: failed to get dbus connection
Feb 10 08:20:07 node2 fenced[1928]: fencing node node1.example.com
Feb 10 08:20:07 node2 fenced[1928]: fence node1.example.com dev 0.0 agent none result: error no method
Feb 10 08:20:07 node2 fenced[1928]: fence node1.example.com failed
Feb 10 08:20:10 node2 fenced[1928]: fencing node node1.example.com
Feb 10 08:20:10 node2 fenced[1928]: fence node1.example.com dev 0.0 agent none result: error no method
Feb 10 08:20:10 node2 fenced[1928]: fence node1.example.com failed
Feb 10 08:20:13 node2 fenced[1928]: fencing node node1.example.com
Feb 10 08:20:13 node2 fenced[1928]: fence node1.example.com dev 0.0 agent none result: error no method
Feb 10 08:20:13 node2 fenced[1928]: fence node1.example.com failed

它不起作用!我的集群在这个阶段挂着用于围栏..但是当我运行fence_ack_manual时它就可以工作了!

最佳答案

我自己已经解决了。在 cluster.conf 和繁荣中添加了以下几行!!!

<clusternodes>
<clusternode name="CentOS1" nodeid="1" votes="1">
<fence>
<method name="1">
<device nodename="CentOS1" name="myfence"/>
</method>
</fence>
</clusternode>

<clusternode name="CentOS2" nodeid="2" votes="1">
<fence>
<method name="2">
<device nodename="CentOS2" name="myfence"/>
</method>
</fence>
</clusternode>
</clusternodes>

关于linux - Redhat 集群客户围栏失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14799869/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com