我需要有关群集错误的帮助:
[root@db2]# pcs status
Cluster name: oracluster
Last updated: Mon Feb 22 16:00:12 2016
Last change: Mon Feb 22 15:45:14 2016
Stack: corosync
Current DC: db2 (2) - partition with quorum
Version: 1.1.12-a14efad
2 Nodes configured
5 Resources configured
Online: [ db1 db2 ]
Full list of resources:
ClusterVIP (ocf::heartbeat:IPaddr2): Started db2
Clone Set: dlm-clone [dlm]
Stopped: [ db1 db2 ]
Clone Set: clvmd-clone [clvmd]
Stopped: [ db1 db2 ]
Failed actions:
dlm_start_0 on db2 'not configured' (6): call=18, status=complete, exit-reason='none', last-rc-change='Mon Feb 22 15:57:04 2016', queued=0ms, exec=34ms
PCSD Status:
db1: Online
db2: Online
Daemon Status:
corosync: active/disabled
pacemaker: active/disabled
pcsd: active/enabled
详细说明:
我有两个带有共享存储(SAN)的节点(db1,db2)。两台服务器都在RHEL7.1中。现在我想将存储添加为资源。根据RHEL文档,DLM和CLVMD也应作为资源添加。我发现当启用STONITH时错误将消失,但仍然没有启动DLM。日志说需要配置Fencing Device,我现在还没有。
有什么解决方法吗?我们有办法禁用fence机制并仍然使集群工作吗?非常感谢你!
答案 0 :(得分:0)
Configure SONITH. It will help you to fix this issue.
答案 1 :(得分:0)
你说你有san存储,然后你创建了一个用于击剑的分区并将其用作scsi stonith,il将解决你的问题,就像这样的例子:
pcs stonith create scsi-stonith-device fence_scsi devices=/dev/mapper/fence pcmk_monitor_action=metadata pcmk_reboot_action=off pcmk_host_list="node1 node2" meta provides=unfencing
并且不要忘记使用pcs property set stonith-enabled=true