Checking fibrechannel (fiberchannel) devices in Solaris 10

| | Comments (0) | TrackBacks (0)
To see which devices are accessible by your fibrechannel controller cards and the fabric, just use fcinfo.

First, find out which fibrechannel host adapters you have on your machine:

# fcinfo hba-port
HBA Port WWN: 2100001b321fe69b
        OS Device Name: /dev/cfg/c5
        Manufacturer: QLogic Corp.
        Model: 375-3355-01
        Firmware Version: 4.2.2
        FCode/BIOS Version:  BIOS: 1.24; fcode: 1.24; EFI: 1.8;
        Type: N-port
        State: online
        Supported Speeds: 1Gb 2Gb 4Gb
        Current Speed: 4Gb
        Node WWN: 2000001b321fe69b
HBA Port WWN: 2100001b321fbd9c
        OS Device Name: /dev/cfg/c4
        Manufacturer: QLogic Corp.
        Model: 375-3355-01
        Firmware Version: 4.2.2
        FCode/BIOS Version:  BIOS: 1.24; fcode: 1.24; EFI: 1.8;
        Type: N-port
        State: online
        Supported Speeds: 1Gb 2Gb 4Gb
        Current Speed: 4Gb
        Node WWN: 2000001b321fbd9c


Here you see the firmware levels and types of your controller cards. You will also see the WWPN (port WWN) and the WWNN (Node WWN) of your controller. As each of the cards do only have one port, you will see only one WWPN per WWN.

To find out which devices can be reached by these controllers, use the remote-port option of fcinfo. You will have to give the port to be controlled as an argument to  "-p":

Example:

# fcinfo remote-port -p 2100001b321fe69b
Remote Port WWN: 220000d0232c50ab
        Active FC4 Types: SCSI
        SCSI Target: yes
        Node WWN: 200000d0232c50ab
Remote Port WWN: 2100001b321f9eb3
        Active FC4 Types:
        SCSI Target: no
        Node WWN: 2000001b321f9eb3
Remote Port WWN: 210000d0231c50be
        Active FC4 Types: SCSI
        SCSI Target: yes
        Node WWN: 200000d0231c50be


You see through the port with the WWPN 2100001b321fe69b (which is on c5 which can be seen on the first fcinfo command output) three devices: two scsi volumes and one other target: This is the fiberchannel controller on another machine.
The fcinfo command helped me very much to find out where I have a configuration error on my fibrechannel fabric.

Just as a side note: the last scsi device in the example above has the WWNN 200000d0231c50be. This is one of the paths which are constructing the virtual scsi_vhci device c6t600D0230006C1C4C0C50BE5BC9D49100d0 mentioned in my entry about scsi_vhci (MPxIO) names.

0 TrackBacks

Listed below are links to blogs that reference this entry: Checking fibrechannel (fiberchannel) devices in Solaris 10.

TrackBack URL for this entry: http://southbrain.com/mt/mt-tb.cgi/19

Leave a comment

July 2012

Sun Mon Tue Wed Thu Fri Sat
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30 31        

About

This blog is owned by:

Pascal Gienger
Jägerstrasse 77
8406 Winterthur
Switzerland


Google+: Profile
YouTube Channel: pascalgienger