This discussion is archived
2 Replies Latest reply: Mar 5, 2013 11:12 PM by 995017 RSS

How to identify fibre channel HBA working or not

844702 Newbie
Currently Being Moderated
Hi,

I dont know how to identify FC hba card and port. I cant access the box because it is in a remote location.
My customer is saying there is 3 hba cards and one is showing disconnected. I see three types of cards in path_to_inst file and luxadm -e port command.
I cant understand the connection between the controller which showing in the cfgadm command and hba device.
/devices/ssm@0,0/pci@1d,600000/QLGC,qla@1/fp@0,0:devctl showing disconnected what does it mean?

So Please help me to find answers of these questions.

1) how many physical FC HBA cards are in this server.
2) How many FC Ports are in this server
3) Why controller C4 showing un configured.
4) why /devices/ssm@0,0/pci@1d,600000/QLGC,qla@1/fp@0,0:devctl showing disconnected



logs :-

bash-3.00# fcinfo hba
fcinfo: invalid object
Usage: fcinfo [-?] <OBJECT> [-?] [<OPERAND>]
Usage by OBJECT:
fcinfo hba-port [OPTIONS] [<WWN ...>]
fcinfo remote-port <OPTIONS> [<WWN ...>]
For more information, please see fcinfo(1M)
bash-3.00# fcinfo hba-port
HBA Port WWN: 10000000c93aa32d
OS Device Name: /dev/cfg/c2
Manufacturer: Emulex
Model: LP9002L
Firmware Version: 3.90a7 (C2D3.90A7)
FCode/BIOS Version: Boot:3.20 Fcode:1.40a0
Serial Number: BG40340370
Driver Name: emlxs
Driver Version: 2.50o (2010.01.08.09.45)
Type: N-port
State: online
Supported Speeds: 1Gb 2Gb
Current Speed: 2Gb
Node WWN: 20000000c93aa32d
HBA Port WWN: 10000000c93ae1be
OS Device Name: /dev/cfg/c7
Manufacturer: Emulex
Model: LP9002L
Firmware Version: 3.92a3 (C2D3.92A3)
FCode/BIOS Version: Boot:3.20 Fcode:none
Serial Number: BG40855848
Driver Name: emlxs
Driver Version: 2.50o (2010.01.08.09.45)
Type: N-port
State: online
Supported Speeds: 1Gb 2Gb
Current Speed: 2Gb
Node WWN: 20000000c93ae1be
HBA Port WWN: 210000e08b08c5c1
OS Device Name: /dev/cfg/c4
Manufacturer: QLogic Corp.
Model: QLA2200
Firmware Version: 02.01.145
FCode/BIOS Version: fcode: 0.00;
Serial Number: not available
Driver Name: qlc
Driver Version: 20090929-2.32
Type: unknown
State: offline
Supported Speeds: 1Gb
Current Speed: not established
Node WWN: 200000e08b08c5c1
bash-3.00#
bash-3.00# cat /etc/path_to_inst | grep -i fp
"/ssm@0,0/pci@19,600000/lpfc@1/fp@0,0" 3 "fp"
"/ssm@0,0/pci@19,600000/lpfc@1/fp@0,0/ssd@w5001738001900142,1" 0 "ssd"
"/ssm@0,0/pci@19,600000/lpfc@1/fp@0,0/ssd@w5001738001900142,2" 2 "ssd"
"/ssm@0,0/pci@19,600000/lpfc@1/fp@0,0/ssd@w5001738001900160,1" 3 "ssd"
"/ssm@0,0/pci@19,600000/lpfc@1/fp@0,0/ssd@w5001738001900190,1" 4 "ssd"
"/ssm@0,0/pci@19,600000/lpfc@1/fp@1,0" 4 "fp"
"/ssm@0,0/pci@1b,600000/lpfc@1/fp@0,0" 1 "fp"
"/ssm@0,0/pci@1b,600000/lpfc@1/fp@0,0/ssd@w5001738001900170,1" 1 "ssd"
"/ssm@0,0/pci@1b,600000/lpfc@1/fp@1,0" 2 "fp"
"/ssm@0,0/pci@1d,600000/QLGC,qla@1/fp@0,0" 5 "fp"
"/ssm@0,0/pci@1f,600000/QLGC,qla@1/fp@0,0" 0 "fp"
"/ssm@0,0/pci@1f,600000/fibre-channel@1/fp@0,0" 6 "fp"
"/ssm@0,0/pci@1f,600000/fibre-channel@1/fp@1,0" 7 "fp"
bash-3.00# cfgadm -al | grep -i fc
c2 fc-fabric connected configured unknown
c4 fc connected unconfigured unknown
c7 fc-fabric connected configured unknown
bash-3.00# luxadm -e port
/devices/ssm@0,0/pci@19,600000/lpfc@1/fp@0,0:devctl CONNECTED
/devices/ssm@0,0/pci@1f,600000/fibre-channel@1/fp@0,0:devctl CONNECTED
/devices/ssm@0,0/pci@1d,600000/QLGC,qla@1/fp@0,0:devctl NOT CONNECTED
bash-3.00#
bash-3.00#
bash-3.00#
bash-3.00#
bash-3.00# cfgadm -alv | grep -i fc
unavailable fc-fabric n /devices/ssm@0,0/pci@19,600000/lpfc@1/fp@0,0:fc
unavailable array-ctrl n /devices/ssm@0,0/pci@19,600000/lpfc@1/fp@0,0:fc::5001738001900142
unavailable fc n /devices/ssm@0,0/pci@1d,600000/QLGC,qla@1/fp@0,0:fc
unavailable fc-fabric n /devices/ssm@0,0/pci@1f,600000/fibre-channel@1/fp@0,0:fc
unavailable array-ctrl n /devices/ssm@0,0/pci@1f,600000/fibre-channel@1/fp@0,0:fc::5001738001900160
unavailable array-ctrl n /devices/ssm@0,0/pci@1f,600000/fibre-channel@1/fp@0,0:fc::5001738001900190
bash-3.00#
  • 1. Re: How to identify fibre channel HBA working or not
    800381 Explorer
    Currently Being Moderated
    This will tell you what your FC HBA actually sees:
    for port in `fcinfo hba-port | grep Port | awk '{ print $4 }'`; do fcinfo remote-port -ls -p $port; done
  • 2. Re: How to identify fibre channel HBA working or not
    995017 Newbie
    Currently Being Moderated
    If you see state other than online, or speed "not established," the HBA is not working, but it may not be connected to anything.

    If you think it is connected, get the WWN from the "HBA Port WWN" field, and run
    fcinfo remote-port wwn
    If you don't get any information back, you're not seeing any other FC devices (might be a switch zoning issue).
    If you see other ports (usually their WWN starts with a 5), but not your LUNs, add -s, and you can see which LUNs have been masked (made available) to this WWN.
    If you add -l, you can see the error counters for the link, which should be very low (single digit) and not increasing. If not, you might have a bad cable or SFP/GBIC.

    Hope this helps!

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points