Brocade系列之三 博科通过命令创建ZONE

摘要

博科交换机(Brocade),作为主流的存储网络交换机设备,被广泛的用于连接各个厂商的存储,实现SAN存储网络,提供高速的数据读写。本例将简单介绍如何通过博科命令完成zone的创建。

前言

命令流程为:
aliCreate
在创建Zoning的配置时,应该首先创建Alias,把需要划分Zone的所有设备都创建为别名。一个Alias中可以同时有多个设备作为它的成员。
zoneCreate
然后创建Zone,并使用Alias作为Zone的成员,创建Zone应该遵循每个Zone中只有一个Initiator的原则;
cfgCreate
所有的Zone都创建完成后,需要创建Configuration,把需要同时存在的Zone放在一个Configuration中,根据需要可以创建多个Configuration存储不同场景下Zone的配置方案
cfgEnable
在创建了一个或多个Configuration后,这些配置都还没有生效,要真正完成区域的划分,还需要指定那个Configuration配置是生效配置,这个工作可以用cfgEnable命令完成。
cfgSave
上面做的所有Zone的配置都是存储在内存中的,在交换机重新启动后,配置会丢失。使用cfgSave命令后会把RAM中Zone的配置(包括那个Configuration生效)保存到Flash中,长久保留。

实例

串口登陆:10.77.77.77 admin/password 传输速率:9600

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
swd77:FID128:admin>switchshow    //查看端口使用情况
swd77:FID128:admin>switchdisable
swd77:FID128:admin>configure //如果switchshow显示为offline,则重配置
swd77:FID128:admin>ipaddrshow //查看ip
swd77:FID128:admin>ipaddrset //设置ip
swd77:FID128:admin>domainshow //查看domain号,“domain,端口”是最常用的zone设置方式
swd77:FID128:admin>alicreate “member1”,”1,1;1,2;1,3”
swd77:FID128:admin>alicreate “member1”,”1,4;1,5;1,6”
swd77:FID128:admin>alishow
Alias:member1 1,1;1,2;1,3
Alias:member2 1,4;1,5;1,6
Effective configuration:
swd77:FID128:admin>zonecreate “zone1”,”member1;member2”
swd77:FID128:admin>zonecreate “zone2”,”1,1;1,7”
swd77:FID128:admin>zoneshow
Zone: zone1 member1;member2
Zone: zone2 1,1;1,7
Alias:member1 1,1;1,2,1,3
Alias:member2 1,4;1,5;1,6
Effctive configuration
swd77:FID128:admin> cfgcreate "ahchcfg","zone1;zone2"
swd77:FID128:admin> cfgshow
Defined configuration:
cfg: ahchcfg zone1;zone2
Zone: zone1 member1;member2
Zone: zone2 1,1;1,7
Alias:member1 1,1;1,2,1,3
Alias:member2 1,4;1,5;1,6
effective
swd77:FID128:admin> cfgenable "ahchcfg"
You are about to enable a new zoning configuration.
This action will replace the old zoning configuration with the
current configuration selected. If the update includes changes
to one or more traffic isolation zones, the update may result in
localized disruption to traffic on ports associated with
the traffic isolation zone changes
Do you want to enable 'ahchcfg' configuration (yes, y, no, n): [no] yes
zone config "ahchcfg" is in effect
Updating flash ...
swd77:FID128:admin> 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] yes
Nothing changed: nothing to save, returning ...
swd77:FID128:admin> cfgshow
Defined configuration:
cfg: ahchcfg ahchbakzone
zone: zone1
1,1; 1,2; 1,3;
zone: zone1
1,4; 1,5; 1,6;
Effective configuration:
cfg: ahchcfg
zone: zone1
1,1
1,2
1,3
zone: zone1
1,4
1,5
1,6
swd77:FID128:admin> exit
Logout

结语

如果你还需要了解更多技术文章信息,请继续关注Jory博客

看一看,共同关注,共同分享与讨论!