Good evening, my final solution: SUBSYSTEM=="scsi_generic", SUBSYSTEMS=="scsi", ATTRS{type}=="8", ATTRS{model}=="MAGNUM 224 ", IMPORT{program}="scsi_id --sg-version=3 --export --whitelisted -d $devnode", \ SYMLINK+="changer0" SUBSYSTEM=="scsi_generic", SUBSYSTEMS=="scsi", ATTRS{type}=="8", ATTRS{model}=="FlexStor II ", ATTRS{rev}=="5.11", IMPORT{program}="scsi_id --sg-version=3 --export --whitelisted -d $devnode", \ SYMLINK+="changer1" SUBSYSTEM=="scsi_generic", SUBSYSTEMS=="scsi", ATTRS{type}=="8", ATTRS{model}=="FlexStor II ", ATTRS{rev}=="5.50", IMPORT{program}="scsi_id --sg-version=3 --export --whitelisted -d $devnode", \ SYMLINK+="changer2" Very helpful: /dev/sch0, /dev/sch1, /dev/sch2 are persistent devices - but not generic devices. udevadm info -a /dev/sch0 shows all possible attributes in the udev rules key format. best regards Helmut Viele Grüße Helmut Drodofsky Internet XS Service GmbH Heßbrühlstraße 15 70565 Stuttgart Geschäftsführung Helmut Drodofsky HRB 21091 Stuttgart USt.ID: DE190582774 Fon: 0711 781941 0 <tel:+497117819410> Fax: 0711 781941 79 Mail: info at internet-xs.de www.internet-xs.de Am 08.02.2019 um 12:21 schrieb Leon Fauster via CentOS: >> Am 08.02.2019 um 00:13 schrieb Ron Loftin <reloftin at twcny.rr.com>: >> >> On Thu, 2019-02-07 at 22:29 +0100, Helmut Drodofsky wrote: >>> Hello Ron, >>> >>> sounds good. I have 2 tape changer. I persume, udev creates the same >>> link for both. >>> >>> Can I modify >>> SYMLINK+="changer-$env{ID_SERIAL}" >>> >>> The serial should be unique. >>> >>> Viele Grüße >>> Helmut Drodofsky >>> >>> >> I've taken you as far as I can go. Now you will have to experiment a >> bit for your use case. I should point out that at least in my system, >> the link with the serial number in it shows up even with the line >> commented in the rules file. >> >> As always, YMMV. > Maybe > > .... ATTRS{serial}=="likethis16c07338d2a294c" , SYMLINK+="mybackup/changer1" ... > > and for the second one > > ... ATTRS{serial}=="likethis9ae76c073f5ccb8" , SYMLINK+="mybackup/changer2" ... > > ? > > -- > LF > _______________________________________________ > CentOS mailing list > CentOS at centos.org > https://lists.centos.org/mailman/listinfo/centos