Failed to start LSB: Load O2CB cluster services at system boot.
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ocfs2-tools (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Trusty |
Won't Fix
|
Low
|
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-
Process: 1526 ExecStart=
май 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-
Process: 2101 ExecStart=
май 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!
affects: | systemd (Ubuntu) → ocfs2-tools (Ubuntu) |
description: | updated |
tags: | added: ubuntu-ha |
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.