分类: 系统运维
2011-08-04 17:44:08
主机端
1. 查看当前系统中的HBA卡
[rp5470:/>]ioscan -funC fc
Class I H/W Path Driver S/W State H/W Type Description
=================================================================
fc 0 0/8/0/0 td CLAIMED INTERFACE HP Tachyon XL2 Fibre Channel Mass Storage Adapter
/dev/td0
fc 1 0/9/0/0 td CLAIMED INTERFACE HP Tachyon XL2 Fibre Channel Mass Storage Adapter
/dev/td1
2. 查看HBA卡所在的PCI slot(11.11为rad -q)
[rp5470:/>]olrad -q
Driver(s)
Capable
Slot Path Bus Max Spd Pwr Occu Susp OLAR OLD Max Mode
Num Spd Mode
5 0/2/0 16 0 33 On No N/A N/A N/A N/A N/A
6 0/5/0 40 0 33 On No N/A N/A N/A N/A N/A
7 0/1/0 8 0 33 On No N/A N/A N/A N/A N/A
8 0/3/0 24 0 33 On No N/A N/A N/A N/A N/A
9 0/9/0 72 0 66 On Yes No Yes N/A N/A N/A
10 0/8/0 64 0 66 On Yes No Yes N/A N/A N/A
11 0/12/0 96 0 33 On Yes No Yes N/A N/A N/A
12 0/10/0 80 0 66 On Yes No Yes N/A N/A N/A
3. 查看HBA卡的WWN
[rp5470:/>]fcmsutil /dev/td1
Vendor ID is = 0x00103c
Device ID is = 0x001029
XL2 Chip Revision No is = 2.3
PCI Sub-system Vendor ID is = 0x00103c
PCI Sub-system ID is = 0x00128c
Topology = PTTOPT_FABRIC
Link Speed = 2Gb
Local N_Port_id is = 0x010000
N_Port Node World Wide Name = 0x50060b0000228209 /HBA卡本身的WWN
N_Port Port World Wide Name = 0x50060b0000228208 /HBA卡端口WWN
Driver state = ONLINE
Hardware Path is = 0/9/0/0
Number of Assisted IOs = 0
Number of Active Login Sessions = 0
Dino Present on Card = NO
Maximum Frame Size = 2048
Driver Version = @(#) libtd.a HP Fibre Channel Tachyon XL2 Driver B.11.23.0709 $Date: 2007/06/20 12:44:45 $Revision: r11.23/5
4. 查看HBA卡所连接的交换机信息
[rp5470:/>]fcmsutil /dev/td1 get fabric
Fabric Port World Wide Name = 0x2000006069c06574 /交换机本身的WWN
Fabric Node World Wide Name = 0x1000006069c06574 /交换机端口的WWN
Common Service parameters (all values shown in hex):
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Version_Hi: 20 Version_Low: 6
BB_Credit: 10 Nport_Fport: 1
Resolution: 0 Multicast: 1
Broadcast: 1 Hunt_Group: 0
Ded_Simplex: 0 Dyn_Half_Dup: 0
Payload_Len: 0 Rcv_Data_Size: 840
RA_TOV(ms): 2710 ED_TOV(ms): 7d0
Class Specific Service Parameters:
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
C1 C2 C3
Class Valid 0x0000 0x0001 0x0001
Sequence Delivery 0x0000 0x0001 0x0001
Initiator Ctrl 0x0000 0x0000 0x0000
Recipient Ctrl 0x0000 0x0000 0x0000
Receive Data Size 0x0000 0x0000 0x0000
Concur_sequences 0x0000 0x0000 0x0000
N_Port EE_Credit 0x0000 0x0000 0x0000
Vendor version (in hex) 0 0 0 0
交换机端
1. 查看交换机信息(本例为Brocade交换机)
b16:admin> switchshow
switchName: b16
switchType: 16.2
switchState: Online
switchMode: Native
switchRole: Principal
switchDomain: 1
switchId: fffc01
switchWwn: 10:00:00:60:69:c0:65:74
switchBeacon: OFF
Zoning: ON (config1)
port 0: id N2 Online F-Port 50:06:0b:00:00:22:82:08
port 1: id N2 No_Light
port 2: id N2 No_Light
port 3: id N2 No_Light
port 4: id N2 No_Light
port 5: -- N2 No_Module
port 6: -- N2 No_Module
port 7: -- N2 No_Module
2. 查看端口信息
b16:admin> portshow 0
portName:
portHealth: No License
Authentication: None
portFlags: 0x223805b portLbMod: 0x0 PRESENT ACTIVE F_PORT G_PORT U_PORT LOGIN NOELP LED ACCEPT WAS_EPORT
portType: 4.1
portState: 1 Online
portPhys: 6 In_Sync
portScn: 6 F_Port
portRegs: 0x81000000
portData: 0x102def70
portId: 010000
portWwn: 20:00:00:60:69:c0:65:74
portWwn of device(s) connected: 50:06:0b:00:00:22:82:08
Distance: normal
Speed: N2Gbps
Interrupts: 24 Link_failure: 0 Frjt: 0
Unknown: 3 Loss_of_sync: 0 Fbsy: 0
Lli: 6 Loss_of_sig: 1
Proc_rqrd: 17 Protocol_err: 0
Timed_out: 0 Invalid_word: 0
Rx_flushed: 0 Invalid_crc: 0
Tx_unavail: 0 Delim_err: 0
Free_buffer: 0 Address_err: 0
Overrun: 0 Lr_in: 0
Suspended: 0 Lr_out: 1
Parity_err: 0 Ols_in: 1
Ols_out: 0
结论
1. 主机slot 9中的HBA卡连接到交换机的Port 0
Created by azhi 2011/8/4