[Debian-ha-maintainers] Bug#939395: Bug#939395: ocfs2-tools - FS can't mount at boot on drbd device

Ervin Hegedüs airween at gmail.com
Thu Sep 5 10:42:18 BST 2019


Hi Valentin,

thanks for quick reply,

On Wed, Sep 04, 2019 at 07:42:46PM +0200, Valentin Vidić wrote:
> 
> You might want to try configuring systemd to start the
> services sequentially (Requires+After):
> 
> 1. drbd.service
> 2. o2cb.service
> 3. ocfs2.service or drbd.mount (they both try to mount).

1. drbd.service doesn't exists (there isn't any drbd*
service/device/other unit file)
2. o2cb doesn't depend on drbd
3. I tried to add the dev-drbd0.device earlier as Request/After,
but didn't solve the problem.

Now looks like this works:

# diff -ruN ocfs2.service /lib/systemd/system/ocfs2.service
--- ocfs2.service	2019-09-04 14:43:55.613155935 +0200
+++ /lib/systemd/system/ocfs2.service	2019-09-05 10:59:12.552486408 +0200
@@ -1,12 +1,13 @@
 [Unit]
 Description=Mount ocfs2 Filesystems
 Documentation=man:ocfs2(7) man:mount.ocfs2(8)
-Requires=o2cb.service
-After=o2cb.service
+Requires=dev-drbd0.device drbd.service o2cb.service
+After=dev-drbd0.device drbd.service o2cb.service
 
 [Service]
 Type=oneshot
 RemainAfterExit=yes
 ExecStart=/usr/lib/ocfs2-tools/ocfs2 start
 ExecStop=/usr/lib/ocfs2-tools/ocfs2 stop
 ExecReload=/usr/lib/ocfs2-tools/ocfs2 restart

so, the "dev-drbd0.device" and "drbd.service" dependencies added
to Requires and After fields solves my problem.

How can I help you to propagate this solution? I mean, should I
edit the Wiki (when I got my access :)) here?

https://wiki.debian.org/DrBd


Thanks,


a.



More information about the Debian-ha-maintainers mailing list