免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
12下一页
最近访问板块 发新帖
查看: 9907 | 回复: 16
打印 上一主题 下一主题

san学习笔记 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2010-06-23 00:02 |只看该作者 |倒序浏览
本帖最后由 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上的那个端口

论坛徽章:
0
2 [报告]
发表于 2010-06-23 08:36 |只看该作者
收藏起来,漫漫看

论坛徽章:
0
3 [报告]
发表于 2010-06-23 09:15 |只看该作者
本帖最后由 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

论坛徽章:
10
处女座
日期:2015-01-22 16:08:50技术图书徽章
日期:2018-09-13 11:25:52技术图书徽章
日期:2018-09-13 11:25:45技术图书徽章
日期:2018-09-13 11:25:37技术图书徽章
日期:2018-09-13 11:25:29黑曼巴
日期:2018-06-04 09:03:192017金鸡报晓
日期:2017-01-10 15:19:56极客徽章
日期:2016-12-07 14:03:402015年迎新春徽章
日期:2015-03-04 09:50:28技术图书徽章
日期:2018-09-13 11:26:01
4 [报告]
发表于 2010-06-26 19:07 |只看该作者
这是aix的吧,呵呵
民工兄有心了

论坛徽章:
0
5 [报告]
发表于 2010-06-30 15:20 |只看该作者
aix的发到hp版了

论坛徽章:
0
6 [报告]
发表于 2010-06-30 19:04 |只看该作者
本帖最后由 hp-ux民工 于 2010-06-30 22:02 编辑

我修改了

论坛徽章:
10
处女座
日期:2015-01-22 16:08:50技术图书徽章
日期:2018-09-13 11:25:52技术图书徽章
日期:2018-09-13 11:25:45技术图书徽章
日期:2018-09-13 11:25:37技术图书徽章
日期:2018-09-13 11:25:29黑曼巴
日期:2018-06-04 09:03:192017金鸡报晓
日期:2017-01-10 15:19:56极客徽章
日期:2016-12-07 14:03:402015年迎新春徽章
日期:2015-03-04 09:50:28技术图书徽章
日期:2018-09-13 11:26:01
7 [报告]
发表于 2010-07-05 12:03 |只看该作者
多谢民工兄弟了

论坛徽章:
0
8 [报告]
发表于 2010-08-03 15:10 |只看该作者
谢谢分享

论坛徽章:
0
9 [报告]
发表于 2010-08-03 16:00 |只看该作者
不错,学习中!
fcmsutil = Fiber Channel Mass Storage UTILity

论坛徽章:
0
10 [报告]
发表于 2010-10-16 00:19 |只看该作者
本帖最后由 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的说法是从什么资料中看到的?我还是有点不明白这个地方。
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP