起搏器资源总是停止

Lev*_*evi 6 linux centos

我正在设置心脏起搏器看医生

https://skcave.wordpress.com/2014/11/04/creating-high-availability-cluster-with-centos-7/

当我如上设置起搏器时,没有问题。但是当我关闭两个节点时,奇怪的是,资源总是停止而不是启动..

喜欢

[root@restcent3 ~]# pcs status
Cluster name: hatest
WARNING: no stonith devices and stonith-enabled is not false
WARNING: corosync and pacemaker node names do not match (IPs used in setup?)
Last updated: Fri Jun  3 03:54:20 2016      Last change: Fri Jun  3 03:28:10 2016 by root via cibadmin on restcent3
Stack: corosync
Current DC: restcent2 (version 1.1.13-10.el7_2.2-44eb2dd) - partition with quorum
2 nodes and 1 resource configured

Online: [ restcent2 restcent3 ]

Full list of resources:

 virtual_ip7    (ocf::heartbeat:IPaddr2):   Stopped

PCSD Status:
  restcent3 (192.168.11.157): Online
  restcent2 (192.168.11.159): Online

Daemon Status:
  corosync: active/enabled
  pacemaker: active/enabled
  pcsd: active/enabled
Run Code Online (Sandbox Code Playgroud)

虽然,在两个节点重新启动后,集群状态非常正确(作为活动)

但是不知道为什么资源总是变成Stop..

因此,重复删除和创建相同的资源(更改资源 id),有时,它似乎已启动,但是,在重新启动启动的节点后,它变为 UNCLEAN 状态,尽管其余节点在线,但它变为 STOP。

而且,现在虽然我创建了资源。它总是停止。

我怎么解决这个问题?当资源停止时,我如何启动资源?

Lev*_*evi 8

我发现了问题。。

问题发生是因为 stonith-enable 是真的!

所以在运行下面的命令后,问题就消失了!

pcs 属性集 stonith-enabled=false