Solaris fibre channel management

With the introduction of Solaris 10, storage management has changed considerably. The storage foundation kit is now integrated into the base OS, the leadville driver has been expanded to include HBAs from Emulex, JNI and Qlogic, and the fcinfo utility as well as several mdb DCMDS were added to view fibre channel connectivity information. fcinfo is especially useful, since it provides a tool with the base Operating System to view HBA and connectivity information.

The fcinfo utility has two main options. The first option, “hba-port,” will display HBA port speeds, WWPNs, the HBA manufacturer, and the state of the HBA:

$ fcinfo hba-port

HBA Port WWN: 10000000c9327592
        OS Device Name: /dev/cfg/c2
        Manufacturer: Emulex
        Model: LP9002L
        Type: N-port
        State: online
        Supported Speeds: 1Gb 2Gb
        Current Speed: 2Gb
        Node WWN: 20000000c9327592

HBA Port WWN: 10000000c9327593
        OS Device Name: /dev/cfg/c3
        Manufacturer: Emulex
        Model: LP9002L
        Type: N-port
        State: online
        Supported Speeds: 1Gb 2Gb
        Current Speed: 2Gb
        Node WWN: 20000000c9327593

If the “-l” option is specified, fcinfo will also print link statistics (e.g., link failure, signal loss, etc.):

$ fcinfo hba-port -l

HBA Port WWN: 10000000c9327592
        OS Device Name: /dev/cfg/c2
        Manufacturer: Emulex
        Model: LP9002L
        Type: N-port
        State: online
        Supported Speeds: 1Gb 2Gb
        Current Speed: 2Gb
        Node WWN: 20000000c9327592
        Link Error Statistics:
                Link Failure Count: 0
                Loss of Sync Count: 5
                Loss of Signal Count: 0
                Primitive Seq Protocol Error Count: 0
                Invalid Tx Word Count: 0
                Invalid CRC Count: 0

HBA Port WWN: 10000000c9327593
        OS Device Name: /dev/cfg/c3
        Manufacturer: Emulex
        Model: LP9002L
        Type: N-port
        State: online
        Supported Speeds: 1Gb 2Gb
        Current Speed: 2Gb
        Node WWN: 20000000c9327593
        Link Error Statistics:
                Link Failure Count: 0
                Loss of Sync Count: 5
                Loss of Signal Count: 0
                Primitive Seq Protocol Error Count: 0
                Invalid Tx Word Count: 0
                Invalid CRC Count: 0

The second fcinfo option is “remote-port,” which will display information on remote targets. This information includes the storage manufacturer, the storage product type, WWPNs, and all of the SCSI targets that have been presented to the host:

$ fcinfo remote-port -slp 10000000c9327592

Remote Port WWN: 50060160082006e2
        Active FC4 Types: SCSI
        SCSI Target: yes
        Node WWN: 50060160882006e2
        Link Error Statistics:
                Link Failure Count: 0
                Loss of Sync Count: 0
                Loss of Signal Count: 0
                Primitive Seq Protocol Error Count: 0
                Invalid Tx Word Count: 255
                Invalid CRC Count: 0
        LUN: 0
          Vendor: DGC
          Product: RAID 5
          OS Device Name: /dev/rdsk/c4t6006016061B71000AD0810C9979CD911d0s2
        LUN: 1
          Vendor: DGC
          Product: RAID 5
          OS Device Name: /dev/rdsk/c4t6006016061B7100055B12704989CD911d0s2
Remote Port WWN: 50060168082006e2
        Active FC4 Types: SCSI
        SCSI Target: yes
        Node WWN: 50060160882006e2
        Link Error Statistics:
                Link Failure Count: 0
                Loss of Sync Count: 0
                Loss of Signal Count: 0
                Primitive Seq Protocol Error Count: 0
                Invalid Tx Word Count: 255
                Invalid CRC Count: 0
        LUN: 0
          Vendor: DGC
          Product: RAID 5
          OS Device Name: /dev/rdsk/c4t6006016061B71000AD0810C9979CD911d0s2
        LUN: 1
          Vendor: DGC
          Product: RAID 5
          OS Device Name: /dev/rdsk/c4t6006016061B7100055B12704989CD911d0s2

These changes should make managing storage on Solaris a bit easier.

5 thoughts on “Solaris fibre channel management”

  1. Thanks for this posting. Helped me get out of a tight spot quicker than I would have otherwise taken :)

    Keep up the good work.

  2. good document
    how to find whether hba card issue or hba san switch port faulty or cable issue on running system

Leave a Reply

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