[Debian-ha-maintainers] Bug#787394: Bug#787394: drbd-utils: Incorrect systemd startup script (future parameter)

Apollon Oikonomopoulos apoikos at debian.org
Wed Dec 30 09:18:33 UTC 2015


Control: tags -1 wontfix
Control: found -1 8.9.5-1

Hi Rik (and apologies for the extremely long delay),

On 04:28 Mon 01 Jun     , Rik Wasmus wrote:
> Package: drbd-utils
> Version: 8.9.2~rc1-2

> but adjust-with-progress is not available as command in the default 
> Jessie install, and according to drbd docs only available from version 
> 9.0 (in pre-release) onward. Hence, it fails to start drbd. It should 
> probably just be:
> 
> /sbin/drbdadm adjust all
> 
> -- System Information:
> Debian Release: 8.0
>   APT prefers stable
>   APT policy: (990, 'stable'), (500, 'stable-updates')
> Architecture: amd64 (x86_64)
> 
> Kernel: Linux 3.2.0-4-amd64 (SMP w/16 CPU cores)

It looks like you are (were?) using a wheezy kernel with Jessie 
userland. Wheezy's 3.2 kernel has DRBD kernel module version 8.3, while 
Jessie's has 8.4. Between 8.3 and 8.4 the DRBD kernel API changed, and 
upstream created new utilities with different command line arguments.  
/usr/sbin/drbdadm will actually chain-load /lib/drbd/drbdadm-83 when run 
under wheezy's kernel, and drbdadm-83 indeed does not support 
adjust-with-progress.

My previous upload erroneously marked this bug as fixed in 8.9.5-1, but 
upstream's initscript is still using adjust-with-progress.

Now, this is something we could fix by looking at the DRBD kernel 
version (or patching drbdadm-83 to alias adjust-with-progress to 
adjust), but IMHO it's not really worth it. Instead you can modify the 
initscript directly (it's a conffile, and your changes will be preserved 
in future updates), or if you want to use systemd, override the unit by 
placing a modified copy under /etc/systemd/system/drbd.service.

Regards,
Apollon



More information about the Debian-ha-maintainers mailing list