最近研究了一下brocade FC交换机interopmode模式,在brocade交换机中支持三种interopmode模式:Brocade Native Mode (IM0),McDATA Fabric Mode (IM2)和McDATA Open Fabric Mode (IM3)。具体介绍如下:
Mode 0 :Brocade Native Mode (IM0)
Brocade私有模式,不支持级联。
-
- 配置如下:
- Step 1
-
- brocade300:root> switchdisable
-
- Step 2 重配置交换机参数
- brocade300:root> configure
-
- Configure...
-
- Fabric parameters (yes, y, no, n): [no] y
-
- Domain: (1..239) [6]
-
- WWN Based persistent PID (yes, y, no, n): [no]
- R_A_TOV: (4000..120000) [10000]
-
- E_D_TOV: (1000..5000) [2000]
- WAN_TOV: (0..30000) [0]
-
- MAX_HOPS: (7..19) [7]
- Data field size: (256..2112) [2112]
-
- Sequence Level Switching: (0..1) [0]
- Disable Device Probing: (0..1) [0]
-
- Suppress Class F Traffic: (0..1) [0]
- Per-frame Route Priority: (0..1) [0]
-
- Long Distance Fabric: (0..1) [0]
- BB credit: (1..27) [16]
-
- Disable FID Check (yes, y, no, n): [yes]
- Insistent Domain ID Mode (yes, y, no, n): [yes]
-
- Virtual Channel parameters (yes, y, no, n): [no]
- F-Port login parameters (yes, y, no, n): [no]
-
- Zoning Operation parameters (yes, y, no, n): [no]
- RSCN Transmission Mode (yes, y, no, n): [no]
-
- Arbitrated Loop parameters (yes, y, no, n): [no]
- System services (yes, y, no, n): [no]
-
- Portlog events enable (yes, y, no, n): [no]
- ssl attributes (yes, y, no, n): [no]
-
- rpcd attributes (yes, y, no, n): [no]
- cfgload attributes (yes, y, no, n): [no]
-
- webtools attributes (yes, y, no, n): [no]
- Custom attributes (yes, y, no, n): [no]
-
- system attributes (yes, y, no, n): [no]
- System (yes, y, no, n): [no]
-
- No changes.
-
- Step 3 配置为模式3
-
- brocade300:root>
- brocade300:root> interopmode 1
-
- Step 4 保存配置
-
- brocade300:root>
- brocade300:root> cfgsave
-
- You are about to save the Defined zoning configuration. This
- action will only save the changes on Defined configuration.
-
- Any changes made on the Effective configuration will not
- take effect until it is re-enabled.
-
- Do you want to save Defined zoning configuration only? (yes, y, no, n): [no] y
- Nothing changed: nothing to save, returning ...
- brocade300:root>
- brocade300:root>reboot
interopmode 0 只要重配置交换机,设置为0后保存配置重启就可以生效,并不一定需要配置zone。就可以获取存储磁盘。
Mode 2 :McDATA Fabric Mode (IM2)
Brocade私有模式,支持级联。CISCO也有兼容这个模式的选项。
-
- 配置如下 :
- Step 1
-
- brocade300:root> switchdisable
-
- Step 2 重配置交换机参数
- brocade300:root> configure
-
- Configure...
-
- Fabric parameters (yes, y, no, n): [no] y
-
- Domain: (1..239) [6]
-
- WWN Based persistent PID (yes, y, no, n): [no]
- R_A_TOV: (4000..120000) [10000]
-
- E_D_TOV: (1000..5000) [2000]
- WAN_TOV: (0..30000) [0]
-
- MAX_HOPS: (7..19) [7]
- Data field size: (256..2112) [2112]
-
- Sequence Level Switching: (0..1) [0]
- Disable Device Probing: (0..1) [0]
-
- Suppress Class F Traffic: (0..1) [0]
- Per-frame Route Priority: (0..1) [0]
-
- Long Distance Fabric: (0..1) [0]
- BB credit: (1..27) [16]
-
- Disable FID Check (yes, y, no, n): [yes]
- Insistent Domain ID Mode (yes, y, no, n): [yes]
-
- Virtual Channel parameters (yes, y, no, n): [no]
- F-Port login parameters (yes, y, no, n): [no]
-
- Zoning Operation parameters (yes, y, no, n): [no]
- RSCN Transmission Mode (yes, y, no, n): [no]
-
- Arbitrated Loop parameters (yes, y, no, n): [no]
- System services (yes, y, no, n): [no]
-
- Portlog events enable (yes, y, no, n): [no]
- ssl attributes (yes, y, no, n): [no]
-
- rpcd attributes (yes, y, no, n): [no]
- cfgload attributes (yes, y, no, n): [no]
-
- webtools attributes (yes, y, no, n): [no]
- Custom attributes (yes, y, no, n): [no]
-
- system attributes (yes, y, no, n): [no]
- System (yes, y, no, n): [no]
-
- No changes.
-
- Step 3 配置为模式3
-
- brocade300:root>
- brocade300:root> interopmode 2
-
- Step 4 保存配置
-
- brocade300:root>
- brocade300:root> cfgsave
-
- You are about to save the Defined zoning configuration. This
- action will only save the changes on Defined configuration.
-
- Any changes made on the Effective configuration will not
- take effect until it is re-enabled.
-
- Do you want to save Defined zoning configuration only? (yes, y, no, n): [no] y
- Nothing changed: nothing to save, returning ...
-
- brocade300:root>
- brocade300:root>reboot
-
- 创建一个zone。如把0,1,2这3个光纤端口划在一个zone里
-
- brocade300:root>zonecreate “zoneliu”,”3,1;3.3”
-
- 创建一个配置,创建的zone需要加入到一个cfg里才能有效。
- brocade300:root>cfgcreate “cfgliu”,”zoneliu”
-
- 启用一个cfg
-
- brocade300:root> cfgenable "cfgliu"
-
- 把zone加入到cfg里后,要使用cfgsave保存
- brocade300:root> cfgsave
-
- 补充:
-
- 增加一个光纤端口到一个zone里
- swd77:admin> zoneadd "zone3","1,8"
-
- 增加zone3到cfg1里
- swd77:admin> cfgadd "cfg1","zone3"
-
- 使一个cfg失效
-
- swd77:admin> cfgdisable "cfg1"
-
- 从一个cfg里删除一个zone
- swd77:admin> cfgremove "cfg1","zone3"
-
- 从一个zone里删除一个光纤端口
-
- swd77:admin> zoneremove "zone3","1,8"
-
- 暴力删除一个zone
- swd77:admin> zonedelete "zone3"
-
- 暴力删除一个cfg
- swd77:admin> cfgdelete "cfg1"
注意做以上步骤后都记着用cfgsave保存配置。
如果要配置mode 2的交换机级联请看:《brocade FC交换机与cisco 级联配置详解》
Mode 3:McDATA Open Fabric Mode (IM3)
开放模式,用于兼容所有其他产品,这个模式只能让其他设备配置好zone同步到本机,否则无法使用。
这里要注意前面两种模式交换机可以配置zone,所以单机情况下可以前面两种模式就可以正常访问存储。同时也可以通过级联方式访问存储。
而配置为第三种模式后,broacade交换机本身不能配置zone,需要其他交换机配置好zone后同步给brocade的交换机,这样brocade交换机才会有zone信息。所以在这种模式下不能用单机使用只能用级联的方式进行访问存储。
注:两台交换机一样就是0,不一样是2或3.
-
- Brocade配置如下:
- Step 1
-
- brocade300:root> switchdisable
-
- Step 2 重配置交换机参数
- brocade300:root> configure
-
- Configure...
-
- Fabric parameters (yes, y, no, n): [no] y
-
- Domain: (1..239) [6]
-
- WWN Based persistent PID (yes, y, no, n): [no]
- R_A_TOV: (4000..120000) [10000]
-
- E_D_TOV: (1000..5000) [2000]
- WAN_TOV: (0..30000) [0]
-
- MAX_HOPS: (7..19) [7]
- Data field size: (256..2112) [2112]
-
- Sequence Level Switching: (0..1) [0]
- Disable Device Probing: (0..1) [0]
-
- Suppress Class F Traffic: (0..1) [0]
- Per-frame Route Priority: (0..1) [0]
-
- Long Distance Fabric: (0..1) [0]
- BB credit: (1..27) [16]
-
- Disable FID Check (yes, y, no, n): [yes]
- Insistent Domain ID Mode (yes, y, no, n): [yes]
-
- Virtual Channel parameters (yes, y, no, n): [no]
- F-Port login parameters (yes, y, no, n): [no]
-
- Zoning Operation parameters (yes, y, no, n): [no]
- RSCN Transmission Mode (yes, y, no, n): [no]
-
- Arbitrated Loop parameters (yes, y, no, n): [no]
- System services (yes, y, no, n): [no]
-
- Portlog events enable (yes, y, no, n): [no]
- ssl attributes (yes, y, no, n): [no]
-
- rpcd attributes (yes, y, no, n): [no]
- cfgload attributes (yes, y, no, n): [no]
-
- webtools attributes (yes, y, no, n): [no]
- Custom attributes (yes, y, no, n): [no]
-
- system attributes (yes, y, no, n): [no]
- System (yes, y, no, n): [no]
-
- No changes.
-
- Step 3 配置为模式3
-
- brocade300:root>
- brocade300:root> interopmode 3
-
- Step 4 保存配置
-
- brocade300:root>
- brocade300:root> cfgsave
-
- You are about to save the Defined zoning configuration. This
- action will only save the changes on Defined configuration.
-
- Any changes made on the Effective configuration will not
- take effect until it is re-enabled.
-
- Do you want to save Defined zoning configuration only? (yes, y, no, n): [no] y
- Nothing changed: nothing to save, returning ...
- brocade300:root>
- brocade300:root>reboot
其他什么不用配置,只要在CISCO交换机上配置就可以了。
-
- CISCO交换机配置如下:
- Step 1 Place the VSAN of the E ports(s) that connect to the OEM switch in interoperability mode.
-
- C5548-1# config t
- Enter configuration commands, one per line. End with CNTL/Z.
-
- C5548-1(config)# vsan database
- C5548-1(config-vsan-db)# no vsan 2 interop 配置为默认模式
-
- vsan 2:interoperability mode 1 allowed domain list [97-127] does not include all assigned
- and configured domains or conflicts with existing allowed domain lists
-
- Step 2 Assign a domain ID in the range of 97 (0x61) through 127 (0x7F). This interop mode limitation restricts the fabric to a total of 31 switches.
- C5548-1# config t
-
- Enter configuration commands, one per line. End with CNTL/Z.
- C5548-1(config)# fcdomain domain 100 preferred vsan 2
-
- Step 3 Change the Fibre Channel timers if they have been changed from the system defaults.
- The FC error Detect (ED_TOV) and Resource Allocation (RA_TOV) timers on the MDS 9000 switch and Brocade switches default to the same values. The RA_TOV defaults to 10 seconds, and the ED_TOV defaults to 2 seconds. These values can be changed. According to the FC-SW2 standard, these values must be the same on each switch in the fabric.
-
- C5548-1# config t
- C5548-1(config)# fctimer e_d_tov 2000
-
- <1000-100000> E_D_TOV in milliseconds(1000-4000)
- C5548-1(config)# fctimer r_a_tov 10000
-
- <5000-100000> R_A_TOV in milliseconds(5000-100000)
- Step 4 After making changes to the domain, restart the MDS 9000 switch domain manager function for the altered VSAN. To do this, suspend and then resume the VSAN.
-
- C5548-1(config)# vsan database
- C5548-1(config-vsan-db)# vsan 2 suspend
-
- C5548-1(config-vsan-db)# no vsan 2 suspend
- Step 5: 配置接口
-
- C5548-1(config-vsan-db)# vsan 2 interface fc2/1 ---接节点
- C5548-1(config-vsan-db)# vsan 2 interface fc2/2 ---接交换机E模式
-
- C5548-1(config)# interface fc2/1
- C5548-1(config)# switchport mode F
- C5548-1(config)# interface fc2/2
- C5548-1(config)# switchport mode E
CISCO上查看SHOW信息:
-
- 查看交换机间协商信息:
- C5548-1(config)# show fcdomain vsan 2
-
- The local switch is the Principal Switch.
-
- Local switch run time information:
- State: Stable
-
- Local switch WWN: 20:02:00:05:73:b9:0c:c1
- Running fabric name: 20:02:00:05:73:b9:0c:c1
-
- Running priority: 2
- Current domain ID: 0x64(100)
-
- Local switch configuration information:
-
- State: Enabled
- FCID persistence: Enabled
-
- Auto-reconfiguration: Disabled
- Contiguous-allocation: Disabled
-
- Configured fabric name: 20:01:00:05:30:00:28:df
- Optimize Mode: Disabled
-
- Configured priority: 128
- Configured domain ID: 0x64(100) (static)
-
- Principal switch run time information:
-
- Running priority: 2
-
- Interface Role RCF-reject
- ------------------ ------------- ------------
-
- fc2/2 Downstream Disabled
- ------------------ ------------- ------------
-
- C5548-1(config)# show fcdomain domain-list vsan 2
-
- Number of domains: 2
- Domain ID WWN
-
- --------- -----------------------
- 0x64(100) 20:02:00:05:73:b9:0c:c1 [Local] [Principal] ----- CISCO交换机
-
- 0x66(102) 10:00:00:05:33:49:b8:f8 -----brocade交换机
- C5548-1(config)#
-
- 查看NS
-
- C5548-1(config)# show fcns database vsan 2
-
- VSAN 2:
- --------------------------------------------------------------------------
-
- FCID TYPE PWWN (VENDOR) FC4-TYPE:FEATURE
- --------------------------------------------------------------------------
-
- 0x640002 N 50:0a:09:84:8d:7e:de:48 (NetApp) scsi-fcp:target
- 0x661100 N 21:00:00:24:ff:29:68:3c scsi-fcp:init
-
- Total number of entries = 2
-
- Interopmode 模式为默认模式
-
- C5548-1(config)# show vsan 2
- vsan 2 information
-
- name:VSAN0002 state:active
- interoperability mode:default
- loadbalancing:src-id/dst-id/oxid
- operational state:up
Broacde上查看信息:
-
- 查看协商结果信息
- brocade300:root> switchshow
-
- switchName: brocade300
- switchType: 71.2
-
- switchState: Online
- switchMode: McDATA Open Fabric
-
- switchRole: Subordinate
- DomainIDOffset: 0x60
-
- switchDomain: 102
- switchId: fffc66
-
- switchWwn: 10:00:00:05:33:49:b8:f8
- zoning: ON (edge_zs)
-
- switchBeacon: OFF
-
- Index Port Address Media Speed State Proto
- ==============================================
-
- 0 0 661900 -- N8 No_Module FC
- 1 1 661300 id N8 Online FC E-Port 20:02:00:05:73:b9:0c:c1 "C5548-1" (upstream)
-
- 2 2 661800 -- N8 No_Module FC
- 3 3 661100 id N4 Online FC F-Port 21:00:00:24:ff:29:68:3c
-
- 4 4 661600 -- N8 No_Module FC
- 5 5 661400 -- N8 No_Module FC
-
- 6 6 661200 -- N8 No_Module FC
- 7 7 661000 -- N8 No_Module FC
-
- 在brocade 端查看本机的ns信息。
-
- brocade300:root> nsshow
- {
-
- Type Pid COS PortName NodeName TTL(sec)
- N 661100; 3;21:00:00:24:ff:29:68:3c;20:00:00:24:ff:29:68:3c; na
-
- FC4s: FCP
- NodeSymb: [32] "QLE2562 FW:v4.06.01 DVR:v9.1.8.6"
-
- Fabric Port Name: 20:03:00:05:33:49:b8:f8
- Permanent Port Name: 21:00:00:24:ff:29:68:3c
-
- Port Index: 3
- Share Area: No
-
- Device Shared in Other AD: No
- Redirect: No
-
- The Local Name Server has 1 entry }
-
- 查看全局的Name Server 信息
- brocade300:root> nsallshow
-
- {
- 640002 661100 -----这里有两个一个是本机的ns,一个是cisco上的ns信息。
-
- 2 Nx_Ports in the Fabric }
-
- 查看zone配置信息
- brocade300:root> cfgshow
-
- Defined configuration:
- no configuration defined
-
- Effective configuration:
- no configuration in effect
如上可知mode 3本机不能配置zone所以configuration和effective两个选项都是空的。需要在CISCO上配置zone信息后同步到Brocade上,这里ns全局信息同步后才可以获取到存储LUN。
-
- CISCO 5548配置zone:
- Step 1: 创建zone 命名为edgezone
-
- C5548-1(config)# zone name edgezone vsan 2
-
- Step 2: 将添加pwwn到zone中
- C5548-1(config-zone)# member pwwn 50:0a:09:84:8d:7e:de:48
-
- C5548-1(config-zone)# member pwwn 21:00:00:24:ff:29:68:3c
-
- Step 3: 创建zoneset 命名为 edge_zs
- C5548-1(config)# zoneset name edge_zs vsan 2
-
- Step 3: 将edgezone加入zoneset
-
- C5548-1(config-zoneset)# member edgezone
- C5548-1(config-zoneset)# ex
-
- Step 4: 激活zoneset
- C5548-1(config)# zoneset activate name edge_zs vsan 2
- Zoneset activation initiated. check zone status
在CISCO上查看zone 激活状态:
-
- C5548-1(config)# show zoneset active
- zoneset name edge_zs vsan 2
-
- zone name edgezone vsan 2
- * fcid 0x640002 [pwwn 50:0a:09:84:8d:7e:de:48]
-
- * fcid 0x661100 [pwwn 21:00:00:24:ff:29:68:3c]
- zone name $default_zone$ vsan 2
- C5548-1(config)#
在brocade上查看zone配置信息:
-
- brocade300:root> cfgshow
- Defined configuration:
-
- no configuration defined
-
- Effective configuration:
- cfg: edge_zs
-
- zone: edgezone
- 50:0a:09:84:8d:7e:de:48
- 21:00:00:24:ff:29:68:3c
可以看到brocade zone 已经同步过来,同时提一点由于这个zone信息不是brocade本机配置的而是从其他交换机同步过来,所以defined configuration是空的,而effective configuration是有zone信息。
这样整个mode 3模式下交换机级联就配置完成,服务器可以正常读取到存储的磁盘信息。

2013年2月7日 下午12:45 沙发
独立博客很不容易啊,坚持下去,加油加油。
有空来我的小站回访一下哈。
2013年3月12日 上午9:41 板凳
技术文章,支持一下!
2013年3月16日 下午10:36 地板
我是来支持一些技术男,加油,支持你