在 ubuntu 16.04 中 ocfs:pacemaker:o2cb 不再起作用,但我找不到任何描述没有 ocf:pacemaker:o2cb 的 packeamker 的 ocfs2 的文档。我有 drbd 设备并且可以与 pacemaker 配合良好,但 ocfs 工具不知道 pcmk 集群:
# mkfs.ocfs2 -T mail --node-slots 2 --label ocfs2_fs --cluster-
stack=pcmk --cluster-name=debian /dev/drbd1
mkfs.ocfs2 1.6.4
Cluster stack: pcmk
Cluster name: debian
NOTE: Selecting extended slot map for userspace cluster stack
Overwriting existing ocfs2 partition.
mkfs.ocfs2: Unable to access cluster service while initializing the cluster
我的集群状态:
# pcs status
Cluster name: debian
Last updated: Wed Oct 18 17:43:12 2017 Last change: Wed Oct 18
14:45:32 2017 by root via crm_resource on testsvr1
Stack: corosync
Current DC: testsvr1 (version 1.1.14-70404b0) - partition with quorum
2 nodes and 10 resources configured
Online: [ testsvr1 testsvr2 ]
Full list of resources:
Clone Set: WebSite-clone [WebSite]
Started: [ testsvr1 testsvr2 ]
Clone Set: WebFS-clone [WebFS]
Stopped: [ testsvr1 testsvr2 ]
Master/Slave Set: WebDataClone [WebData]
Masters: [ testsvr1 testsvr2 ]
vbox_stonith (stonith:fence_vbox): Started testsvr2
Clone Set: dlm-clone [dlm]
Started: [ testsvr1 testsvr2 ]
答案1
感谢@Doc,我的问题通过 lsb:o2cb 解决
pcs resource create o2cb lsb:o2cb \
op monitor interval="10" timeout="30" \
op start interval="0" timeout="120" \
op stop interval="0" timeout="120" \
clone o2cb clone-max=2 clone-node-max=1