光纤交换机划ZONE

虽然我们在媒体上可以看到许多厂商声称有SAN交换机可以选择,其实这是一种假象,绝大多数厂商的SAN交换机都是OEM几个主要品牌的。

目前在SAN交 换机方面真正有实力主要有:IBM、Brocade(博科)、Cisco、McDATA等,

像EMC这样的软件厂商基本上都是OEM其它厂商的SAN交换 机产品。


下图为Brocade(博科)交换机,本文也以其为例,记录其划分命令和划分方法:

连接交换机:可通过串口或网线从IE进入,默认IP  10.77.77.77 , 255.255.255.0

创建ZONE有两种方式:
一是通过交换机port号,二是通过主机和存储的WWN号 (单个硬盘没有WWN号,存储整体才有一个)


命令:
查看当前zone状况:zoneshow
删除zone : zonedelete "zone_name"
查看domainID 和交换机名称: siwtchshow
按上图创建zone:
创建zone : zonecreate "zone_name1","1,0;1,1"
           zonecreate "zone_name2","1,9;1,8"
           zonecreate "zone_name3","2,0;2,1"
           zonecreate "zone_name4","2,8;2,9"
创建zone后通过进一步创建cfg来自由组合或分拆等来管理ZONE
cfgcreate "cfg_name","zone_name1;zone_name2"
cfgenable "cfg_name"
cfgsave
cfgdelete "cfg_name"
cfgadd    "cfg_name","zone_name"或"zone_name3;zone_name4"
cfgremove "cfg_name","zone_name"  (并非删除ZONE,只是将其移出这个CFG)



通过WWN创建ZONE:
查看光纤卡的WWN号:
lsdev -Cc adapter|more fsc
lscfg -vl fsc(0-9) 就能看到WWN号
创建其实和PORT号一样:zonecreate "zone_name","234234234234234;423424234234234"








另附转载的MCDATA交换机的配置:

mcdata交换机笔记

   

1.显示当前zone信息:show zoning:

    Root> show zoning
  当然也可以用show all来查看所有的信息
  查看当前信息(习惯行的,可不做,只是为啦保存下当前的配置信息)
  Root> config zoning showActive
2.添加zone
  2.1首先Root> config zoning replaceZoneSet
  当然上面这不也可以不做原因如下:
  There are 2 ‘configure areas’ in the switch, the ‘Active’ and the ‘Pending’, you can’t

edit the Active zoneset directly, all your changes are made to the ‘Pending’ or named “Work

Area”, but this 2 ‘areas ’ are NOT always the same, so it’s better to let the pending work

area be same with the Active configuration
  2.2 添加zone
      Root> config zoning
      Config.Zoning> addzone xx__eva_sma
  2.3 将一个port成员加入到zone1中:
       Config.Zoning> addPortMem zone1 1 26
       该命令将domain ID为1的交换机上的26端口划入zone1中。
       将一个WWN成员加入到zone1中:
       Config.Zoning> addwwnMem zone1 50:06:0b:00:00:27:11:78
       或者直接Root> config zoning addWwnMem TheUltimateZone 10:00:00:00:C9:22:9B:64
       从一个zone中删除一个端口
       deletePortMem xx__eva_sma 11 141
       deletePortMem xx__eva_sma 11 142
       deletePortMem xx__eva_sma 11 140
  2.4 激活zone配置:
          Config.Zoning> activatezoneset
      或者 Root> config zoning activateZoneSet
  2.5 检查zone状态
          Config.Zoning> showactive
  2.6  通过此命令可查找到連接到该交換机设备的wwn号
        Root> show port status   
  2.7 删除zone
      Root> config zoning deleteZone TheLeastUltimateZone
  
  M-SERIES (McDATA) COMMANDS    

M-SERIES  Switch Commands   
View=                      config ip show
Config ip                          (new IP and Subnet mask)
Show switch   
Show switch   
Show  system   
Show nameserver   
Show loginServer   
Show nameServer   
Show.Fabric nodes   
Maint  system  setOnlineState   

M-SERIES  Zoning Commands   
Config.Zoning addWwnMem zoneName wwn   
Config.Zoning addZone              add a new zone to the working area
Config.Zoning activateZoneset              activation of changes
Config.Zoning showactive              shows actively connected running zoneset
Config.Zoning clearZone              clear WWNs in a zone
Config.Zoning deletezone              remove zone from the running config
Config.Zoning showPending              show pending zones
Config.Zoning renameZoneoldzonenamenewzonename   
Config.Zoning deleteWwnMem             zonenamewwn
Config.Zoning renameZoneSet             zoneSetName




猜你喜欢

转载自www.cnblogs.com/7818yu/p/10813210.html