[Bug 1412438] Re: OCF:pacemaker:o2cb broken in 14.04
tonyw
1412438 at bugs.launchpad.net
Mon Jan 19 19:32:33 UTC 2015
Digging deeper, it seems that the /usr/sbin/ocfs2_controld.pcmk script
was removed upstream (see https://lists.debian.org/debian-
user/2014/06/msg01224.html) due to openais no longer being part of the
system - and oracle have yet to update the ocfs2-tools package to
provide a non-openais version.
/usr/lib/ocf/resource.d/pacemaker/o2cb should probably be removed from
the resource agents.
I am have managed to find what appears to be a workaround
With reference to http://drbd.linbit.com/users-
guide/s-ocfs2-pacemaker.html#s-ocfs2-pacemaker-drbd
The recommended way to configure an ocfs2 resource for pacemaker
management is to use "crm configure" to add the stanzas
primitive p_controld ocf:pacemaker:controld
primitive p_o2cb ocf:ocfs2:o2cb
group g_ocfs2mgmt p_controld p_o2cb
clone cl_ocfs2mgmt g_ocfs2mgmt meta interleave=trueprimitive p_fs_ocfs2 ocf:heartbeat:Filesystem \
params device="/dev/drbd/by-res/ocfs2/0" directory="/srv/ocfs2" \
fstype="ocfs2" options="rw,noatime"
clone cl_fs_ocfs2 p_fs_ocfs2
Howevr, this no longer works as the ocf approach is not possible under
Ubuntu 14.04. Using the lsb script appears to be the best way to manage
the resource i.e.
Edit /etc/default/o2cb and set:
O2CB_ENABLED=true
Ensure that o2cb does not start automatically:
sudo update-rc.d o2cb remove
and use crm configure to add somehhing like
primitive p_o2cb lsb:o2cb \
op monitor interval="10" timeout="30" \
op start interval="0" timeout="120" \
op stop interval="0" timeout="120"
clone cl_ocfs2mgmt p_o2cb \
meta interleave="true"
primitive p_fs_disk2 ocf:heartbeat:Filesystem \
params device=""/dev/drbd/by-res/ocfs2/0" directory="/srv/ocfs2" fstype="ocfs2" options="rw,noatime" \
op monitor timeout="40" interval="20" depth="0"
clone cl_fs_disk2 p_fs_disk2
However, there is still a further bug to workaround before ocfs2 works
with pacemaker under 14.04. See
https://bugs.launchpad.net/ubuntu/+source/ocfs2-tools/+bug/1412548
Finally with the workaround and the bug fix, it all seems to work...
--
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to ocfs2-tools in Ubuntu.
https://bugs.launchpad.net/bugs/1412438
Title:
OCF:pacemaker:o2cb broken in 14.04
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ocfs2-tools/+bug/1412438/+subscriptions
More information about the Ubuntu-server-bugs
mailing list