6 Replies Latest reply: Nov 16, 2013 11:32 PM by YASIRIMTEYAZ RSS

How to find LUN UUID on a Solaris host.

YASIRIMTEYAZ
Currently Being Moderated

In my scenario, LUNs are exposed to Solaris and Linux hosts via iSCSI. (We would be using FC connection too soon)

 

When LUNs are available to the host over iSCSI:

On a Linux host, I can get the LUN UUID from /dev/disk/by-id as follows -

$ ls -l /dev/disk/by-id

total 0

lrwxrwxrwx 1 root root  9 Nov 11 05:44 scsi-3600144f0dae0dd2200005280d1c80039 -> ../../sda

lrwxrwxrwx 1 root root  9 Nov 11 05:44 scsi-360a98000486e58676834746d7650724d -> ../../sdb   

lrwxrwxrwx 1 root root 10 Nov 11 05:44 scsi-360a98000486e58676834746d7650724d-part1 -> ../../sdb1

 

In the above output, text in bold denotes the LUN UUID.

 

 

On a Solaris host, I am unable to get the UUID.
Since /dev/disk/by-id doesn't exist in Solaris, I am using iscsiadm command to get the LUN info.

####################################

#  NetApp LUN exposed on a Solaris Host

####################################

bash-4.1# /usr/sbin/iscsiadm list target -S

Target: iqn.1992-08.com.netapp:sn.118057984

        Alias: -

        TPGT: 2000

        ISID: 4000002a0000

        Connections: 1

        LUN: 0

             Vendor:  NETAPP 

             Product: LUN            

             OS Device Name: /dev/rdsk/c8t7d0s2

 

The LUN device on this Solaris host is appearing as  /dev/rdsk/c8t7d0s2. With this, I am unable to get the LUN UUID.

 

When I try the same with a Sun ZFS filer, the OS Device Name contains the UUID.

#############################

#  Sun ZFS LUN on a Solaris Host

#############################

bash-3.2# /usr/sbin/iscsiadm list target -S

Target: iqn.1986-03.com.sun:02:4b6d6ce8-9960-c7db-8742-f901f4eb95ca

        Alias: kopnas301-iscsi

        TPGT: 2

        ISID: 4000002a0000

        Connections: 1

        LUN: 0

             Vendor:  SUN    

             Product: Sun Storage 7310

             OS Device Name: /dev/rdsk/c1t600144F0DAE0DD22000052850E75003Ad0s2

 

 

How can I get the NetApp LUN UUID on a Solaris host?

Any help would be much appreciated.

 

 

Thanks

More Like This

  • Retrieving data ...