[Debian-ha-maintainers] Bug#787394: Same problem with init.d script

Justin Pasher justinp at distribion.com
Mon Jun 1 20:42:25 UTC 2015


I just experienced the same problem (basically) when I upgraded a box 
from Wheezy to Jessie.

I opted to stay with sysvinit instead of systemd, and the problem is 
also present in the /etc/init.d/drbd script. On line 160 it makes this call:

$DRBDADM adjust-with-progress all

Changing the first parameter to "adjust" as suggested allows the DRBD 
devices to start up.

There is also an issue when running "/etc/init.d/drbd stop", although 
I'm not sure if it's related to me staying on the Wheezy 3.2.68 kernel 
or not (due to an older version of XenServer). When it calls the command 
"$DRBDSETUP show all" at line 205, it spits out this error:

all: Failure: (127) Device minor not allocated

It has to do with passing the "all" parameter to "drbdadm show". If I 
replace the entire command with "|$DRBDADM||sh-resources|", drop the 
sed, and change the "$DRBDSETUP down" command to use drbdadm, it works.

for res in $($DRBDADM sh-resources); do
     $DRBDADM down "$res"
done

--
Justin Pasher



More information about the Debian-ha-maintainers mailing list