[bionic] dlm_controld won't start due to missing device files
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
dlm (Ubuntu) |
Triaged
|
Undecided
|
Unassigned | ||
Bionic |
Confirmed
|
Medium
|
Unassigned |
Bug Description
Right after installing dlm and dlm_controld, when trying to start the service, you will face:
rafaeldtinoco@
● dlm.service - dlm control daemon
Loaded: loaded (/lib/systemd/
Active: failed (Result: exit-code) since Fri 2020-03-06 19:13:32 UTC; 35s ago
Docs: man:dlm_controld
Process: 31644 ExecStart=
Process: 31643 ExecStartPre=
Main PID: 31644 (code=exited, status=1/FAILURE)
Mar 06 19:13:21 clubionic01 systemd[1]: Starting dlm control daemon...
Mar 06 19:13:21 clubionic01 dlm_controld[
Mar 06 19:13:32 clubionic01 dlm_controld[
Mar 06 19:13:32 clubionic01 systemd[1]: dlm.service: Main process exited, code=exited, status=1/FAILURE
Mar 06 19:13:32 clubionic01 systemd[1]: dlm.service: Failed with result 'exit-code'.
Mar 06 19:13:32 clubionic01 systemd[1]: Failed to start dlm control daemon.
This happens even after the module "dlm" was loaded (as you can see in the ExecStartPre= line).
(k)rafaeldtinoc
crw------- 1 root root 10, 56 Mar 6 19:08 /dev/dlm-control
crw------- 1 root root 10, 55 Mar 6 19:08 /dev/dlm-monitor
crw------- 1 root root 10, 54 Mar 6 19:08 /dev/dlm_plock
And we can see hardcoded device filename paths:
dlm_controld/
dlm_controld/
dlm_controld/
And the way rules.d files are generated:
rafaeldtinoco@
libdlm/
libdlm/Makefile: $(INSTALL) -d $(DESTDIR)
libdlm/Makefile: $(INSTALL) -m 644 $(UDEV_TARGET) $(DESTDIR)
And that the package contains those:
(k)rafaeldtinoc
KERNEL=
KERNEL=
KERNEL=
KERNEL=="dlm_*", MODE="0660", SYMLINK+="misc/%k"
Changed in dlm (Ubuntu Bionic): | |
assignee: | Rafael David Tinoco (rafaeldtinoco) → nobody |
I have monitored udev when modprobing dlm module and those are the udev events being triggered:
(k)rafaeldtinoc o@clubionic01: ~$ sudo udevadm monitor --kernel
monitor will print the received events for:
KERNEL - the kernel uevent
KERNEL[ 10516.364250] add /module/dlm (module) 10516.364425] add /kernel/ slab/:0000496 (slab) 10516.364579] add /kernel/ slab/:0000312 (slab) 10516.364730] add /devices/ virtual/ misc/dlm- control (misc) 10516.364849] add /devices/ virtual/ misc/dlm- monitor (misc) 10516.364980] add /devices/ virtual/ misc/dlm_ plock (misc)
KERNEL[
KERNEL[
KERNEL[
KERNEL[
KERNEL[
and when being removed:
KERNEL[ 10713.488367] remove /devices/ virtual/ misc/dlm_ plock (misc) 10713.488465] remove /devices/ virtual/ misc/dlm- control (misc) 10713.488539] remove /devices/ virtual/ misc/dlm- monitor (misc) 10713.488635] remove /kernel/ slab/:0000496 (slab) 10713.488692] remove /kernel/ slab/:0000312 (slab) 10713.488825] remove /module/dlm (module)
KERNEL[
KERNEL[
KERNEL[
KERNEL[
KERNEL[