Академический Документы
Профессиональный Документы
Культура Документы
By admin (https://www.thegeekdiary.com/author/sandeep_patil/)
A system administrator must know some of the basic concepts of storage systems. In this post I will try to
explain some of the concepts and useful commands related to identifying HBA cards, WWN numbers and ber
channel paths. Before we start with the commands let us get acquainted with some of the storage related
terms.
(https://cdn.thegeekdiary.com/wp-content/uploads/2014/03/Fiber-channel-intiator-and-target.png)
Initiator : Initiator is typically a server with HBA card installed. The initiator initiates the connection over the
ber channel to the storage system.
Target : Target is typically the storage system itself. Target servers the requests from the initiators for the data.
WWN : WWN stands for the world wide name. Similar to a network card having a unique MAC address, every
HBA port will have a unique WWN number.
https://www.thegeekdiary.com/how-to-identify-the-hba-cardsports-and-wwn-in-solaris/ 1/10
3/28/2018 How to identify the HBA cards/ports and WWN in Solaris – The Geek Diary
command will not work. In that case use the fcinfo command.
# luxadm -e port
/devices/ssm@0,0/pci@18,600000/SUNW,emlxs@1/fp@0,0:devctl CONNECTED
/devices/ssm@0,0/pci@18,600000/SUNW,emlxs@1,1/fp@0,0:devctl CONNECTED
/devices/ssm@0,0/pci@1c,600000/SUNW,emlxs@1/fp@0,0:devctl CONNECTED
/devices/ssm@0,0/pci@1c,600000/SUNW,emlxs@1,1/fp@0,0:devctl CONNECTED
"CONNECTED" --> HBA has established connection with either target or initiator.
"NOT CONNECTED" --> HBA has not established a connection with some other node or it is connected
The fcinfo command give us more info on the HBA ports (model, manufactures etc) and the WWN numbers of
the HBA ports.
# fcinfo hba-port
HBA Port WWN: 23000800xxxxxxx
OS Device Name: /dev/cfg/c1
Manufacturer: QLogic Corp.
https://www.thegeekdiary.com/how-to-identify-the-hba-cardsports-and-wwn-in-solaris/ 2/10
3/28/2018 How to identify the HBA cards/ports and WWN in Solaris – The Geek Diary
Model: 2200
Firmware Version: 2.01.145
FCode/BIOS Version: ISP2200 FC-AL Host Adapter Driver: 1.14 01/11/20
Serial Number: not available
Driver Name: qlc
Driver Version: 20090415-2.30
Type: L-port
State: online
Supported Speeds: 1Gb
Current Speed: 1Gb
Node WWN: 22000800xxxxxxx
HBA Port WWN: 10000000cxxxxxxx
OS Device Name: /dev/cfg/c5
Manufacturer: Emulex
Model: LP10000DC-S
Firmware Version: 1.92a1 (T2D1.92A1)
FCode/BIOS Version: Boot:5.01a4 Fcode:1.50a4
Serial Number: BG52130223
Driver Name: emlxs
Driver Version: 2.31t (2009.04.05.14.10)
Type: N-port
State: online
Supported Speeds: 1Gb 2Gb
Current Speed: 2Gb
Node WWN: 20000000cxxxxxxx
HBA Port WWN: 10000000cxxxxxxx
OS Device Name: /dev/cfg/c6
Manufacturer: Emulex
Model: LP10000DC-S
Firmware Version: 1.92a1 (T2D1.92A1)
FCode/BIOS Version: Boot:5.01a4 Fcode:1.50a4
Serial Number: BG52130223
Driver Name: emlxs
Driver Version: 2.31t (2009.04.05.14.10)
Type: N-port
State: online
Supported Speeds: 1Gb 2Gb
Current Speed: 2Gb
Node WWN: 20000000cxxxxxxx
Check the elds “Model:” and “Manufacturer:” in the output above. You can identify various manufactures of
the HBA cards from these elds.
https://www.thegeekdiary.com/how-to-identify-the-hba-cardsports-and-wwn-in-solaris/ 3/10
3/28/2018 How to identify the HBA cards/ports and WWN in Solaris – The Geek Diary
LPxxxxxx-S are Oracle Emulex HBA Cards (ie it has a “-S” for Sun at end).
LPxxxxxx-E are NON-Oracle HBAs usually resold by EMC.
LPxxxxxx-H are NON-Oracle HBAs usually resold by Hitachi.
LPxxxxxx-M are NON-Oracle HBAs usually resold by
375-xxxx-xx are Oracle Qlogic HBA Cards.
QLAxxxx may or may not be Oracle Qlogic HBA Cards so you would need to use “prtpicl Command:” to
determine.
Model: 2200 with Manufacturer: QLogic Corp is a old Oracle Fibre Channel Arbitrated Loop (FC-AL)
HBA Cards.
subsystem-id 0x13a1
model LSI,1064
https://www.thegeekdiary.com/how-to-identify-the-hba-cardsports-and-wwn-in-solaris/ 4/10
3/28/2018 How to identify the HBA cards/ports and WWN in Solaris – The Geek Diary
devfs-path /pci@0,600000/pci@0/pci@8/pci@0/scsi@1
driver-name mpt
binding-name pci1000,50
subsystem-id 0x1648
devfs-path /pci@0,600000/pci@0/pci@8/pci@0/network@2
driver-name bge
binding-name pci14e4,1648
subsystem-id 0x1648
devfs-path /pci@0,600000/pci@0/pci@8/pci@0/network@2,1
driver-name bge
binding-name pci14e4,1648
subsystem-id 0xfe00
model LPe11000-M4
devfs-path /pci@0,600000/pci@0/pci@9/fibre-channel@0
driver-name emlxs
binding-name pciex10df,fe00
.........
Some of the old HBAs may not display the “subsystem-id” in the above comman output. In that case use the
below commands :
For Example
Each listing in the above output is a HBA port. To list the paths grep for the “devfs-path” string.
# prtpicl -v | grep -i devfs-path | grep -i fibre-channel | grep -v sd | nawk -F: '{ print $2 }
devfs path /pci@8 700000/fibre channel@2
https://www.thegeekdiary.com/how-to-identify-the-hba-cardsports-and-wwn-in-solaris/ 5/10
3/28/2018 How to identify the HBA cards/ports and WWN in Solaris – The Geek Diary
devfs-path /pci@8,700000/fibre-channel@2
devfs-path /pci@8,700000/fibre-channel@3
devfs-path /pci@9,700000/fibre-channel@2
devfs-path /pci@9,700000/fibre-channel@3
# prtdiag -v
......
========================= IO Cards =========================
Bus Max
IO Port Bus Freq Bus Dev,
Brd Type ID Side Slot MHz Freq Func State Name Model
---- ---- ---- ---- ---- ---- ---- ---- ----- -------------------------------- ----------------
I/O PCI 8 B 4 33 33 1,0 ok pci-pci1011,26.5/SUNW,qlc (scsi-+ PCI-BRIDGE
I/O PCI 8 B 4 33 33 4,0 ok SUNW,qlc-pci1077,2200.1077.4083.+ device on pci-b
I/O PCI 8 A 1 66 66 1,0 ok SUNW,emlxs-pci10df,fc00/fp (fp) LP10000DC-S
I/O PCI 8 A 1 66 66 1,1 ok SUNW,emlxs-pci10df,fc00/fp (fp) LP10000DC-S
.........
For example
https://www.thegeekdiary.com/how-to-identify-the-hba-cardsports-and-wwn-in-solaris/ 6/10
3/28/2018 How to identify the HBA cards/ports and WWN in Solaris – The Geek Diary
Another way to get the target port WWNs is using the luxadm command with the dump_map option :
https://www.thegeekdiary.com/how-to-identify-the-hba-cardsports-and-wwn-in-solaris/ 7/10
3/28/2018 How to identify the HBA cards/ports and WWN in Solaris – The Geek Diary
Y O U M AY A L S O L I K E
https://www.thegeekdiary.com/how-to-identify-the-hba-cardsports-and-wwn-in-solaris/ 8/10
3/28/2018 How to identify the HBA cards/ports and WWN in Solaris – The Geek Diary
Callisto = System Center A beginners guide to Solaris ACCES I/O Products, Inc.
Multipathing Software...
Ad Apajove thegeekdiary.com Ad www.accesio.com
CHEAT SHEETS
https://www.thegeekdiary.com/how-to-identify-the-hba-cardsports-and-wwn-in-solaris/ 9/10
3/28/2018 How to identify the HBA cards/ports and WWN in Solaris – The Geek Diary
https://www.thegeekdiary.com/how-to-identify-the-hba-cardsports-and-wwn-in-solaris/ 10/10