본문 바로가기

Work/Solaris

solaris SAN Configuration Command Reference

--------------cfgadm : 동적 H/W 자원 관리 명령어-----------------------


cfgadm -al : View what fabric devices are seen and configured and their condition 

cfgadm -al

Ap_Id                          Type         Receptacle   Occupant     Condition

c1                             scsi-sas     connected    configured   unknown

c1::dsk/c1t0d0                 disk         connected    configured   unknown

c1::dsk/c1t1d0                 disk         connected    configured   unknown

c1::dsk/c1t2d0                 disk         connected    configured   unknown

c1::dsk/c1t3d0                 disk         connected    configured   unknown

c2                             fc-fabric    connected    configured   unknown

c2::10000000c981cff4           unknown      connected    unconfigured unknown

c2::10000000c9830894           unknown      connected    unconfigured unknown

c2::2100001b3210983a           unknown      connected    unconfigured unknown

c2::210000e08b9c8e5f           unknown      connected    unconfigured unknown

c2::500507680310b3b0           disk         connected    configured   unknown

c2::500507680310b3b1           disk         connected    configured   unknown

c3                             fc-fabric    connected    unconfigured unknown

c3::2101001b3230983a           unknown      connected    unconfigured unknown

usb0/1                         unknown      empty        unconfigured ok

usb0/2                         unknown      empty        unconfigured ok

usb0/3                         unknown      empty        unconfigured ok

usb1/1                         unknown      empty        unconfigured ok

usb1/2                         unknown      empty        unconfigured ok

usb2/1                         unknown      empty        unconfigured ok

usb2/2                         usb-storage  connected    configured   ok

usb2/3                         unknown      empty        unconfigured ok

usb2/4                         usb-hub      connected    configured   ok

usb2/4.1                       unknown      empty        unconfigured ok

usb2/4.2                       unknown      empty        unconfigured ok

usb2/4.3                       unknown      empty        unconfigured ok

usb2/4.4                       unknown      empty        unconfigured ok

usb2/5                         unknown      empty        unconfigured ok


cfgadm -c [un]configured c# : to [un]configured a devices 

ex : cfgadm -c configure c3::2101001b3230983a

     cfgadm - c unconfigure c3::2101001b3230983a 


cfgadm -o show_FCP_dev -al : list luns under each device. very handy when troubleshooting lun issues 

Ap_Id                          Type         Receptacle   Occupant     Condition

c2                             fc-fabric    connected    configured   unknown

c2::10000000c981cff4           unknown      connected    unconfigured unknown

c2::10000000c9830894           unknown      connected    unconfigured unknown

c2::2100001b3210983a           unknown      connected    unconfigured unknown

c2::210000e08b9c8e5f           unknown      connected    unconfigured unknown

c2::500507680310b3b0,0         disk         connected    configured   unknown

c2::500507680310b3b1,0         disk         connected    configured   unknown

c3                             fc-fabric    connected    unconfigured unknown

c3::2101001b3230983a           unknown      connected    unconfigured unknown



ls -l /dev/fc : give you fp to path mappings

lrwxrwxrwx   1 root     root          68  2¿ù  8ÀÏ  23:53 fp0 -> ../../devices/pci@0/pci@0/pci@8/pci@0/pci@1/QLGC,qlc@0/fp@0,0:devctl

lrwxrwxrwx   1 root     root          70  2¿ù  8ÀÏ  23:53 fp1 -> ../../devices/pci@0/pci@0/pci@8/pci@0/pci@1/QLGC,qlc@0,1/fp@0,0:devctl


ls -l /dev/cfg : This will show you paths to controller mapping.

lrwxrwxrwx   1 root     root          43  2¿ù  8ÀÏ  23:53 c1 -> ../../devices/pci@0/pci@0/pci@2/scsi@0:scsi

lrwxrwxrwx   1 root     root          66  2¿ù  8ÀÏ  23:53 c2 -> ../../devices/pci@0/pci@0/pci@8/pci@0/pci@1/QLGC,qlc@0,1/fp@0,0:fc

lrwxrwxrwx   1 root     root          64  2¿ù  8ÀÏ  23:53 c3 -> ../../devices/pci@0/pci@0/pci@8/pci@0/pci@1/QLGC,qlc@0/fp@0,0:fc

drwxr-xr-x   2 root     root           5  2¿ù  8ÀÏ  23:53 usb0

drwxr-xr-x   2 root     root           4  2¿ù  8ÀÏ  23:53 usb1

