John H Nyhuis
2019-Oct-29 22:41 UTC
[CentOS] udev on CEntOS7 - can't get a match, looking for tips...
Thanks, I did catch the mistype (after IU posted). Still no match with the typo fixed... :-( Thanks, John H. Nyhuis Desk: (206)-685-8334 jnyhuis at uw.edu Box 359461, 15th floor, 106 On 10/29/2019 4:03 AM, Tony Mountifield wrote:> In article <7025a0a8-1471-530d-dad0-3770e902ca31 at uw.edu>, > John H Nyhuis <jnyhuis at uw.edu> wrote: >> The mtx binary requires my tape library to be assigned a sg# driver, but >> the kernel periodically renumbers the sg devices. Normally, we would >> write a udev rule to manually assign a persistent name, but it looks >> like things have changed as I can't seem to get a match on CEntOS7. I'd >> appreciate any feedback or pointers to help me get my rule working. My >> two attempts are below. >> >> cat /etc/udev/rules.d/90-local.rules >> >> KERNEL=="sg[0-9]*", SUBSYSTEM=="scsi_generic", \ >> ENV{ID_SERIAL}=="1QUANTUM_D0H0112430_LLA", SYMLINK+="sg8" >> >> SUBSYSTEM=="scsi", SUBSYSTEMS=="scsi_genric", \ >> ATTRS{model}=="Scalar i40-i80 ", SYMLINK:="sg8" > > You have a typo: scsi_genric instead of scsi_generic. > > Don't know if that is the reason. > > Cheers > Tony >
Leon Fauster
2019-Oct-29 23:31 UTC
[CentOS] udev on CEntOS7 - can't get a match, looking for tips...
Am 29.10.19 um 23:41 schrieb John H Nyhuis:> Thanks, I did catch the mistype (after IU posted). Still no match with > the typo fixed... :-( > > Thanks, > > John H. Nyhuis > Desk: (206)-685-8334 > jnyhuis at uw.edu > Box 359461, 15th floor, 106 > > On 10/29/2019 4:03 AM, Tony Mountifield wrote: >> In article <7025a0a8-1471-530d-dad0-3770e902ca31 at uw.edu>, >> John H Nyhuis <jnyhuis at uw.edu> wrote: >>> The mtx binary requires my tape library to be assigned a sg# driver, but >>> the kernel periodically renumbers the sg devices. Normally, we would >>> write a udev rule to manually assign a persistent name, but it looks >>> like things have changed as I can't seem to get a match on CEntOS7. I'd >>> appreciate any feedback or pointers to help me get my rule working. My >>> two attempts are below. >>> >>> cat /etc/udev/rules.d/90-local.rules >>> >>> KERNEL=="sg[0-9]*", SUBSYSTEM=="scsi_generic", \ >>> ENV{ID_SERIAL}=="1QUANTUM_D0H0112430_LLA", SYMLINK+="sg8" >>> >>> SUBSYSTEM=="scsi", SUBSYSTEMS=="scsi_genric", \ >>> ATTRS{model}=="Scalar i40-i80 ", SYMLINK:="sg8" >> >> You have a typo: scsi_genric instead of scsi_generic. >> >> Don't know if that is the reason. >>SYMLINK:="sg8" -> SYMLINK+="sg8" -- Leon
John H Nyhuis
2019-Oct-29 23:37 UTC
[CentOS] udev on CEntOS7 - can't get a match, looking for tips...
hmmm, I thought := assigned a key just like +=, except := locked it so it could not be changed later. Am I misunderstanding the man page for udev? Thanks, John H. Nyhuis Desk: (206)-685-8334 jnyhuis at uw.edu Box 359461, 15th floor, 106 On 10/29/2019 4:31 PM, Leon Fauster via CentOS wrote:> Am 29.10.19 um 23:41 schrieb John H Nyhuis: >> Thanks, I did catch the mistype (after IU posted).? Still no match with >> the typo fixed... :-( >> >> Thanks, >> >> John H. Nyhuis >> Desk: (206)-685-8334 >> jnyhuis at uw.edu >> Box 359461, 15th floor, 106 >> >> On 10/29/2019 4:03 AM, Tony Mountifield wrote: >>> In article <7025a0a8-1471-530d-dad0-3770e902ca31 at uw.edu>, >>> John H Nyhuis <jnyhuis at uw.edu> wrote: >>>> The mtx binary requires my tape library to be assigned a sg# driver, >>>> but >>>> the kernel periodically renumbers the sg devices.? Normally, we would >>>> write a udev rule to manually assign a persistent name, but it looks >>>> like things have changed as I can't seem to get a match on CEntOS7. >>>> I'd >>>> appreciate any feedback or pointers to help me get my rule working.? My >>>> two attempts are below. >>>> >>>> cat /etc/udev/rules.d/90-local.rules >>>> >>>> KERNEL=="sg[0-9]*", SUBSYSTEM=="scsi_generic", \ >>>> ENV{ID_SERIAL}=="1QUANTUM_D0H0112430_LLA", SYMLINK+="sg8" >>>> >>>> SUBSYSTEM=="scsi", SUBSYSTEMS=="scsi_genric", \ >>>> ATTRS{model}=="Scalar i40-i80? ", SYMLINK:="sg8" >>> >>> You have a typo: scsi_genric instead of scsi_generic. >>> >>> Don't know if that is the reason. >>> > > > SYMLINK:="sg8" -> SYMLINK+="sg8" > > -- > Leon > > _______________________________________________ > CentOS mailing list > CentOS at centos.org > https://lists.centos.org/mailman/listinfo/centos
Possibly Parallel Threads
- udev on CEntOS7 - can't get a match, looking for tips...
- udev on CEntOS7 - can't get a match, looking for tips...
- udev on CEntOS7 - can't get a match, looking for tips...
- udev on CEntOS7 - can't get a match, looking for tips...
- Nasty Fail2Ban update for Centos 7