#1030118 drbd-utils: Warning in initscript about missing /var/lib/linstor/loop_device_mapping #1030118
- 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
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
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
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