RHEL: Retrieve and generate a unique SCSI identifier

RHEL: Retrieve and generate a unique SCSI identifier

# Tested on RHEL 5, 6 & 7


# There are many situations were we may need a unique identifier for a SCSI device
# (disk, etc.) to be identified in an unambiguous and persistent way.

# To obtain a SCSI unique identifier, we can use following command:

# RHEL 5
/lib/udev/scsi_id -g -u -s /block/<device>


# RHEL 6
/lib/udev/scsi_id -g -u -d /dev/<device>


# RHEL 7
/usr/lib/udev/scsi_id
-g -u -d /dev/<device>
0 (0)
Article Rating (No Votes)
Rate this article
Attachments
There are no attachments for this article.
Comments
There are no comments for this article. Be the first to post a comment.
Full Name
Email Address
Security Code Security Code
Related Articles RSS Feed
Get UUID of Hard Disks [Update]
Viewed 2346 times since Tue, Jul 17, 2018
Using IOzone for Linux disk performance analysis
Viewed 8408 times since Wed, Jul 25, 2018
how to list all hard disks in linux from command line
Viewed 3772 times since Mon, Jan 28, 2019
Linux / UNIX: Run Command a Number of Times In a Row
Viewed 16046 times since Tue, Aug 6, 2019
systemd Auto-restart a crashed service in systemd
Viewed 3411 times since Fri, Jan 17, 2020
Installing and Configuring stunnel on CentOS 6
Viewed 4226 times since Fri, Sep 28, 2018
Setting up encrypted tunnel using stunnel
Viewed 2660 times since Fri, Sep 28, 2018
How to find your System details using inxi
Viewed 3512 times since Sat, Jun 2, 2018
debian How to Upgrade Debian 8 Jessie to Debian 9 Stretch
Viewed 2467 times since Sun, Sep 23, 2018
LVM: Move allocated PE between Physical Volumes
Viewed 4069 times since Sat, Jun 2, 2018