[ClusterLabs] Corosync OCFS2
Gang He
ghe at suse.com
Wed Nov 8 21:08:21 EST 2017
Hello David,
If you want to use OCFS2 with Pacemaker stack, you do not need ocfs2_controld in the new version.
you do not need configure o2cb resource too.
I can give you a crm demo in SLE12SP3 environment (actually there is not any change since SLE12SP1)
crm(live/tb-node1)configure# show
node 1084784015: tb-node2
node 1084784039: tb-node1
node 1084784110: tb-node3
primitive dlm ocf:pacemaker:controld \
op monitor interval=60 timeout=60
primitive fs1 Filesystem \
params directory="/mnt/shared" fstype=ocfs2 device="/dev/sdb1" \
op start timeout=60s interval=0 \
op stop timeout=60s interval=0 \
op monitor interval=20s timeout=40s
primitive stonith-libvirt stonith:external/libvirt \
params hostlist="tb-node1,tb-node2,tb-node3" hypervisor_uri="qemu+tcp://192.168.125.1/system" \
op monitor interval=60 timeout=120 \
meta target-role=Started
group base-group dlm fs1
clone base-clone base-group \
meta interleave=true
property cib-bootstrap-options: \
have-watchdog=false \
dc-version=1.1.17-3.1-36d2962a8 \
cluster-infrastructure=corosync \
cluster-name=hacluster \
stonith-enabled=true \
placement-strategy=balanced
rsc_defaults rsc-options: \
resource-stickiness=1 \
migration-threshold=3
op_defaults op-options: \
timeout=600 \
record-pending=true
Thanks
Gang
>>>
> I'm trying to set up a 2 node cluster using OCFS2 with a Pacemaker and
> Corosync stack on Debian. I attempted to ocf:heartbeat:o2cb to satisfy
> the o2cb requirement of OCFS2, but found that the required daemon
> o2cb_controld.pcmk is not available for Debian because it was dependent
> on OpenAIS which is no longer part of Corosync. I've reviewed the
> relevant code for this daemon, but I am not familiar with the Corosync
> or OpenAIS APIs in order to make the necessary conversion. The relevant
> code is less than 200 lines long and can be found here:
> https://oss.oracle.com/git/gitweb.cgi?p=ocfs2-tools.git;a=blob;f=ocfs2_contro
> ld/pacemaker.c;h=18f776a748ca4d39f06c9bad84c7faf5fe0c6910;hb=HEAD
> Can someone take a look at this code and tell me if it can be converted
> to Corosync, and if so point me in the direction of how to begin? Is
> Corosync CPG the replacement for OpenAIS?
>
> I'm able to get OCFS2 working with lsb:o2cb, but OCFS2 fails the
> ping_pong test provided with ctdb which is my ultimate goal here. From
> my understanding, o2cb must use o2cb_controld.pcmk in order for OCFS2 to
> function correctly in regards to ctdb. I obviously haven't been able to
> test this configuration due to the current OpenAIS requirement of
> o2cb_controld.pcmk.
>
> Thanks,
>
> David Ellingsworth
More information about the Users
mailing list