[Debian-ha-maintainers] Bug#1030118: drbd-utils: Warning in initscript about missing /var/lib/linstor/loop_device_mapping

Patrik Schindler poc at pocnet.net
Tue Jan 31 10:47:16 GMT 2023


Package: drbd-utils
Version: 9.15.0-1
Severity: normal

Note: I'm using sysv-rc, not systemd.

At startup, a warning is issued:
/etc/init.d/drbd: line 148: /var/lib/linstor/loop_device_mapping: No such file or directory

In fact, /var/lib/linstor doesn't exist on the machine in question.

Since drbd starts and ends without issue, I guess that directory is usually not needed.

Maybe it would be a good idea to add a check for the existence of the
file/directory in line 150 and do nothing if it doesn't exist.

if [ -f /var/lib/linstor/loop_device_mapping ]; then
	...
fi

-- System Information:
Debian Release: 11.6
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable-security'), (500, 'stable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 5.10.0-21-amd64 (SMP w/2 CPU threads)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/bash
Init: sysvinit (via /sbin/init)

Versions of packages drbd-utils depends on:
ii  init-system-helpers  1.60
ii  libc6                2.31-13+deb11u5
ii  libgcc-s1            10.2.1-6
ii  libstdc++6           10.2.1-6
ii  lsb-base             11.1.0

Versions of packages drbd-utils recommends:
ii  bsd-mailx [mailx]  8.1.2-0.20180807cvs-2

Versions of packages drbd-utils suggests:
pn  heartbeat  <none>



More information about the Debian-ha-maintainers mailing list