OCF:pacemaker:o2cb broken in 14.04
Bug #1412438 reported by
tonyw
This bug report is a duplicate of:
Bug #1869643: {fence,resource}-agents: PATH for all binaries called by all agents should be resolvable.
Edit
Remove
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ocfs2-tools (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned | ||
Precise |
New
|
Undecided
|
Unassigned | ||
Trusty |
New
|
Undecided
|
Unassigned |
Bug Description
The pacemaker resource agent ocf:pacemaker:o2cb requires
/usr/sbin/
in order to execute correctly. This binary used to be in ocsf2-tools-
tags: | added: ubuntu-ha |
To post a comment you must log in.
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 trueprimitive p_fs_ocfs2 ocf:heartbeat: Filesystem \ "/dev/drbd/ by-res/ ocfs2/0" directory= "/srv/ocfs2" \
fstype= "ocfs2" options= "rw,noatime"
primitive p_o2cb ocf:ocfs2:o2cb
group g_ocfs2mgmt p_controld p_o2cb
clone cl_ocfs2mgmt g_ocfs2mgmt meta interleave=
params device=
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 \ Filesystem \ ""/dev/ drbd/by- res/ocfs2/ 0" directory= "/srv/ocfs2" fstype="ocfs2" options= "rw,noatime" \
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:
params device=
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...