#1030118 drbd-utils: Warning in initscript about missing /var/lib/linstor/loop_device_mapping

Package:
drbd-utils
Source:
drbd-utils
Description:
RAID 1 over TCP/IP for Linux (user utilities)
Submitter:
Patrik Schindler
Date:
2023-12-16 10:48:03 UTC
Severity:
normal
#1030118#5
Date:
2023-01-31 10:47:16 UTC
From:
To:
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

#1030118#10
Date:
2023-12-16 02:18:15 UTC
From:
To:
I've submitted a fix upstream, with any luck it's accepted and will end up in Debian in the next 3-5 years.

https://github.com/LINBIT/drbd-utils/pull/36/files

#1030118#15
Date:
2023-12-16 10:45:12 UTC
From:
To:
Should have said "then will end up in Debian in the next 3-5 years", poking fun at how slow the uptake of things is in Debian.

tux2bsd