[ClusterLabs] Clusterstack Dependency on SBD with systemd

Klaus Wenninger kwenning at redhat.com
Mon Jan 22 08:08:22 EST 2018


Wanted to pick up where we dropped the issue before Christmas.

Observations as a result of a startup-timeout issue led to
the awareness that the way we are starting SBD together with
the rest of the Clusterstack doesn't handle SBD startup-issues

SBD is integrated in the Clusterstack-startup using
dependencies & sequence via the SBD-unit-file:

  Description=Shared-storage based fencing daemon
  After=systemd-modules-load.service iscsi.service


This is quite handy in the sense that if SBD is not present
nobody has to care about anything regarding SBD as it
would have to be if e.g. pacemaker directly required SBD - which
it actually does or should do in some way on clusters
using SBD.

What is working as desired with this setup is that we have
seamless startup/shutdown of SBD-service together with
corosync once SBD is enabled.

What does not work is that systemd doesn't wait/care
if SBD comes up properly before it starts pacemaker.

Just as a side-note:
We just have a startup-issue here as a positive startup
of SBD means that the watchdog (and you are strongly
advised to have a proper one with SBD) is engaged.
Thus any further problem SBD might face should reliably
lead to a reboot.

As a result of the discussion, and as there was no other
solution at sight that wouldn't have dependencies over
several packages, upstream-SBD merged the following


Discussion here on the list and in this pull-request
showed that this approach of simply adding

Before=dlm.service   [Install]

to the SBD-unit-file solves the issue for the first
without having any impact on install/maintenance
But it might not be the optimal longer-term solution.
Thus I'm writing this here as a platform for further

And what showed up as possible caveat since the
discussion before Christmas, if you have SBD enabled
and you are doing an upgrade from a version without
the fix from this pull-request to a version with the
fix you would have to manually reenable the service
for the RequiredBy-links to be updated.


More information about the Users mailing list