Hello Bill,
I will explain the reasons for that research.
RHEL 9 introduced new udev rules for tape devices creation (ID_SCSI_SERIAL):
[root@ebacula rules.d]# grep -rnw tape /usr/lib/udev/rules.d/
/usr/lib/udev/rules.d/50-udev-default.rules:81:SUBSYSTEM=="scsi_generic|scsi_tape",
SUBSYSTEMS=="scsi", ATTRS{type}=="1|8", GROUP="tape"
/usr/lib/udev/rules.d/60-persistent-storage-tape.rules:3:# persistent storage
links: /dev/tape/{by-id,by-path}
/usr/lib/udev/rules.d/60-persistent-storage-tape.rules:10:
SYMLINK+="tape/by-id/scsi-$env{ID_SERIAL}
tape/by-id/scsi-$env{ID_SERIAL}-changer"
/usr/lib/udev/rules.d/60-persistent-storage-tape.rules:15:
SYMLINK+="tape/by-id/scsi-$env{ID_SCSI_SERIAL}"
/usr/lib/udev/rules.d/60-persistent-storage-tape.rules:18:
SYMLINK+="tape/by-path/$env{ID_PATH}-changer"
/usr/lib/udev/rules.d/60-persistent-storage-tape.rules:26:KERNEL=="st*[0-9]",
ENV{ID_SERIAL}=="?*", SYMLINK+="tape/by-id/$env{ID_BUS}-$env{ID_SERIAL}",
OPTIONS+="link_priority=10"
/usr/lib/udev/rules.d/60-persistent-storage-tape.rules:27:KERNEL=="st*[0-9]",
ENV{ID_SCSI_SERIAL}=="?*",
SYMLINK+="tape/by-id/$env{ID_BUS}-$env{ID_SCSI_SERIAL}"
/usr/lib/udev/rules.d/60-persistent-storage-tape.rules:28:KERNEL=="nst*[0-9]",
ENV{ID_SERIAL}=="?*",
SYMLINK+="tape/by-id/$env{ID_BUS}-$env{ID_SERIAL}-nst"
/usr/lib/udev/rules.d/60-persistent-storage-tape.rules:29:KERNEL=="nst*[0-9]",
ENV{ID_SCSI_SERIAL}=="?*",
SYMLINK+="tape/by-id/$env{ID_BUS}-$env{ID_SCSI_SERIAL}-nst"
/usr/lib/udev/rules.d/60-persistent-storage-tape.rules:33:KERNEL=="st*[0-9]",
ENV{ID_PATH}=="?*", SYMLINK+="tape/by-path/$env{ID_PATH}"
/usr/lib/udev/rules.d/60-persistent-storage-tape.rules:34:KERNEL=="nst*[0-9]",
ENV{ID_PATH}=="?*", SYMLINK+="tape/by-path/$env{ID_PATH}-nst"
/usr/lib/udev/rules.d/61-scsi-sg3_id.rules:8:# This code used to live in
60-persistent-storage-tape.rules.
It can be a extremely fast solution for a very old problem.
I wonder if the links order will match the Drivers physical tape library order.
In fact, what I need from the tape library users, is:
The output from the command: "for i in $(ls /dev/tape/by-id/*); do udevadm info
--name $i |tee; done"
The output from the command: "ls -lah /dev/tape/by-id/*"
The operating system version.
Rgds.
_______________________________________________
Bacula-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bacula-users