首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >pcs石不起作用

pcs石不起作用
EN

Unix & Linux用户
提问于 2017-07-25 11:10:43
回答 2查看 7K关注 0票数 0

我有两个虚拟centos7节点,根可以在它们之间无密码登录,

我已经像这样配置了石碑,但是服务没有出现,击剑没有发生,我对此很陌生,有人能帮我纠正这个问题吗?

代码语言:javascript
复制
[root@node1 cluster]# pcs stonith create nub1 fence_virt pcmk_host_list="node1"
[root@node1 cluster]# pcs stonith create nub2 fence_virt pcmk_host_list="node2"
[root@node1 cluster]# pcs stonith show
 nub1   (stonith:fence_virt):   Stopped
 nub2   (stonith:fence_virt):   Stopped
[root@node1 cluster]#
[root@node1 cluster]#
[root@node1 cluster]#
[root@node1 cluster]#
[root@node1 cluster]# pcs status
Cluster name: mycluster
Stack: corosync
Current DC: node2 (version 1.1.15-11.el7_3.5-e174ec8) - partition with quorum
Last updated: Tue Jul 25 07:03:37 2017          Last change: Tue Jul 25 07:02:00 2017 by root via cibadmin on node1

2 nodes and 3 resources configured

Online: [ node1 node2 ]

Full list of resources:

 ClusterIP      (ocf::heartbeat:IPaddr2):       Started node1
 nub1   (stonith:fence_virt):   Stopped
 nub2   (stonith:fence_virt):   Stopped

Failed Actions:
* nub1_start_0 on node1 'unknown error' (1): call=56, status=Error, exitreason='none',
    last-rc-change='Tue Jul 25 07:01:34 2017', queued=0ms, exec=7006ms
* nub2_start_0 on node1 'unknown error' (1): call=58, status=Error, exitreason='none',
    last-rc-change='Tue Jul 25 07:01:42 2017', queued=0ms, exec=7009ms
* nub1_start_0 on node2 'unknown error' (1): call=54, status=Error, exitreason='none',
    last-rc-change='Tue Jul 25 07:01:26 2017', queued=0ms, exec=7010ms
* nub2_start_0 on node2 'unknown error' (1): call=60, status=Error, exitreason='none',
    last-rc-change='Tue Jul 25 07:01:34 2017', queued=0ms, exec=7013ms


Daemon Status:
  corosync: active/enabled
  pacemaker: active/enabled
  pcsd: active/enabled





[root@node1 cluster]# pcs stonith fence node2
Error: unable to fence 'node2'
Command failed: No route to host

[root@node1 cluster]# pcs stonith fence nub2
Error: unable to fence 'nub2'
Command failed: No such device

[root@node1 cluster]# ping node2
PING node2 (192.168.100.102) 56(84) bytes of data.
64 bytes from node2 (192.168.100.102): icmp_seq=1 ttl=64 time=0.247 ms
64 bytes from node2 (192.168.100.102): icmp_seq=2 ttl=64 time=0.304 ms
^C
--- node2 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1001ms
rtt min/avg/max/mdev = 0.247/0.275/0.304/0.032 ms
EN

回答 2

Unix & Linux用户

发布于 2017-07-27 04:22:08

查看您的fence代理所需的信息:# pcs resource describe fence_virt

没有看到系统日志,我猜您需要将port=参数添加到STONITH设备配置中。从系统管理程序的角度来看,这些应该是机器名称。

如果不是这样的话:# grep fence_virt /var/log/messages应该把你引向正确的方向。

您还需要添加位置约束,以使这些设备在正确的节点上运行;隔离nub1的设备不应该在nub1上运行,而隔离nub2的设备不应该在nub2上运行。

票数 0
EN

Unix & Linux用户

发布于 2020-01-04 13:35:23

为了使用fence_virt,运行节点VM的物理主机(S)需要运行fence_virtd,以响应来自fence_virt击剑代理的传入击剑请求。

代理将与fence_virtd(s)通过IP组播通信,因此您需要确保您的客人和主机之间的IP多播连接(S)。默认的多播IP地址为225.0.0.12,端口号为1229。

参见这里的详细说明:https://wiki.clusterlabs.org/wiki/Guest_击剑

注意:说明中提到的端口是TCP,但我认为不可能通过多播使用TCP,因此它很可能是一个误解,而多播通信实际上使用的是UDP端口,这在其他多播协议中是常见的。

票数 0
EN
页面原文内容由Unix & Linux提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://unix.stackexchange.com/questions/381657

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档