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
python learning
Viewed 1744 times since Wed, Dec 18, 2019
Method 2 – Use shell scripts How to install yum cron on a CentOS/RHEL 6.x/7.x
Viewed 4002 times since Tue, Dec 4, 2018
Managing temporary files with systemd-tmpfiles on Red Hat Enterprise Linux 7
Viewed 9398 times since Sun, Nov 22, 2020
SSH: Execute Remote Command or Script – Linux
Viewed 2230 times since Mon, Feb 18, 2019
debian Debian/Ubuntu Linux: Find If Installed APT Package Includes a Fix/Patch Via CVE Number
Viewed 9316 times since Sun, Sep 23, 2018
RHEL: How to change a USER/GROUP UID/GID and all owned files
Viewed 21050 times since Sat, Jun 2, 2018
10 Linux rsync Examples to Exclude Files/Directories
Viewed 10753 times since Wed, Oct 31, 2018
An easier way to manage disk decryption at boot with Red Hat Enterprise Linux 7.5 using NBDE
Viewed 7275 times since Mon, Aug 6, 2018
Automatic YUM Updates with Yum-cron
Viewed 10473 times since Fri, Oct 26, 2018
RHEL: Adding a boot entry to GRUB/GRUB2 configuration
Viewed 4445 times since Sun, May 27, 2018