Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do I find wwid of iscsi disks in Linux?

Status
Not open for further replies.

tmf33uk

Technical User
Aug 23, 2007
21
GB
Hi all,

this will be a quick question for some of you: I am trying to find the UUID of iSCSI disks that my RedHat Linux sees. I am looking in /sys/class/... but I keep finding symbolic links that send me round in circles:

[root@ovs1-ec host6]# pwd
/sys/class/iscsi_host/host6/subsystem/host6
[root@ovs1-ec host6]# ls -la
total 0
drwxr-xr-x 3 root root 0 May 23 14:06 .
drwxr-xr-x 5 root root 0 May 23 14:06 ..
lrwxrwxrwx 1 root root 0 May 23 17:22 device -> ../../../devices/platform/host6
-r--r--r-- 1 root root 4096 May 23 17:22 hwaddress
-r--r--r-- 1 root root 4096 May 23 17:22 initiatorname
-r--r--r-- 1 root root 4096 May 23 17:22 ipaddress
-r--r--r-- 1 root root 4096 May 23 17:22 netdev
drwxr-xr-x 2 root root 0 May 23 14:06 power
lrwxrwxrwx 1 root root 0 May 23 17:22 subsystem -> ../../iscsi_host
-rw-r--r-- 1 root root 4096 May 23 17:22 uevent

Oh, and by the way, the iSCSIs are coming from a NAS box.

I found the UUID from here:
[root@ovs1-ec disk]# pwd
/dev/disk
[root@ovs1-ec disk]# ls -la by-uuid
total 0
drwxr-xr-x 2 root root 120 May 16 14:13 .
drwxr-xr-x 6 root root 120 May 14 19:59 ..
lrwxrwxrwx 1 root root 9 May 16 14:13 0004fb00-0005-0000-15f8-e0582d2d69c5 -> ../../sdd
lrwxrwxrwx 1 root root 10 May 14 19:59 06730460-0028-4cad-9fc8-e8638f7fb02d -> ../../sda3
lrwxrwxrwx 1 root root 10 May 14 19:59 7568c57c-bcbf-4087-ab6d-986f5174e8cb -> ../../sda1
lrwxrwxrwx 1 root root 10 May 14 19:59 87b5512c-4623-4bed-a146-55b51ab102ef -> ../../sda2
[root@ovs1-ec disk]#

...but I cannot find the WWID. :eek:)

Anyone can point me in the right direction?

Fank you very much!

Regards,
T.
 
Try:

Code:
scsi_id -g -u -s /block/sdd
scsi_id -g -u -s /block/sda3
...

and so on for each disk.

Regards,
Chuck
 
Hi Chuck

I had tried that before, and I have tried it again before responding. It didn´t return anything.

My iSCSIs are formated as OCFS2 and mounted in the server.

Any other ideas? I´d expect this to be in some system file also, no?

Regards,
T.
 
What about in /etc/multipath.conf? If that file exists, check in there for the WWID's.

Regards,
Chuck
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top