[CentOS] udev on CEntOS7 - can't get a match, looking for tips...

Tue Oct 29 11:03:57 UTC 2019
Tony Mountifield <tony at softins.co.uk>

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
-- 
Tony Mountifield
Work: tony at softins.co.uk - http://www.softins.co.uk
Play: tony at mountifield.org - http://tony.mountifield.org