]> git.ipfire.org Git - thirdparty/systemd.git/commit
udev-rules: make tape devices also accessable by ENV{ID_SCSI_SERIAL} 7411/head
authorJoerg Steffens <joerg.steffens@bareos.com>
Tue, 21 Nov 2017 11:52:57 +0000 (12:52 +0100)
committerJoerg Steffens <joerg.steffens@bareos.com>
Wed, 27 Dec 2017 10:37:18 +0000 (11:37 +0100)
commit8d0edd1172e6b61881528fd2428ced520f6862a6
treea6b0c8810c90626c4e8073fe82ecf8cdb77bb236
parent7f8ddf96a25162f06bd94a684cf700c128d18142
udev-rules: make tape devices also accessable by ENV{ID_SCSI_SERIAL}

Tape and tape changer devices from Amazon Webservice Storage Gateway VTLs
and maybe other iSCSI VTLs all have the same ENV{ID_SERIAL}.
The results is, that only the last device is available in
/dev/tape/by-id/, as the former devices have been overwritten.
However, the devices can be distinguished by ENV{ID_SCSI_SERIAL}.

ENV{ID_SCSI_SERIAL} is not set on directly connected SCSI devices.

This rule additional creates links based on the ENV{ID_SCSI_SERIAL}, if
it is set.

In my case, it creates (ID_SCSI_SERIAL)
/dev/tape/by-id/scsi-AMZN_SGW-6BF81D02_MC_00001
/dev/tape/by-id/scsi-AMZN_SGW-6BF81D02_TD_00001
/dev/tape/by-id/scsi-AMZN_SGW-6BF81D02_TD_00002
...

instead of only (ID_SERIAL)
scsi-2414d5a4e5f5347572d364246
rules/60-persistent-storage-tape.rules