Failed to start LSB: Load O2CB cluster services at system boot.

Bug #1584629 reported by sles on 2016-05-23
12
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ocfs2-tools (Ubuntu)
Undecided
Unassigned
Trusty
Undecided
Unassigned
Xenial
Undecided
Unassigned
Yakkety
Undecided
Unassigned

Bug Description

Ubuntu 16.04.

Sometimes (not every boot) o2cb failed to start:

systemctl status o2cb
● o2cb.service - LSB: Load O2CB cluster services at system boot.
   Loaded: loaded (/etc/init.d/o2cb; bad; vendor preset: enabled)
   Active: failed (Result: exit-code) since Пн 2016-05-23 11:46:43 SAMT; 2min 12s ago
     Docs: man:systemd-sysv-generator(8)
  Process: 1526 ExecStart=/etc/init.d/o2cb start (code=exited, status=1/FAILURE)

май 23 11:46:43 inetgw1 systemd[1]: Starting LSB: Load O2CB cluster services at system boot....
май 23 11:46:43 inetgw1 o2cb[1526]: Loading filesystem "configfs": OK
май 23 11:46:43 inetgw1 o2cb[1526]: Mounting configfs filesystem at /sys/kernel/config: mount: configfs is already
май 23 11:46:43 inetgw1 o2cb[1526]: configfs is already mounted on /sys/kernel/config
май 23 11:46:43 inetgw1 o2cb[1526]: Unable to mount configfs filesystem
май 23 11:46:43 inetgw1 o2cb[1526]: Failed
май 23 11:46:43 inetgw1 systemd[1]: o2cb.service: Control process exited, code=exited status=1
май 23 11:46:43 inetgw1 systemd[1]: Failed to start LSB: Load O2CB cluster services at system boot..
май 23 11:46:43 inetgw1 systemd[1]: o2cb.service: Unit entered failed state.
май 23 11:46:43 inetgw1 systemd[1]: o2cb.service: Failed with result 'exit-code'.

next try is successful:
systemctl status o2cb
● o2cb.service - LSB: Load O2CB cluster services at system boot.
   Loaded: loaded (/etc/init.d/o2cb; bad; vendor preset: enabled)
   Active: active (exited) since Пн 2016-05-23 11:49:07 SAMT; 1s ago
     Docs: man:systemd-sysv-generator(8)
  Process: 2101 ExecStart=/etc/init.d/o2cb start (code=exited, status=0/SUCCESS)

май 23 11:49:07 inetgw1 systemd[1]: Starting LSB: Load O2CB cluster services at system boot....
май 23 11:49:07 inetgw1 o2cb[2101]: Loading stack plugin "o2cb": OK
май 23 11:49:07 inetgw1 o2cb[2101]: Loading filesystem "ocfs2_dlmfs": OK
май 23 11:49:07 inetgw1 o2cb[2101]: Mounting ocfs2_dlmfs filesystem at /dlm: OK
май 23 11:49:07 inetgw1 o2cb[2101]: Setting cluster stack "o2cb": OK
май 23 11:49:07 inetgw1 o2cb[2101]: Starting O2CB cluster inetgw: OK
май 23 11:49:07 inetgw1 systemd[1]: Started LSB: Load O2CB cluster services at system boot..

I guess this is startup dependency problem.

Thank you!

sles (slesru) on 2016-05-23
affects: systemd (Ubuntu) → ocfs2-tools (Ubuntu)
Nish Aravamudan (nacc) wrote :

It would appear that this check in /etc/init.d/o2cb:

check_filesystem "$FSNAME" "$MOUNTPOINT" && return 2

is failing. There is specific code in the init-script to handle this case, though.

Would you be able to run

`sudo bash -x /etc/init.d/o2cb start` and attach the log of that output here?

I guess there could be a race between something (I'm not sure what yet) mounting configfs during boot and the init script running check_filesystem and mount.

It looks like (at least) the init-scripts /etc/init.d/mountkernfs.sh and /etc/init.d/target do mount configfs.

I think we should update the o2cb init-script (upstream probably: https://oss.oracle.com/bugzilla/enter_bug.cgi) to handle mount returning 32 (I think that's the correct RC) since it's inherently racy (init is no longer single threaded).

@slesru, would you be willing to file that bug?

Then again, given that ocfs2-tools looks effectively dead upstream, we probably will need to fix it on our own.

Changed in ocfs2-tools (Ubuntu):
status: New → Triaged
Andreas Hasenack (ahasenack) wrote :

The development seems to be happening here: https://github.com/markfasheh/ocfs2-tools

Might be worth filing a bug there: https://github.com/markfasheh/ocfs2-tools/issues

sles (slesru) wrote :

Hello!

I don't use ocfs2 on Ubuntu anymore, migrated to Oracle Linux, it works there.

Thank you!

Shawn (shawnpatti) on 2017-09-21
description: updated
tags: added: ubuntu-ha
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers