-
查看
FC
HBA
卡信息的方法
在配置磁盘阵列
或虚拟磁带库时,
往往会以
FC
接口与
主机对接,
那么就涉及
FC HBA
卡
的查看,
本文就这个问题进行了总结与整理。
一、
Windows
系统
在
Wi
ndows
系统中,
可以使用
FC H
BA
卡厂家提供的管理软件查看光纤适配器的
WWN
号码,
具体如下:
Qlogic
:
SANsurfer
Emulex
:
HBAnyware
二、
SuSE Linux 9
查看
/proc/scsi/qla2xxx/*
,并以
adapter-port
为关键字过滤即可查看
FC HBA
卡
的
WWN
信息:
# cat /proc/scsi/qla2xxx/* | grep
adapter-port
scsi-qla0-adapter-
port=21000018822c8a2c;
scsi-
qla1-adapter-port=21000018822c8a2d;
三、
SuSE Linux 10
查看
/sys/class/fc_host/host*/port_name
文件的内容即可看到对应
FC HBA
卡的
WWN
信息:
# cat
/sys/class/fc_host/host*/port_name
0x210000e08b907955
0x210000e08b902856
四、
RedHat Linux
AS4
# grep scsi
/proc/scsi/qla2xxx/3
Number of reqs in
pending_q= 0, retry_q= 0, done_q= 0, scsi_retry_q=
0
scsi-qla0-adapter-node=2d7834;
scsi-qla0-adapter-
port=21000018822d7834;
scsi-
qla0-target-0=202900a0b8423858;
scsi-ql
a0-port-0=200800a0b8423858:202900a0b8423858:0000e8
:1;
五、
RedHat Linux AS5
# cat
/sys/class/fc_host/hostx/port_name
六、
Solaris 10
提供了
fcinfo
命令,可以使用
fcinfo hba-port
查看
FC HBA
的
< br>WWN
信息:
#
fcinfo hba-port
查看光纤卡端口的路径及连接状态
:
# luxadm -e port
查看端口的
WWN
:
#
luxadm -e dump_map fibre_channel_HBA_port //
上一命令的输出
# prtconf
–
vp | grep -i wwn
# prtpicl
–
v |
grep -i wwn (prtpicl - print PICL tree)
六、
HP-UX
# ioscan
–
funC fc
//
找到
HBA
卡,再用
fcmsutil
查看
HBA
卡信息
# fcmsutil
/dev/fcd0(1)
七、
AIX
# lsdev -Cc adapter //
找出
HBA
卡
# lscfg
–
vpl fcs0
|grep network address
备注:
p>
Emulex
的
HBA
的
WWN
的第一个数字为
1
p>
Qlogic
的
HBA
的
WWN
的第一个数字为
2
HP Tachyon HBA
的
WW
N
的第一个数字为
5
Qlogic
参数
Connection Options
0 - Loop
only
1 - Point-to-point
only
2 - Loop
preferred
,
otherwise point-
to-point.
按服务器那边的建议,
DAS
直连存储时选择
loop
only
,通过光纤交换机连接存储时选择
point-to-
point only
Data Rate
该配置项定义
FC
端口速率
0 - 1Gb/s
1 - 2Gb/s
2 - Auto
=============================================
=============================
linux
下查看
hba
卡的
wwn
号
.HBA
卡信息查询
/sys/class/fc_host/hostx/port_name
或
node_name
HBA
卡的
WWN
号。<
/p>
symbolic_name
HBA
卡型号
speed HBA
卡速度
port_state HBA
卡状态
spupported_speed
HBA
卡支持的速度
在
/sys/class/fc_host/
目录下可以得到很过有关
HBA
卡的信息。
一
如果没
有加载正确的驱动,则有些信息,比如
HBA
的
Link Speed
可能无法获得,比
如:
localhost:~ # lspci
00:00.0 Host bridge: Intel Corporation
5000X Chipset Memory Controller Hub
(rev 12)
00:02.0
PCI bridge: Intel Corporation 5000 Series Chipset
PCI Express x4 Port 2
(rev 12)
00:03.0 PCI bridge:
Intel Corporation 5000 Series Chipset PCI Express
x4 Port 3
(rev
12)
00:04.0 PCI bridge: Intel
Corporation 5000 Series Chipset PCI Express x8
Port
4-5 (rev
12)
00:05.0 PCI bridge: Intel
Corporation 5000 Series Chipset PCI Express x4
Port 5
(rev 12)
00:06.0 PCI bridge: Intel Corporation
5000 Series Chipset PCI Express x8 Port
6-7 (rev 12)
00:07.0 PCI bridge: Intel Corporation
5000 Series Chipset PCI Express x4 Port 7
(rev 12)
00:10.0 Host bridge: Intel Corporation
5000 Series Chipset FSB Registers (rev
12)
00:10.1 Host
bridge: Intel Corporation 5000 Series Chipset FSB
Registers (rev
12)
00:10.2 Host bridge:
Intel Corporation 5000 Series Chipset FSB
Registers (rev
12)
00:11.0 Host bridge:
Intel Corporation 5000 Series Chipset Reserved
Registers
(rev
12)
00:13.0 Host bridge: Intel
Corporation 5000 Series Chipset Reserved Registers
(rev 12)
00:15.0 Host bridge: Intel Corporation
5000 Series Chipset FBD Registers (rev
12)
00:16.0 Host
bridge: Intel Corporation 5000 Series Chipset FBD
Registers (rev
12)
00:1c.0 PCI bridge:
Intel Corporation 631xESB/632xESB/3100 Chipset PCI
Express Root
Port 1 (rev 09)
00:1d.0 USB Controller:
Intel Corporation 631xESB/632xESB/3100 Chipset
UHCI
USB
Controller #1 (rev 09)
00:1d.1 USB
Controller: Intel Corporation 631xESB/632xESB/3100
Chipset UHCI
USB Controller #2 (rev 09)
00:1d.2 USB Controller: Intel
Corporation 631xESB/632xESB/3100 Chipset UHCI
USB Controller
#3 (rev 09)
00:1d.7 USB Controller:
Intel Corporation 631xESB/632xESB/3100 Chipset
EHCI
USB2
Controller (rev 09)
00:1e.0 PCI bridge:
Intel Corporation 82801 PCI Bridge (rev d9)
00:1f.0 ISA bridge: Intel Corporation
631xESB/632xESB/3100 Chipset LPC
Interface Controller (rev
09)
00:1f.1 IDE interface: Intel
Corporation 631xESB/632xESB IDE Controller (rev
09)
00:1f.2 IDE interface: Intel
Corporation 631xESB/632xESB/3100 Chipset SATA
IDE Controller
(rev 09)
01:00.0 SCSI storage
controller: LSI Logic / Symbios Logic SAS1068E
PCI-
Express Fusion-MPT SAS
(rev 08)
02:00.0 PCI bridge: Broadcom
EPB PCI-Express to PCI-X Bridge (rev c3)
03:00.0 Ethernet controller: Broadcom
Corporation NetXtreme II BCM5708
Gigabit Ethernet (rev 12)
04:00.0 PCI bridge: Intel Corporation
6311ESB/6321ESB PCI Express Upstream
Port (rev 01)
04:00.3 PCI bridge: Intel Corporation
6311ESB/6321ESB PCI Express to PCI-X
Bridge (rev 01)
05:00.0 PCI bridge: Intel Corporation
6311ESB/6321ESB PCI Express
Downstream Port E1 (rev 01)
05:01.0 PCI bridge: Intel Corporation
6311ESB/6321ESB PCI Express
Downstream Port E2 (rev 01)
06:00.0 PCI bridge: Broadcom EPB PCI-
Express to PCI-X Bridge (rev c3)
07:00.0 Ethernet controller: Broadcom
Corporation NetXtreme II BCM5708