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
An easier way to manage disk decryption at boot with Red Hat Enterprise Linux 7.5 using NBDE
Viewed 6866 times since Mon, Aug 6, 2018
python learning
Viewed 1591 times since Wed, Dec 18, 2019
RHEL: Multipathing basics
Viewed 8154 times since Sat, Jun 2, 2018
Applescript: Run or Call a Shell Script
Viewed 3923 times since Tue, Aug 6, 2019
RHCS6: Quorum disk and heuristics
Viewed 3869 times since Sun, Jun 3, 2018
Linux 20 Netstat Commands for Linux Network Management
Viewed 9179 times since Mon, Sep 21, 2020
Linux – How to check the exit status of several piped commands
Viewed 2705 times since Wed, Jul 25, 2018
How to convert RAW image to VDI and otherwise
Viewed 14531 times since Wed, Oct 3, 2018
RHCS6: ’fencing’ basics
Viewed 1995 times since Sun, Jun 3, 2018
How to find the largest files and directories in Linux?
Viewed 2981 times since Sun, May 20, 2018