系统相关
首页 > 系统相关> > linux – 起搏器在停止时挂起

linux – 起搏器在停止时挂起

作者:互联网

我最近为managin安装了起搏器和corosync虚拟IP.

问题是,当我想在所有节点上停止资源(虚拟IP)时,stop命令会挂起.

[root@isis ~]# sudo pcs cluster stop --all
isis: Stopping Cluster...

我的配置是:

[root@isis ~]# sudo pcs status
Cluster name: cluster-osiris
Last updated: Mon Dec  8 00:09:29 2014
Last change: Mon Dec  8 00:09:24 2014 via cibadmin on isis
Stack: corosync
Current DC: horus (2) - partition with quorum
Version: 1.1.10-32.el7_0.1-368c726
2 Nodes configured
2 Resources configured


Online: [ horus isis ]

Full list of resources:

 HAproxy        (systemd:haproxy):      Started horus
 ClusterIP-01   (ocf::heartbeat:IPaddr2):       Started isis

PCSD Status:
  isis: Online
  horus: Online

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

如果我逐节点地停止群集,它运行良好:

[root@isis ~]# sudo pcs cluster stop horus
horus: Stopping Cluster...
[root@isis ~]# sudo pcs cluster stop isis
isis: Stopping Cluster...
[root@isis ~]# sudo pcs status 
Error: cluster is not currently running on this node

拜托,你能帮帮我解决这个问题吗?

TKS!

解决方法:

如果您的目标是阻止资源在群集中的任何节点上运行,那么您需要使用以下命令禁用该资源:

pcs资源禁用ClusterIP-01

你的命令sudo pcs cluster stop –all将关闭集群本身(以及该集群控制的任何资源).

Managing Cluster Resources

标签:linux,cluster,pacemaker
来源: https://codeday.me/bug/20190815/1659129.html