How can I assign static names for SCSI Tapes devices using udev in Red Hat Enterprise Linux 6 ?

Latest response

This procedure https://access.redhat.com/site/solutions/7318 not work in Red Hat 6.5.

[root@barpx02 ~]# scsi_id -u -p 0x80 --whitelisted /dev/nst0
SIBM_ULT3580-TD5_00078A2417

[root@barpx02 ~]# /sbin/scsi_id -g -u -s /class/scsi_tape/nst0
/sbin/scsi_id: invalid option -- 's'
[root@barpx02 ~]#

[root@barpx02 ~]# more /etc/release
::::::::::::::
/etc/redhat-release
::::::::::::::
Red Hat Enterprise Linux Server release 6.5 (Santiago)

Responses

There are 2 basic steps to this procedure, so you can vary slightly from the specific commands they are suggesting.

  1. Determine a command you can run on the /dev/nst* devices that will generate a unique and repeatable output for each device you have.
  2. Configure udev to run that command and create a device symlink based on the output (that will be unique per device).

I would suggest running your first command that provided the serial number output on each tape device you have and determine if the output is unique for each device. They do have a warning that these aren't necessarily unique across vendors, but if you can verify this output is unique for each drive you have it shouldn't be a problem. Then create udev rules based on the command you ran for each device, the output you received, and the new device name you want to create a symlink from.

I can assist if you paste back the output from all of the tape drives you interrogate.

Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.