Solaris : Determine WWN for HBA Cards, without fiber connection
Other Learning Articles that you may like to read
Free Courses We Offer
Paid Training Courses we Offer
Below procedure explains about how to determine WWN number for the HBA cards ( Qlogic / Emulex Cards) without existing fible cable connectio
To determine the WWN of a Sun Qlogic HBA, run the following command(sample output included):
#prtpicl -v -c scsi-fcp
SUNW,qlc (scsi-fcp, 3e00000272)
: DeviceID 0x1
:UnitAddress 1
:vendor-id 0x1077
:device-id 0x2312
:revision-id 0x2
:subsystem-id 0x10a
:subsystem-vendor-id 0x1077
:min-grant 0x40
:max-latency 0
:interrupts 00 00 00 01
:class-code 0xc0400
:devsel-speed 0x1
:fast-back-to-back
:66mhz-capable
:fcode-rom-offset 0
:version ISP2312 FC-AL Host Adapter Driver: 1.13.08 04/10/02
:device_type scsi-fcp
:#address-cells 0x2
:#size-cells 0
:manufacturer QLGC
:compatible (3e0000027dTBL)
| pci1077,2312.1077.10a.2 |
| pci1077,2312.1077.10a |
| pci1077,10a |
| pci1077,2312.2 |
| pci1077,2312 |
| pciclass,0c0400 |
| pciclass,0c04 |
:reg
00 02 08 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 01 02
08 10 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 00 02
02 08 14
00 00 00 00 00 00 00 00 00 00 00 00 00 00 10 00
:node-wwn 20 00 00 e0 8b 0a 57 77 <============
:port-wwn 21 00 00 e0 8b 0a 57 77 <============
:assigned-addresses
81 02 08 10 00 00 00 00 00 00 20 00 00 00 00 00 00 00 01
00 82 02
08 14 00 00 00 00 00 20 00 00 00 00 00 00 00 00 10 00
:devfs-path /pci@1f,0/pci@1/SUNW,qlc
:binding-name SUNW,qlc
:instance -1Or try this script, it reports only the WWN and the device path :
>> echo
>> printf “See below the results :n”
>> echo
>> prtpicl -v -c scsi-fcp | grep port-wwn > /tmp/port-wwn
>> prtpicl -v -c scsi-fcp | grep devfs-path > /tmp/devfs-path
>> paste -d “t” /tmp/devfs-path /tmp/port-wwn
>> rm /tmp/port-wwn /tmp/devfs-pathTo determine the WWN of a Sun JNI HBA, run the following command:
# prtpicl -v -c scsi
SUNW,jfca (scsi, 8e0000023c)
: DeviceID 0x2
:UnitAddress 2
:vendor-id 0x1242
:device-id 0x1560
:revision-id 0xb2
:subsystem-id 0x656b
:subsystem-vendor-id 0x1242
:min-grant 0x8
:max-latency 0x8
:interrupts 00 00 00 01
:class-code 0xc0400
:devsel-speed 0x1
:66mhz-capable
:fcode-rom-offset 0
:device_type scsi
:#size-cells 0
:#address-cells 0x2
:manufacturer JNIC
:copyright Copyright (c) 2000-2003 by JNIC
:fcode_revision Version 1.0
:version Version 1.0
:reg
00 00 10 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
01 00 10 10 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 00
03 00 10 14 00 00 00 00 00 00 00 00 00 00 00 00 00 00 10 00
01 00 10 1c 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 00
02 00 10 30 00 00 00 00 00 00 00 00 00 00 00 00 00 08 00 00
:pci_slot 0x1000
:power-consumption
00 00 00 00 00 00 00 00 03 30 00 00 03 61 50 00 00 00 00 00
00 00 00 00 00 60 00 00 01 00 00 00 00 00 00 00 00 00 00 00
:model FCX2-6562-L
:my_wwn_lo 0x7300e0ca
:my_wwn_hi 0x10000001
:board_id 0xe0ca
:board_revision 0x8001
:lport_cfg 0xffffffff
:seq_vers MIL_32_v4eng9
:fcode_cksum 0xf16
:sequencer_cksum 0x598a
:boots_wwn_lo 0xffffffff
:boots_wwn_hi 0xffffffff
:bootp_wwn_lo 0xffffffff
:bootp_wwn_hi 0xffffffff
:assigned-addresses
81 00 10 10 00 00 00 00 00 00 18 00 00 00 00 00 00 00 01 00
83 00 10 14 00 00 00 00 00 11 00 00 00 00 00 00 00 00 10 00
81 00 10 1c 00 00 00 00 00 00 1c 00 00 00 00 00 00 00 01 00
82 00 10 30 00 00 00 00 00 18 00 00 00 00 00 00 00 08 00 00
:cache-line-size 16
:latency-timer 64
:node-wwn 10 00 00 01 73 00 e0 ca <====================
:port-wwn 20 00 00 01 73 00 e0 ca <====================
:devfs-path /pci@1f,4000/SUNW,jfca@2
:driver-name jfca
:binding-name SUNW,jfca
:bus-addr 2
:instance 0
:_class scsi
:name SUNW,jfcaOr try this script, it reports only the WWN and the device path :
>> echo
>> printf “See below the results :n”
>> echo
>> prtpicl -v -c scsi | grep port-wwn > /tmp/port-wwn
>> prtpicl -v -c scsi | grep devfs-path > /tmp/devfs-path
>> paste -d “t” /tmp/devfs-path /tmp/port-wwn
>> rm /tmp/port-wwn /tmp/devfs-pathTo determine the WWN of a Sun Emulex HBA, run the following command:
NOTE: it works on SG-XPCI2FC-EM2,Rainbow (aka Crystal-2R)
# prtpicl -v -c scsi-fcp
SUNW,emlxs (scsi-fcp, 256000004f1)
: DeviceID 0x1
:UnitAddress 1
:vendor-id 0x10df
:device-id 0xfc00
:revision-id 0x1
:subsystem-vendor-id 0x10df
:subsystem-id 0xfc00
:class-code 0xc0400
:interrupts 00 00 00 01
:min-grant 0xff
:max-latency 0
:cache-line-size 0x10
:latency-timer 0x40
:devsel-speed 0x1
:fast-back-to-back
:66mhz-capable
:fcode-rom-offset 0xc000
:fcode-version 1.50a8
:manufacturer Emulex
:device_type scsi-fcp
:copyright Copyright (c) 2005 Emulex
:#address-cells 0x2
:#size-cells 0
:clock-frequency 0x2625a00
:compatible pci10df,fc00
:reg
00 00 08 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
03 00 08 10 00 00 00 00 00 00 00 00 00 00 00 00 00 00 10 00
03 00 08 18 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 00
02 00 08 30 00 00 00 00 00 00 00 00 00 00 00 00 00 02 00 00
:alternate-reg
01 00 08 20 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 00
:node_wwn 20 00 00 00 c9 5d 05 28 <====================
:port_wwn 10 00 00 00 c9 5d 05 28 <====================
:assigned-addresses
83 00 08 10 00 00 00 00 00 10 00 00 00 00 00 00 00 00 20 00
83 00 08 18 00 00 00 00 00 10 20 00 00 00 00 00 00 00 20 00
81 00 08 20 00 00 00 00 00 00 03 00 00 00 00 00 00 00 01 00
82 00 08 30 00 00 00 00 00 14 00 00 00 00 00 00 00 04 00 00
:ddi-intr-weight 10
:num-nodes 512
:pm-support 0
:adisc-support 1
:assign-alpa 0
:cr-count 1
:cr-delay 0
:ack0 0
:link-speed 0
:topology 0
:network-on 1
:ub-bufs 1000
:num-iocbs 1024
:log-errors -1
:log-warnings -1
:log-notices -1
:console-errors 0
:console-warnings 0
:console-notices 0
:model LP10000DC-S
:devfs-path /pci@1bc,600000/SUNW,emlxs@1
:driver-name emlxs
:binding-name pci10df,fc00
:bus-addr 1
:instance 0
:_class scsi-fcp
:name SUNW,emlxsOr try this script, it reports only the WWN and the device path :
>> echo
>> printf “See below the results :n”
>> echo
>> prtpicl -v -c scsi-fcp | grep port_wwn > /tmp/port-wwn
>> prtpicl -v -c scsi-fcp | grep devfs-path > /tmp/devfs-path
>> paste -d “t” /tmp/devfs-path /tmp/port-wwn
>> rm /tmp/port-wwn /tmp/devfs-pathThe prtpicl command does not work with SBus Sun Qlogic cards (x6757, Ivory).
To find the WWN of these cards, ‘prtconf -vp’ can be used instead Starting with Solaris 10, the new command fcinfo can also be used for this task:
# fcinfo hba-port
HBA Port WWN: 210000e08b0203f5
OS Device Name: /dev/cfg/c3
Manufacturer: QLogic Corp.
Model: 375-3019-xx
Type: L-port
State: online
Supported Speeds: 1Gb
Current Speed: 1Gb
Node WWN: 200000e08b0203f5
HBA Port WWN: 210100e08b2203f5
OS Device Name: /dev/cfg/c2
Manufacturer: QLogic Corp.
Model: 375-3019-xx
Type: N-port
State: online
Supported Speeds: 1Gb
Current Speed: 1Gb
Node WWN: 200100e08b2203f5
HBA Port WWN: 210000e08b04ff11
OS Device Name: /dev/cfg/c5
Manufacturer: QLogic Corp.
Model: 375-3030-xx
Type: L-port
State: online
Supported Speeds: 1Gb
Current Speed: 1Gb
Node WWN: 200000e08b04ff11 HBA Port WWN: 210100e08b24ff11
OS Device Name: /dev/cfg/c4
Manufacturer: QLogic Corp.
Model: 375-3030-xx
Type: N-port
State: online
Supported Speeds: 1Gb
Current Speed: 1Gb
Node WWN: 200100e08b24ff11
Hello ramdev what does it mean without connection …?? I did not understand situation though i understand its on soalris 8 and 9 where we cannot run fcinfo hba-port | grep WWN
@seema – Please check the post now, modified the title to avoid confusion
okay got it thank you !!!!!
Also the same info can be get if you have LPFC or EMULEX utilities installed on your system.
HBA card : Emulex ,it uses powerpath
When i try to create new FS for the EMC LUN ,while trying to write inode , it is dragging and getting the below error msg
Have checked the PHY cable and HBA card bother ae fine .However EMC says , they can’t see any error msg where could be an issue ? pl advise
To prove to EMC , how do i confirm conclusively the HBA card is fine , up and running ,so the poblem could else where
1 11:01:25 Server1 kernel: target3:0:0: blocked target time out: target resuming
1 11:01:25 Server1 kernel: target3:0:1: blocked target time out: target resuming
1 11:01:26 Server1 kernel: lpfc 0000:44:00.1: 3:0260 Remove Target scsi id x0
1 11:01:26 Server1 kernel: lpfc 0000:44:00.1: 3:0260 Remove Target scsi id x1
1 11:05:17 Server1 kernel: lpfc 0000:44:00.1: 3:0714 SCSI layer issued Bus Reset Data: x2003
1 11:05:17 Server1 kernel: scsi: Device offlined – not ready after error recovery: host 3 channel 0 id 1 lun 5
1 11:05:17 Server1 kernel: scsi3 (1:5): rejecting I/O to offline device
1 11:05:17 Server1 kernel: Error:Mpx:Path Bus 3 Tgt 1 Lun 5 to CXXXXXXXXXXXXX is dead.
1 11:05:17 Server1 kernel: Error:Mpx:Killing bus 3 to Clariion CXXXXXXXXXXXXX port SP A1.
1 11:05:17 Server1 kernel: Error:Mpx:Path Bus 3 Tgt 1 Lun 4 to CXXXXXXXXXXXXX is dead.
1 11:05:17 Server1 kernel: Error:Mpx:Path Bus 3 Tgt 1 Lun 3 to CXXXXXXXXXXXXX is dead.
1 11:05:17 Server1 kernel: Error:Mpx:Path Bus 3 Tgt 1 Lun 1 to CXXXXXXXXXXXXX is dead.
1 11:05:17 Server1 kernel: Error:Mpx:Path Bus 3 Tgt 1 Lun 2 to CXXXXXXXXXXXXX is dead.
1 11:05:17 Server1 kernel: Error:Mpx:Path Bus 3 Tgt 1 Lun 0 to CXXXXXXXXXXXXX is dead.
1 11:05:17 Server1 kernel: Error:Mpx:Path Bus 3 Tgt 1 Lun 6 to CXXXXXXXXXXXXX is dead.
1 11:05:17 Server1 kernel: Error:Mpx:Path Bus 3 Tgt 0 Lun 4 to CXXXXXXXXXXXXX is dead.
1 11:05:17 Server1 kernel: Error:Mpx:Killing bus 3 to ClarYYYY CXXXXXXXXXXXXX port SP B0
I really sorry and totally engross with collecitng log detail and forgot to mention to Name for my abiove request . Ram
shekar, is that redhat server? which version?
Hi RAm
Red Hat Enterprise Linux AS release 4 (Nahant Update 8) Linux Server1 2.6.9-89.ELhugemem #1 SMP Mon Apr 20 10:45:44 EDT 2009 i686 athlon i386 GNU/Linux , Thanks
As per my understanding , this is a linux kernel bug, I recommend to raise a redhat service request.
Thanks Ram , Am still scrating my head : it is creating but intermittient , This can’t be Kernel bug ,because it is up and running on Prod of sam rel and Kernel.
lpfc 0000:49:00.0: 2:0464 Adapter heartbeat failure, taking this
port offline.
Nov 3 07:38:51 Server 1 kernel: lpfc 0000:49:00.0: 2:0260 Remove Target scsi id x0
Nov 3 07:39:03 Server 1 kernel: lpfc 0000:49:00.0: 2:0260 Remove Target scsi id x1
,i will my my best and let you know if i find a solution. To isolate the i disabled one HBA card and tried and similiarly other ,etither my Sytem hung or reboots.
Sure Sekhar. Â Let us know your findings. Thank you.
Hi Ramdev,
Just being rookie as linux admin, would like to prepare for RHCE certification. Kindly suggest on how to go with self preparatory.. Thanks
Hello siva, for your self learning I would recommend you to prepare your home setup with virtualbox from virtualbox.org) and download oracle Linux from oracle site ( it is having same kernel and packages as rhel). Go through the access.redhat.com site and create a normal account for the free articles and information on course curriculum. All the best. I will try to add clear setup information sometime next week.