drwxr-xr-x   2 root     root          11  2¿ù  8ÀÏ  23:53 usb2



---------------------luxadm : FC_AL 관리 --------------------------- 

luxadm fcode -p : lists what kind of HBA's are in the system and firmware on each
  Found Path to 0 FC100/S Cards
  Complete

  Found Path to 0 FC100/P, ISP2200, ISP23xx Devices
  Complete

  Found Path to 0 JNI1560 Devices.
  Complete

  Found Path to 0 Emulex Devices.
  Complete

luxadm -e port : check to see if HBA's are CONNECTED or DISCONNECTED
/devices/pci@0/pci@0/pci@8/pci@0/pci@1/QLGC,qlc@0/fp@0,0:devctl    CONNECTED
/devices/pci@0/pci@0/pci@8/pci@0/pci@1/QLGC,qlc@0,1/fp@0,0:devctl  CONNECTED

luxadm -e dump_map <device path | dev/cfg/c# Lists HBA WWN 

ex : luxadm -e dump_map /devices/pci@0/pci@0/pci@8/pci@0/pci@1/QLGC,qlc@0/fp@0,0:devctl

Pos  Port_ID Hard_Addr Port WWN         Node WWN         Type

0    10700   0         2101001b3230983a 2001001b3230983a 0x1f (Unknown Type)

1    10200   0         2100001b3210983a 2000001b3210983a 0x1f (Unknown Type,Host Bus Adapter)


ls -l /dev/cfg 
lrwxrwxrwx   1 root     root          43  2¿ù  8ÀÏ  23:53 c1 -> ../../devices/pci@0/pci@0/pci@2/scsi@0:scsi
lrwxrwxrwx   1 root     root          66  2¿ù  8ÀÏ  23:53 c2 -> ../../devices/pci@0/pci@0/pci@8/pci@0/pci@1/QLGC,qlc@0,1/fp@0,0:fc
lrwxrwxrwx   1 root     root          64  2¿ù  8ÀÏ  23:53 c3 -> ../../devices/pci@0/pci@0/pci@8/pci@0/pci@1/QLGC,qlc@0/fp@0,0:fc
drwxr-xr-x   2 root     root           5  2¿ù  8ÀÏ  23:53 usb0
drwxr-xr-x   2 root     root           4  2¿ù  8ÀÏ  23:53 usb1
drwxr-xr-x   2 root     root          11  2¿ù  8ÀÏ  23:53 usb2

ex : luxadm -e dump_map /devices/pci@0/pci@0/pci@8/pci@0/pci@1/QLGC,qlc@0,1/fp@0,0:fc


Pos  Port_ID Hard_Addr Port WWN         Node WWN         Type

0    10000   0         500507680310b3b0 500507680300b3b0 0x0  (Disk device)

1    10100   0         500507680310b3b1 500507680300b3b1 0x0  (Disk device)

2    10200   0         2100001b3210983a 2000001b3210983a 0x1f (Unknown Type)

3    10400   0         10000000c9830894 20000000c9830894 0x1f (Unknown Type)

4    10500   0         10000000c981cff4 20000000c981cff4 0x1f (Unknown Type)

5    10700   0         2101001b3230983a 2001001b3230983a 0x1f (Unknown Type,Host Bus Adapter)


luxadm probe : lists paths to disk arrays
No Network Array enclosures found in /dev/es

Found Fibre Channel device(s):
  Node WWN:500507680300b3b0  Device Type:Disk device
    Logical Path:/dev/rdsk/c2t500507680310B3B0d0s2
  Node WWN:500507680300b3b1  Device Type:Disk device
    Logical Path:/dev/rdsk/c2t500507680310B3B1d0s2


luxadm display <path>
ex : luxadm display 500507680300b3b1
DEVICE PROPERTIES for disk: 500507680300b3b1
  Vendor:               IBM
  Product ID:           2145
  Revision:             0000
  Serial Num:           00c02020b3b2XX00
  Unformatted capacity: 153600.000 MBytes
  Read Cache:           Enabled
    Minimum prefetch:   0x0
    Maximum prefetch:   0x0
  Device Type:          Disk device
  Path(s):

  /dev/rdsk/c2t500507680310B3B1d0s2
  /devices/pci@0/pci@0/pci@8/pci@0/pci@1/QLGC,qlc@0,1/fp@0,0/ssd@w500507680310b3b1,0:c,raw
    LUN path port WWN:          500507680310b3b1
    Host controller port WWN:   2101001b3230983a
    Path status:                O.K.
  /dev/rdsk/c2t500507680310B3B0d0s2
  /devices/pci@0/pci@0/pci@8/pci@0/pci@1/QLGC,qlc@0,1/fp@0,0/ssd@w500507680310b3b0,0:c,raw
    LUN path port WWN:          500507680310b3b0
    Host controller port WWN:   2101001b3230983a
    Path status:                O.K.

