Skip to content

Commit

Permalink
crowbar-pacemaker: don't tell systemd to enable drbd (bsc#971771)
Browse files Browse the repository at this point in the history
  https://bugzilla.suse.com/show_bug.cgi?id=971771

We only want DRBD started by Pacemaker, with the possible exception of
during initial DRBD setup.  If it gets started by systemd, systemd will
believe it owns the service, in which case during system shutdown it
will prematurely shut down DRBD without regard for any of the other
services and resources depending on it.  Instead we want Pacemaker to
stop things in the correct order, even taking care of inter-node
dependencies.

This fix will not be sufficient by itself, since we still need to
address:

  https://bugzilla.suse.com/show_bug.cgi?id=980341

Thanks to Adam Spiers <[email protected]> (for the fix & for writing the commit
message)
  • Loading branch information
vuntz committed Jan 6, 2017
1 parent 6abc1f8 commit 52d11b7
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions chef/cookbooks/crowbar-pacemaker/recipes/drbd_setup.rb
Original file line number Diff line number Diff line change
Expand Up @@ -62,5 +62,10 @@

include_recipe "drbd::install"
include_recipe "drbd::config"
# this will start drbd
include_recipe "drbd::default"

This comment has been minimized.

Copy link
@aspiers

aspiers Jan 12, 2017

Member

FTR, this commit message came from 6aed8a4 but the change was more minimal.


# Disable drbd as it should never be started on boot (pacemaker should do it)
# However, start it because on initial setup, we currently require drbd to be
# running.
service "drbd" do
action [:disable, :start]
end

0 comments on commit 52d11b7

Please sign in to comment.