Using cfgadm to display LUNs on Solaris hosts

If you are trying to configure and unconfigure LUNs on a Solaris host, you may be suprised to find that the default ‘cfgadm -al’ output doesn’t display the LUNs on your system. To view the LUNs on a Solaris host, you need to use cfgadm’s show_SCSI_LUN option:

$ cfgadm -al -o show_SCSI_LUN

Ap_Id                          Type         Receptacle   Occupant     Condition
c3                             fc-fabric    connected    configured   unknown
c3::50060161082006e2,0         disk         connected    configured   unknown
c3::50060161082006e2,1         disk         connected    configured   unknown
c3::50060161082006e2,2         disk         connected    configured   unknown
c3::50060161082006e2,3         disk         connected    configured   unknown
c3::50060161082006e2,5         disk         connected    configured   unknown
c3::50060169082006e2,0         disk         connected    configured   unknown
c3::50060169082006e2,1         disk         connected    configured   unknown
c3::50060169082006e2,2         disk         connected    configured   unknown
c3::50060169082006e2,3         disk         connected    configured   unknown
c3::50060169082006e2,5         disk         connected    configured   unknown
c4                             fc-fabric    connected    configured   unknown
c4::50060160082006e2,0         disk         connected    configured   unknown
c4::50060160082006e2,1         disk         connected    configured   unknown
c4::50060160082006e2,2         disk         connected    configured   unknown
c4::50060160082006e2,3         disk         connected    configured   unknown
c4::50060160082006e2,5         disk         connected    configured   unknown
c4::50060168082006e2,0         disk         connected    configured   unknown
c4::50060168082006e2,1         disk         connected    configured   unknown
c4::50060168082006e2,2         disk         connected    configured   unknown
c4::50060168082006e2,3         disk         connected    configured   unknown
c4::50060168082006e2,5         disk         connected    configured   unknown

11 Comments

Michael Lohmann  on June 1st, 2006

Only with Solaris 10. In Solaris 8 you have to use cfgadm -al -o show_FCP_dev c2

Michael Lohmann  on June 1st, 2006

root@xxx:/ # cfgadm -al -o show_FCP_dev c3
Ap_Id Type Receptacle Occupant Condition
c3 fc-fabric connected configured unknown
c3::500060e802c69e1d,17 disk connected configured unknown
c3::500060e802c69e1d,18 disk connected configured unknown
c3::500060e802c6a01d,21 disk connected configured unknown
c3::500060e802c6a01d,22 disk connected configured unknown

vijay  on October 1st, 2006

Please update me what is basically a LUN ?

harhari  on January 14th, 2009

what is 500060e802c69e1d from the output, is that WWN of this host or the target ?
how to identity LUNS from a target?

narth  on September 2nd, 2009

The WWN sound like it is that of the array on which the LUN resides. My EMC array WWNs all begin with “50″ where my HBA WWNs all begin with “21″ or “10″ depending on vendor.

Nicholas  on November 22nd, 2010

LUN = Logical Unit Number (http://en.wikipedia.org/wiki/Logical_Unit_Number)

The LUN number is what comes after period

Example:

c3::500060e802c69e1d,17

C3=local controller
500060e802c69e1d=Target port WWN
17=target’s LUN

venkat  on January 26th, 2011

hi
great to see a over whelming respone here…

when a SAN person assigns a LUN to my server .but i cannot see the LUN in FORMAT command out put …

how can i detect the LUN in to my os control.before that how can i see the lun wheather it is assigned to my server or not

venkat  on January 26th, 2011

//hi
great to see a over whelming respone here…
when a SAN person assigns a LUN to my server .but i cannot see the LUN in FORMAT command out put …
how can i detect the LUN in to my os control.before that how can i see the lun wheather it is assigned to my server or not//

my os is sun solaris 10

sanketlimbekar  on March 28th, 2011

am new to solaris, but as far as i know, we can detect the assigned LUNs by executing “cfgmgr” command

pls correct me if am wrong

sanketlimbekar  on March 28th, 2011

cfgmgr would be for AIX

devfsadm should work for Solaris

Siva  on June 28th, 2012

What is mean by “disk” in cfgadm output, also got confused cfgadm dislaying SCSI LUN details but output shows fc-fabric, pls clarify …

Leave a Comment