prtconf -pv | grep -i wwn ( will give you the wwn of all configured HBAs on the system, this is a snap shot of what the prom saw at boot )
ex : prtconf -pv | grep -i wwn
                            port-wwn:  2100001b.3210983a
                            node-wwn:  2000001b.3210983a
                            port-wwn:  2101001b.3230983a
                            node-wwn:  2001001b.3230983a

prtpicl -v -c scsi-fcp ( will get HBA properties for Sun, Qlogic & Emulex )
ex : prtpicl -v -c scsi-fcp
  QLGC,qlc (scsi-fcp, ee0000063e)
  :Label         MB/RISER1/PCIE1
  :DeviceID      0
  :UnitAddress   0
  :vendor-id     0x1077
  :device-id     0x2432
  :revision-id   0x3
  :subsystem-vendor-id   0x1077
  :subsystem-id  0x138
  :class-code    0xc0400
  :cache-line-size       0x10
  :interrupts    00  00  00  01
  :fcode-rom-offset      0xb000
  :#address-cells        0x2
  :#size-cells   0
  :device_type   scsi-fcp
  :min-grant     0
  :max-latency   0
  :devsel-speed  0
  :short-version         1.24  11/15/06
  :compatible   (ee0000066cTBL)
   | pciex1077,138.1077.138.3 |
   | pciex1077,138.1077.138 |
   | pciex1077,138 |
   | pciex1077,2432.3 |
   | pciex1077,2432 |
   | pciclass,c0400 |
  :reg
 00  0d  00  00  00  00  00  00  00  00  00  00  00  00  00  00  00  00  00  00  01  0d  00  10  00  00  00  00  00  00  00  00  00  00  00  00  00  00  01
 00  03  0d  00  14  00  00  00  00  00  00  00  00  00  00  00  00  00  00  10  00
  :node-wwn      20  00  00  1b  32  10  98  3a
  :port-wwn      21  00  00  1b  32  10  98  3a
  :model         QLE2462
  :version       QLE2462 Host Adapter Driver(SPARC): 1.24  11/15/06
  :manufacturer  QLGC
  :assigned-addresses
 81  0d  00  10  00  00  00  00  00  00  30  00  00  00  00  00  00  00  01  00  82  0d  00  14  00  00  00  00  00  d0  00  00  00  00  00  00  00  00  40
 00  82  0d  00  30  00  00  00  00  00  d4  00  00  00  00  00  00  00  04  00  00
  :ddi-intr-weight       0xa
  :load-flash-fw         0
  :completion-threads    0x4
  :msix-vectors  0x5
  :init-loop-sync-wait   0xa
  :ddi-forceattach       0x1
  :pci-max-read-request  0x800
  :firmware-dump-flags   0
  :extended-logging      0
  :enable-link-down-error        0x1
  :link-down-timeout     0
  :fc-data-rate  0x2
  :enable-FCP-2-error-recovery   0x1
  :connection-options    0x2
  :queue-full-retry-delay        0x2
  :queue-full-retry-count        0x10
  :port-down-retry-delay         0x2
  :port-down-retry-count         0x8
  :reset-delay   0x5
  :enable-target-reset-on-bus-reset      0
  :enable-LIP-full-login-on-bus-reset    0x1
  :enable-LIP-reset-on-bus-reset         0
  :adapter-hard-loop-ID  0
  :enable-adapter-hard-loop-ID   0
  :login-retry-count     0x4
  :login-timeout         0x3
  :execution-throttle    0x20
  :max-frame-length      0x800
  :fm-ereport-capable
  :fm-errcb-capable
  :devfs-path    /pci@0/pci@0/pci@8/pci@0/pci@1/QLGC,qlc@0
  :driver-name   qlc
  :binding-name  pciex1077,2432
  :bus-addr      0
  :instance      0
  :_class        scsi-fcp
  :name  QLGC,qlc
  QLGC,qlc (scsi-fcp, ee000006a3)
  :DeviceID      0
  :UnitAddress   0,1
  :vendor-id     0x1077
  :device-id     0x2432
  :revision-id   0x3
  :subsystem-vendor-id   0x1077
  :subsystem-id  0x138
  :class-code    0xc0400
  :cache-line-size       0x10
  :interrupts    00  00  00  02
  :fcode-rom-offset      0xb000
  :#address-cells        0x2
  :#size-cells   0
  :device_type   scsi-fcp
  :min-grant     0
  :max-latency   0
  :devsel-speed  0
  :short-version         1.24  11/15/06
  :compatible   (ee000006d1TBL)
   | pciex1077,138.1077.138.3 |
   | pciex1077,138.1077.138 |
   | pciex1077,138 |
   | pciex1077,2432.3 |
   | pciex1077,2432 |
   | pciclass,c0400 |
  :reg
 00  0d  01  00  00  00  00  00  00  00  00  00  00  00  00  00  00  00  00  00  01  0d  01  10  00  00  00  00  00  00  00  00  00  00  00  00  00  00  01
 00  03  0d  01  14  00  00  00  00  00  00  00  00  00  00  00  00  00  00  10  00
  :node-wwn      20  01  00  1b  32  30  98  3a
  :port-wwn      21  01  00  1b  32  30  98  3a
  :model         QLE2462
  :version       QLE2462 Host Adapter Driver(SPARC): 1.24  11/15/06
  :manufacturer  QLGC
  :assigned-addresses
 81  0d  01  10  00  00  00  00  00  00  31  00  00  00  00  00  00  00  01  00  82  0d  01  14  00  00  00  00  00  d0  40  00  00  00  00  00  00  00  40
 00  82  0d  01  30  00  00  00  00  00  d8  00  00  00  00  00  00  00  04  00  00
  :ddi-intr-weight       0xa
  :load-flash-fw         0
  :completion-threads    0x4
  :msix-vectors  0x5
  :init-loop-sync-wait   0xa
  :ddi-forceattach       0x1
  :pci-max-read-request  0x800
  :firmware-dump-flags   0
  :extended-logging      0
  :enable-link-down-error        0x1
  :link-down-timeout     0
  :fc-data-rate  0x2
  :enable-FCP-2-error-recovery   0x1
  :connection-options    0x2
  :queue-full-retry-delay        0x2
  :queue-full-retry-count        0x10
  :port-down-retry-delay         0x2
  :port-down-retry-count         0x8
  :reset-delay   0x5
  :enable-target-reset-on-bus-reset      0
  :enable-LIP-full-login-on-bus-reset    0x1
  :enable-LIP-reset-on-bus-reset         0
  :adapter-hard-loop-ID  0
  :enable-adapter-hard-loop-ID   0
  :login-retry-count     0x4
  :login-timeout         0x3
  :execution-throttle    0x20
  :max-frame-length      0x800
  :fm-ereport-capable
  :fm-errcb-capable
  :devfs-path    /pci@0/pci@0/pci@8/pci@0/pci@1/QLGC,qlc@0,1
  :driver-name   qlc
  :binding-name  pciex1077,2432
  :bus-addr      0,1
  :instance      1
  :_class        scsi-fcp
  :name  QLGC,qlc

fcinfo hba-port : will get HBA details, Solaris 10 only
ex : fcinfo hba-port
HBA Port WWN: 2100001b3210983a
        OS Device Name: /dev/cfg/c3
        Manufacturer: QLogic Corp.
        Model: QLE2462
        Firmware Version: 5.08.00
        FCode/BIOS Version:  BIOS: 1.24; fcode: 1.24; EFI: 1.08;
        Serial Number: RFC0806K63576
        Driver Name: qlc
        Driver Version: 20140422-5.01
        Type: N-port
        State: online
        Supported Speeds: 1Gb 2Gb 4Gb
        Current Speed: 2Gb
        Node WWN: 2000001b3210983a
HBA Port WWN: 2101001b3230983a
        OS Device Name: /dev/cfg/c2
        Manufacturer: QLogic Corp.
        Model: QLE2462
        Firmware Version: 5.08.00
        FCode/BIOS Version:  BIOS: 1.24; fcode: 1.24; EFI: 1.08;
        Serial Number: RFC0806K63576
        Driver Name: qlc
        Driver Version: 20140422-5.01
        Type: N-port
        State: online
        Supported Speeds: 1Gb 2Gb 4Gb
        Current Speed: 4Gb
        Node WWN: 2001001b3230983a