WWN是HBA卡用的編號,每個光纖通道設備都有一個惟一的標 識,稱爲WWN(world wide name),由IEEE負責分配。在有多臺主機使用磁盤陣列時,經過WWN號來肯定哪臺主機正在使用指定的LUN(或者說是邏輯驅動器),被使用的LUN 其餘主機將沒法使用。
WWN概念包含WWPN、WWNN。
一個不可拆分的獨立的設備有WWNN,一個端口有WWPN。
好比一臺SAN交換機,不可拆分,有一個WWNN,它有一堆端口,每一個端口有一個WWPN。一塊多口光纖HBA,卡自己有一個WWNN,每一個端口有一個 WWPN,單口的HBA也是,不過只有一個WWNN和一個WWPN。但主機就沒有WWNN,由於卡和主機是能夠分離的,單純一個主機自己並不必定是SAN 環境中的設備。
有WWNN的好處是:即便不去看連線,也能夠清楚地知道,哪些端口是在一個物理設備上
wwn:有兩種表示方法: wwpn wwnn
對於主機來講:
單個hba卡(單口)的狀況下: wwnn只有一個 wwpn和wwnn同樣
單個hba卡(雙口)的狀況下: wwnn只有一個 wwpn有兩個
兩個hba卡(單口)的狀況下: wwnn有兩個 wwpn有兩個
兩個hba卡(雙口)的狀況下: wwnn有兩個 wwpn有四個html
AIX上WWPN的查詢node
查看HBA卡具體在哪一個插槽上
#lsslot -c pci|grep fc
U787B.001.DNW7603-P1-C4 PCI-X capable, 64 bit, 133MHz slot fcs0
U787B.001.DNW7603-P1-C5 PCI-X capable, 64 bit, 133MHz slot fcs1 linux
HBA卡的物理位置 U787B.001.DNW7603-P1-C4 能夠看機器蓋板上的圖,也能夠去查閱 IBM 系統硬件信息中心.ios
經過lsdev獲取系統中識別有幾塊HBA卡;
# lsdev -C | grep fcs
fcs0 Available 00-08 FC Adapter
fcs1 Available 05-08 FC Adapter
即有兩塊HBA卡,對應的AIX系統中爲fcs0,fcs1;
再使用lscfg命令獲取各個HBA卡屬性;
# lscfg -vl fcs0
fcs0 U787B.001.DNWGXVH-P1-C3-T1 FC Adapter
Part Number.................46K6838
Serial Number...............1B83504003
Manufacturer................001B
EC Level....................A
Customer Card ID Number.....280D
FRU Number.................. 46K6838
Device Specific.(ZM)........3
Network Address.............10000000C97E5FFA WWPN
ROS Level and ID............02C82774
Device Specific.(Z0)........1036406D
Device Specific.(Z1)........00000000
Device Specific.(Z2)........00000000
Device Specific.(Z3)........03000909
Device Specific.(Z4)........FFC01231
Device Specific.(Z5)........02C82774
Device Specific.(Z6)........06C32715
Device Specific.(Z7)........07C32774
Device Specific.(Z8)........20000000C97E5FFA
Device Specific.(Z9)........BS2.71X4
Device Specific.(ZA)........B1D2.70A5
Device Specific.(ZB)........B2D2.71X4
Device Specific.(ZC)........00000000
Hardware Location Code......U787B.001.DNWGXVH-P1-C3-T1網絡
HPUX上的WWNN和WWPN查詢jsp
#ioscan -fnC fc
Class I H/W Path Driver S/W State H/W Type Description
===================================================================
fc 2 0/0/2/1/0 fcd CLAIMED INTERFACE HP AB378-60101 4Gb Single Port PCI/PCI-X Fibre Channel Adapter (FC Port 1)
/dev/fcd2
fc 3 0/0/4/1/0 fcd CLAIMED INTERFACE HP AB378-60101 4Gb Single Port PCI/PCI-X Fibre Channel Adapter (FC Port 1)
/dev/fcd3
fc 0 0/0/12/1/0 td CLAIMED INTERFACE HP Tachyon XL2 Fibre Channel Mass Storage Adapter
/dev/td0
用fcmsutil顯示WWN號碼
#fcmsutil /dev/fcd2
Vendor ID is = 0x001077
Device ID is = 0x002422
PCI Sub-system Vendor ID is = 0x00103c
PCI Sub-system ID is = 0x0012d6
PCI Mode = PCI-X 133 MHz
ISP Code version = 4.0.22
ISP Chip version = 3
Topology = PTTOPT_FABRIC
Link Speed = 2Gb
Local N_Port_id is = 0x621213
Previous N_Port_id is = None
N_Port Node World Wide Name = 0x500143800131155b #本機HAB卡的WWNN
N_Port Port World Wide Name = 0x500143800131155a #本機HBA卡的WWPN
Switch Port World Wide Name = 0x2012080088a0ae1a #HBA卡鏈接光纖交換機的WWPN
Switch Node World Wide Name = 0x1000080088a0ae1a #HBA卡鏈接光纖交換機的WWNN
Driver state = ONLINE
Hardware Path is = 0/0/2/1/0
Maximum Frame. Size = 2048
Driver-Firmware Dump Available = NO
Driver-Firmware Dump Timestamp = N/A
Driver Version = @(#) libfcd.a HP Fibre Channel ISP 23xx & 24xx Driver B.11.23.06 /ux/core/isu/FCD/kern/src/common/wsio/fcd_init.c:Jun 23 2006,14:05:23ide
參考至:http://blog.itpub.net/post/3232/504272工具
http://space.itpub.net/14136300/viewspace-659626oop
http://blog.csdn.net/xiaolantian/article/details/4934906post
http://publib.boulder.ibm.com/infocenter/svc/ic/index.jsp?topic=/com.ibm.storage.svc.console.doc/svc_aixlocwwpn_1dcvtx.html
本文出自 「阿東之家」 博客,謝絕轉載!