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. )
Anyone can point me in the right direction?
Fank you very much!
Regards,
T.
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. )
Anyone can point me in the right direction?
Fank you very much!
Regards,
T.