三月 11, 2009 作者: sunchiahome ,thx修訂
WWN 為World Wide Name 縮寫
如同網卡有 MAC Address(48bits) 作為辨識方式.光纖也是有類似的定址 WWN,World Wide Name:FC 光纖通道的定址 (64 bits),這個光纖通道的 WWN 也像是 MAC 一樣每一個出貨的 HBA(Host Bus Adapter) 都有他獨一無二的 WWN .屬於硬體的一部份.
如果要更改,必需準備其專用燒錄程式
WWN 還細分了 WWNN:World Wide Node Name / WWPN:World Wide Port Name 使用上有點不同.
1. WWNN 以FC 控制器為依歸,如果卡上控制器為 1個,那WWNN 只會有一個.
現行FC Dual port 為單控制器為主. 一個WWNN
Quad Port 為雙控制器為主. 二個WWNN
2.當你的光纖 HBA 每個 port 對應一個 WWPN
FC Dual port . 2個WWNN
Quad Port . 4個WWNN
3.通常會在 Fiber switch 上使用到 cone 時,trunk 會看到針對 WWPN WWNN 來設定.
參考
http://space.doit.com.cn/35700/viewspace-4367.html
Linux 下要看 WWNN / WWPN 可以查看檔案 /proc/scsi/qla2xxx/ (thx 補:這應該是限定QLogic Card看法)
[root@benjr ~]# ls -l /proc/scsi/qla2xxx/ total 0 -rw-r--r-- 1 root root 0 Mar 11 19:04 4 -rw-r--r-- 1 root root 0 Mar 11 19:04 5 [root@benjr ~]# cat /proc/scsi/qla2xxx/4 QLogic PCI to Fibre Channel Host Adapter for xxxxxxxx: Firmware version 4.04.00 [IP] [84XX] , Driver version 8.02.14.01-fo BIOS version 0.00 FCODE version 0.00 EFI version 0.00 Flash FW version 0.00.00 0000 ISP: ISP6432 Request Queue = 0x179500000, Response Queue = 0x17a800000 Request Queue count = 4096, Response Queue count = 512 Total number of active commands = 0 Total number of interrupts = 4002 Device queue depth = 0x20 Number of free request entries = 3596 Number of mailbox timeouts = 0 Number of ISP aborts = 0 Number of loop resyncs = 0 Number of retries for empty slots = 0 Number of reqs in pending_q= 0, retry_q= 0, done_q= 0, scsi_retry_q= 0 Number of reqs in failover_q= 0 Host adapter:loop state = <READY>, flags = 0x5a13 Dpc flags = 0x4080000 MBX flags = 0x0 Link down Timeout = 030 Port down retry = 030 Login retry count = 030 Commands retried with dropped frame(s) = 0 Product ID = 0000 0000 0000 0000 SCSI Device Information: scsi-qla0-adapter-node=9005962432112233; #就是 WWNN scsi-qla0-adapter-port=9005962432112233; #就是 WWPN scsi-qla0-target-0=2200000c50c22881; scsi-qla0-target-1=2200000c50c237f6; scsi-qla0-target-2=2200000c50c22acf; scsi-qla0-target-3=2200000c50c22d14; scsi-qla0-target-4=2200000c50c23157; FC Port Information: scsi-qla0-port-0=2000000c50c22881:2200000c50c22881:0000e0:0; scsi-qla0-port-1=2000000c50c237f6:2200000c50c237f6:0000dc:1; scsi-qla0-port-2=2000000c50c22acf:2200000c50c22acf:0000da:2; scsi-qla0-port-3=2000000c50c22d14:2200000c50c22d14:0000d9:3; scsi-qla0-port-4=2000000c50c23157:2200000c50c23157:0000d6:4; SCSI LUN Information: (Id:Lun) * - indicates lun is not registered with the OS. ( 0: 0): Total reqs 84, Pending reqs 0, flags 0x2, Dflags 0x0, 0:0:00 00 ( 1: 0): Total reqs 82, Pending reqs 0, flags 0x2, Dflags 0x0, 0:0:01 00 ( 2: 0): Total reqs 84, Pending reqs 0, flags 0x2, Dflags 0x0, 0:0:02 00 ( 3: 0): Total reqs 84, Pending reqs 0, flags 0x2, Dflags 0x0, 0:0:03 00 ( 4: 0): Total reqs 84, Pending reqs 0, flags 0x2, Dflags 0x0, 0:0:04 00 |