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
Secure Remote Logging to Central Log Server Using RSYSLOG on CentOS 6 / CentOS 7 and stunnel
Viewed 5582 times since Sun, Dec 6, 2020
LVM: Recovering Physical Volume Metadata
Viewed 14370 times since Sat, Jun 2, 2018
stunnel bacula
Viewed 3069 times since Fri, Sep 28, 2018
Tips to Solve Linux & Unix Systems Hard Disk Problems
Viewed 5219 times since Fri, May 15, 2020
ZPOOL: Grow a zpool by adding new device(s)
Viewed 7387 times since Sun, Jun 3, 2018
How to mount software RAID1 member using mdadm
Viewed 4108 times since Wed, Oct 3, 2018
Increase A VMware Disk Size (VMDK) Formatted As Linux LVM without rebooting
Viewed 17211 times since Wed, May 30, 2018
Managing temporary files with systemd-tmpfiles on Red Hat Enterprise Linux 7
Viewed 11768 times since Sun, Nov 22, 2020
RHEL: Crash kernel dumps configuration and analysis on RHEL 6
Viewed 6452 times since Sat, Jun 2, 2018
Linux Kernel /etc/sysctl.conf Security Hardening
Viewed 24940 times since Fri, Aug 3, 2018