Red Hat Bugzilla – Bug 1470605
systemd-udevd does not create /dev/tape/by-id/ structure
Last modified: 2017-08-17 05:54:25 EDT
Created attachment 1297481 [details]
output of reproducer script
Description of problem:
When you load or present new tapes to the system and uevent is generated for those devices the systemd-udevd does not create the /dev/tape/by-id always.
It's not happening all the times but is quite easily reproducible with scsi_debug
Version-Release number of selected component (if applicable):
presenting scsi tapes to the system
Steps to Reproduce:
for ((i=0; i<30; i++)); do modprobe scsi_debug ptype=1 add_host=2; sleep 5 ; ll -r /dev/tape/ ; modprobe -r scsi_debug ; done
2) check the result of the ls. You should have 4 symlinks there, to st0 nst0 st1 and nst1 as you are loading 2 tapes.
The symlinks are not created allways.
The symlinks are created allways.
When you map the tape and the symlinks are not created, you can fix it by running udevadm trigger.
Attaching journalctl -f with logs from systemd-udevd in debug mode.
Created attachment 1297482 [details]
sosreport with systemd-udevd in debug mode