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

** Also affects: ocfs2-tools (Ubuntu Yakkety)
   Importance: Undecided
       Status: New

** Also affects: ocfs2-tools (Ubuntu Xenial)
   Importance: Undecided
       Status: New

** Also affects: ocfs2-tools (Ubuntu Trusty)
   Importance: Undecided
       Status: New

-- 
You received this bug notification because you are a member of Ubuntu
High Availability Team, which is subscribed to ocfs2-tools in Ubuntu.
https://bugs.launchpad.net/bugs/1584629

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

Status in ocfs2-tools package in Ubuntu:
  Triaged
Status in ocfs2-tools source package in Trusty:
  New
Status in ocfs2-tools source package in Xenial:
  New
Status in ocfs2-tools source package in Yakkety:
  New

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!

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ocfs2-tools/+bug/1584629/+subscriptions

_______________________________________________
Mailing list: https://launchpad.net/~ubuntu-ha
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~ubuntu-ha
More help   : https://help.launchpad.net/ListHelp

Reply via email to