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

12 thoughts on “Using cfgadm to display LUNs on Solaris hosts”

  1. 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

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

  3. 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.

  4. 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

  5. //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

  6. 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

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

  8. cfgadm -al shows type is unknown.Why.

    c3::50000973501c085e unknown connected configured unknown
    c3::50000973501c08dc unknown connected configured unknown
    c4 fc-fabric connected configured unknown
    c4::500601613ce0166e disk connected configured unknown
    c4::500601693ce0166e disk connected configured unknown
    c5 fc-fabric connected configured unknown
    c5::50000973501c081d unknown connected configured unknown
    c5::50000973501c089f unknown connected configured unknown

Leave a Reply

Your email address will not be published. Required fields are marked *