san学习笔记
本帖最后由 hp-ux民工 于 2010-10-16 16:36 编辑
一下内容写的不一定都对,如果错了,希望大家能够指出,谢谢!
hp-ux
# fcmsutil /dev/td0
Vendor ID is = 0x00103c
Device ID is = 0x001028
TL Chip Revision No is = 2.3
PCI Sub-system Vendor ID is = 0x00103c
PCI Sub-system ID is = 0x000006
Topology = PTTOPT_FABRIC
Local N_Port_id is = 0x021700
N_Port Node World Wide Name = 0x50060b00000781df
N_Port Port World Wide Name = 0x50060b00000781de
Driver state = ONLINE
Hardware Path is = 0/4/0/0
Number of Assisted IOs = 1188
Number of Active Login Sessions = 0
拓扑PTTOPT_FABRIC表示连接到switch
Local N_Port_id表示连接到switch的位置
0x021700中最左边的byte1(02)表示domain id
第3个字节的17中1表示switch board 这里写的有问题
7表示switch board的port号
如果是switch连接,则字节3总是0
今天在另一个switch上面做一实验,发现这里写的有问题
应该17表示port
17是16进制,10进制就是23,表示端口23,然后在switch上面在查看时那个blade上的那个端口
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(9)
本帖最后由 justin8204 于 2010-10-16 00:20 编辑
Fibre Channel part (N_Port ID)
This part comprises of the new 8 bit fields Domain, Area and Port. In general these
fields are used to hold the N_Port ID. This 3 byte value can be regarded as the
equivalence to the fixed 6 byte Media-Access Control identifier (MAC address) in the
LAN world. In case of a fabric topology (a switch is present) the switch assigns the
N_port ID dynamically during login and stores the information it’s private name
server table.
Domain:
The Domain ID usually identifies the instance of the switch in a fabric environment.
For private loops the value is 8.
Area:
In a fabric environment, the Area ID is generally associated with a physical port on a
switch. For private loops, the value is 0.
Port:
When interpreting the hardware path for FCMS devices, arrays are defined as having
addressable controllers, and non-arrays are defined as not having addressable
controllers. For hardware paths associated with non-array LUNs, the Port ID is set to
the value 255 (255 for direct connect controller). For hardware paths associated with
array LUNs, the Port ID is set to the Loop ID, for a private loop topology, AL_PA for
public loop topology or 0 for direct fabric attach.
但对Area_ID (8 bit)在Direct Fabric Attach或public loop模式下的值描述为:
the physical connector (slot) on the switch. For Brocade subtract 16 from the Area ID to get the slot number
是在borcade交换机下要减去16才得到solt number,民工兄,你的switch board的说法是从什么资料中看到的?我还是有点不明白这个地方。
不错,学习中!
fcmsutil = Fiber Channel Mass Storage UTILity
谢谢分享
多谢民工兄弟了
本帖最后由 hp-ux民工 于 2010-06-30 22:02 编辑
我修改了
aix的发到hp版了
这是aix的吧,呵呵
民工兄有心了
本帖最后由 hp-ux民工 于 2010-06-23 09:18 编辑
下面进行验证,因为我没有aix小机,只能验证hp-ux
# fcmsutil /dev/fcd0
Vendor ID is = 0x1077
Device ID is = 0x2422
PCI Sub-system Vendor ID is = 0x103C
PCI Sub-system ID is = 0x12D6
PCI Mode = PCI-X 266 MHz
ISP Code version = 4.4.4
ISP Chip version = 3
Topology = PTTOPT_FABRIC
Link Speed = 4Gb
Local N_Port_id is = 0x010500
Previous N_Port_id is = None
N_Port Node World Wide Name = 0x50060b000061228f
N_Port Port World Wide Name = 0x50060b000061228e
Switch Port World Wide Name = 0x200500051e885d42
Switch Node World Wide Name = 0x100000051e885d42
N_Port Symbolic Port Name = rx6600-2_fcd0
N_Port Symbolic Node Name = rx6600-2_HP-UX_B.11.31
Driver state = ONLINE
Hardware Path is = 0/3/1/0
Maximum Frame Size = 2048
Driver-Firmware Dump Available = NO
Driver-Firmware Dump Timestamp = N/A
Driver Version = @(#) fcd B.11.31.0909 Jun 8 2009
# fcmsutil /dev/fcd1
Vendor ID is = 0x1077
Device ID is = 0x2422
PCI Sub-system Vendor ID is = 0x103C
PCI Sub-system ID is = 0x12D6
PCI Mode = PCI-X 266 MHz
ISP Code version = 4.4.4
ISP Chip version = 3
Topology = PTTOPT_FABRIC
Link Speed = 4Gb
Local N_Port_id is = 0x020a00
Previous N_Port_id is = None
N_Port Node World Wide Name = 0x50060b000061256b
N_Port Port World Wide Name = 0x50060b000061256a
Switch Port World Wide Name = 0x200a00051e882b89
Switch Node World Wide Name = 0x100000051e882b89
N_Port Symbolic Port Name = rx6600-2_fcd1
N_Port Symbolic Node Name = rx6600-2_HP-UX_B.11.31
Driver state = ONLINE
Hardware Path is = 0/7/1/0
Maximum Frame Size = 2048
Driver-Firmware Dump Available = NO
Driver-Firmware Dump Timestamp = N/A
Driver Version = @(#) fcd B.11.31.0909 Jun 8 2009
可以看出fcd0是连接到domain id为1的switch的port5,fcd1是连接到domain id为2的switch的port10
下面登录到相关的san switch 上面验证
swd77:admin> switchsshow
rbash: switchsshow: command not found
swd77:admin> switchshow
switchName: swd77
switchType: 71.2
switchState: Online
switchMode: Native
switchRole: Principal
switchDomain: 1
switchId: fffc01
switchWwn: 10:00:00:05:1e:88:5d:42
zoning: ON (xp1200)
switchBeacon: OFF
Index Port Address Media Speed State Proto
==============================================
0 0 010000 id N2 Online FC L-Port
1 1 010100 id N4 Online FC F-Port 50:01:43:80:00:c4:18:40
2 2 010200 id N2 Online FC F-Port 50:06:0e:80:04:7d:db:00
3 3 010300 id N8 No_Light FC
4 4 010400 id N4 Online FC F-Port 10:00:00:00:c9:87:ae:d8
5 5 010500 id N4 Online FC F-Port 50:06:0b:00:00:61:22:8e
6 6 010600 id N4 Online FC F-Port 10:00:00:00:c9:88:43:5a
7 7 010700 id N8 No_Light FC
8 8 010800 id N8 No_Light FC
9 9 010900 id N8 No_Light FC
10 10 010a00 id N8 No_Light FC
11 11 010b00 id N2 Online FC F-Port 50:06:0e:80:04:7d:db:10
12 12 010c00 id N4 Online FC F-Port 51:8a:90:56:e2:f4:a0:10
13 13 010d00 id N4 Online FC F-Port 50:01:43:80:01:32:12:68
14 14 010e00 id N4 Online FC F-Port 10:00:00:e0:02:43:e2:0a
15 15 010f00 id N4 Online FC F-Port 10:00:00:e0:02:23:5c:c8
16 16 011000 id N8 No_Light FC (No POD License) Disabled
17 17 011100 id N8 No_Light FC (No POD License) Disabled
18 18 011200 id N8 No_Light FC (No POD License) Disabled
19 19 011300 id N8 No_Light FC (No POD License) Disabled
20 20 011400 id N8 No_Light FC (No POD License) Disabled
21 21 011500 id N8 No_Light FC (No POD License) Disabled
22 22 011600 id N8 No_Light FC (No POD License) Disabled
23 23 011700 id N8 No_Light FC (No POD License) Disabled
然后再登录到domain为2的san switch上面验证
sw11:admin> switchshsow
rbash: switchshsow: command not found
sw11:admin> switchshow
switchName: sw11
switchType: 71.2
switchState: Online
switchMode: Native
switchRole: Subordinate
switchDomain: 2
switchId: fffc02
switchWwn: 10:00:00:05:1e:88:2b:89
zoning: ON (testcfg)
switchBeacon: OFF
Index Port Address Media Speed State Proto
==============================================
0 0 020000 id N4 Online FC F-Port 10:00:00:e0:02:43:5c:c8
1 1 020100 id N2 Online FC L-Port
2 2 020200 id N2 Online FC F-Port 50:06:0e:80:04:7d:db:02
3 3 020300 id N4 Online FC F-Port 51:8a:90:56:e2:f4:a0:00
4 4 020400 id N4 Online FC F-Port 10:00:00:00:c9:87:a9:bc
5 5 020500 id N4 Online FC F-Port 50:01:43:80:00:c4:43:38
6 6 020600 id N8 No_Light FC
7 7 020700 id N8 No_Light FC
8 8 020800 id N4 Online FC F-Port 50:01:43:80:01:32:13:2c
9 9 020900 id N4 Online FC F-Port 10:00:00:e0:02:23:e2:0a
10 10 020a00 id N4 Online FC F-Port 50:06:0b:00:00:61:25:6a
11 11 020b00 id N8 No_Light FC
12 12 020c00 id N4 Online FC F-Port 50:06:0b:00:00:69:fa:1e
13 13 020d00 id N4 Online FC E-Port 10:00:00:05:1e:04:b3:25 ")
14 14 020e00 id N4 Online FC F-Port 50:06:0b:00:00:69:f9:0e
15 15 020f00 id N8 No_Light FC Disabled
16 16 021000 id N8 No_Light FC (No POD License) Disabled
17 17 021100 id N8 No_Light FC (No POD License) Disabled
18 18 021200 id N8 No_Light FC (No POD License) Disabled
19 19 021300 id N8 No_Light FC (No POD License) Disabled
20 20 021400 id N8 No_Light FC (No POD License) Disabled
21 21 021500 id N8 No_Light FC (No POD License) Disabled
22 22 021600 id N8 No_Light FC (No POD License) Disabled
23 23 021700 id N8 No_Light FC (No POD License) Disabled
收藏起来,漫漫看