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
-g -u -d /dev/<device>
0 (0)
Article Rating (No Votes)
Rate this article
There are no attachments for this article.
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
Tips to Solve Linux & Unix Systems Hard Disk Problems
Viewed 102 times since Fri, May 15, 2020
systemd Auto-restart a crashed service in systemd
Viewed 312 times since Fri, Jan 17, 2020
How setting the TZ environment variable avoids thousands of system calls
Viewed 1116 times since Mon, May 21, 2018
Enabling or disabling a repository using Red Hat Subscription Management
Viewed 878 times since Mon, Oct 29, 2018
RHCS6: Extend an existing Logical Volume / GFS2 filesystem
Viewed 771 times since Sun, Jun 3, 2018
Viewed 9787 times since Sat, Jun 2, 2018
Need to set up yum repository for locally-mounted DVD on Red Hat Enterprise Linux 7
Viewed 766 times since Mon, Oct 29, 2018
LVM: Reduce an existing Logical Volume / Filesystem
Viewed 638 times since Sat, Jun 2, 2018
Linux Network (TCP) Performance Tuning with Sysctl
Viewed 2596 times since Fri, Aug 3, 2018
How to use yum-cron to automatically update RHEL/CentOS Linux 6.x / 7.x
Viewed 1183 times since Tue, Dec 4, 2018