2014-08-05

目 录

第一分部:SAN相关的重要概念

第二部分,配置命令及实例

第三部分: 附HP StorageWorks 8Gb SAN Switch的初始配置

第四部分: 附Brocade光纤交换机划分Zone的案例及纠错

第一分部:SAN相关的重要概念

1,SAN是什么?

SAN英文全称:Storage Area Network,即存储区域网络。它是一种通过光纤集线器、光纤路由器、光纤

交换机等连接设备将磁盘阵列、磁带等存储设备与相关服务器连接起来的高速专用子网。

SAN由三个基本的组件构成:接口(如SCSI、光纤通道、ESCON等)、连接设备(交换设备、网关、路

由器、集线器等和通信控制协议(如IP和SCSI等)。这三个组件再加上附加的存储设备和独立的SAN

服务器,就构成一个SAN系统。SAN提供一个专用的、高可靠性的基于光通道的存储网络,SAN允许独

立地增加它们的存储容量,也使得管理及集中控制(特别是对于全部存储设备都集群在一起的时候)更

加简化。而且,光纤接口提供了10 km的连接长度,这使得物理上分离的远距离存储变得更容易.

SAN的一个概念是允许存储设备和处理器(服务器)之间建立直接的高速网络(与LAN相比)连接,

通过这种连接实现只受光纤线路长度限制的集中式存储。SAN可以被看作是存储总线概念的一个扩展,

它使用局域网(LAN)和广域网(WAN)中类似的单元,实现存储设备和服务器之间的互连。这些单元

包括:路由器、集线器、交换机和网关。

SAN 可在服务器间共享,也可以为某一服务器所专有,既可以是本地的存储设备也可以扩展到地理区

域上的其他地方。SAN的接口可以是企业系统连接(ESCON)、小型计算机系统接口(SCSI)、串行存

储结构(SSA)、高性能并行接口(HIPPI)、光纤通道(FC)或任何新的物理连接方法。

2,什么是SAN Switch?

交换机是用于连接大量设备、增加带宽、减少阻塞和提供高吞吐量的一种高性能设备。

3,什么是光纤交换机(FC SWITCH)?

光纤通道交换机有着许多不同的功能,包括支持GBIC、冗余风扇、电源、分区、环操作和多管理接口等。每

一项功能都可以增加整个交换网络的可操作性,理解这些特点可以帮助用户设计一个功能强大的大规模

的SAN。光纤交换机的主要功能如下:自配置端口、环路设备支持、交换机级联、自适应速度检测、可配置

的帧缓冲、分区(基于物理端口和基于WWN的分区)、IP over Fiber Channel(IPFC)广播、远程登录、

Web管理、简单网络管理协议(SNMP)以及SCSI接口独立设备服务(SES)等。

4,什么是HBA卡和WWWN?

这里所说的HBA,全称FC HBA,也就是Fiber Channel Host Bus Adapter。在FC网络中,主机(如服

务器)需要和FC网络、FC存储设备(如SAN)连接时,需要使用一种接口卡,就如同连接以太网需要

以太网卡一样。这种接口卡就叫做FC HBA,简称HBA

和以太网卡的MAC地址一样,HBA上也有独一无二的标识,这就是WWN(World Wide

Name)。HBA上的WWN有两种:

Node WWN(WWNN):每个HBA有其独有的Node WWN

Port WWN(WWPN):HBA卡上每个port有其独一无二的Port WWN。由于通讯是通过port进行的,

多数情况下需要使用WWPN而不是WWNN。

WWN的长度为8bytes,用16进制表示并用冒号分隔。例如:50:06:04:81:D6:F3:45:42

在Windows 环境,有一个工具软件可是方便查询HBA卡的WWN。

FCHBA Test Tool v1.0.17.1

上图的服务器上有两张HBA卡。

在SUSE9下:

cat /proc/scsi/qla2xxx/1

这个1可能是0,或者2,3等

在SUSE10下:

cat /sys/class/fc_host/host1/node_name

有时会是host2或者host3

5,什么Domain id?

domain ID来区分交换机,所以一个fabric里的交换机domain ID不能一样. 一个fabric中的多台交换机

的domain ID由master交换机(默认第一个启动的交换机)自动分配。

查看命令 domainsshow

swd77:admin> domainsshow

Number of domains: 1

1

6,什么是Zone

在SAN 光纤交换机中zone的概念相当于以太网交换中的vlan.

配置Zone需要涉及到三个对象的配置Alias,Zone,Configuration。

Alias 可以把设备的WWN或Domain,Port声明为Alias,用于更好更直观的标示设备。使用Alias的主

要目的是方便用户的使用,想象一下记住一个人的身份证号和名字的区别就可以明白其中的道理,使用

Alias就想给设备启名字一样。声明Alias的另外一个益处是便于Zone中成员的更换。当Zone中的某个

成员更换时,如果定义了Alias,只要修改Alias的定义就可以调整Zone中的成员,而不用修改Zone

的配置。 Zone 区域,Zone内的设备可以相互访问,但不能访问其他Zone的设备。

Zone的成员可以有三种:“Domain,Port”;”WWN”;”Alias”。 Zone对成员的数量没有限制,可以

同时有多个类型的多个设备同时存在于一个Zone中。当一个wwn被定义在zone中后,他的所有端口都

会被包括在zone中。

Configuration 在交换机上的一套关于Zone的配置,或者说一系列Zone的集合。它可以包含______________一个或多个

Zone作为它的成员。在一个SAN网络中一般需要有多个Zone同时存在,这一套同时存在的Zone被存

放在一个Configuration中。为了解决在交换机上,在不同的时间有不同的Zone的配置的问题,在交换

机上允许同时有多个Zone的Configuration存在方便Zone配置的切换。 所有的Configuration配置中只

有一个Configuration是生效的配置,被称作Active Configuration。其他的都是待选方案,只有在他们成

为Active Configuration后,他们的Zoning配置才会生效。 在交换机上配置Zoning的主要途径有两种:

Telnet和WEB TOOLS。Zoning的配置可以动态的进行,当使用cfgEnable指定某个配置成为生效的配

置后,Zoning的配置会立即在SAN网络中生效,隔离Zone间的相互访问。在交换机上新创建Zoing的

配置一般会按如下的方式进行问。

SAN交换机划分Zone的一些原则,以供参考。

01. 不同的主机操作系统划为不同的Zone.

02. 磁盘设备和磁带设备划分为不同的Zone.

03. 根据不同的业务也可以划分为不同的Zone.

查看命令是zoneshow,下面是已经配置3个zone(maildag,bjfileserver,hypyperv)

Effective configuration:

cfg: bjstorage

zone: maildag 50:01:43:80:05:67:01:c1

50:01:43:80:05:67: 01:c2

50:01:43:80:05:67: 01:c3

50:01:43:80:05:67: 01:c4

1,4

1,5

zone: bjfileserver

50:01:43:80:05:67: 01:c5

1,4

1,5

zone: bkhyperv

50:01:43:80:05:67: 01:c6

50:01:43:80:05:67: 01:c7

1,4

1,5

第二部分,配置命令及实例

前面,我们已经了解了一些基本的概念,现在就开始就结合实例来介绍一些相关命令

help命令提示你如何操作。zonehelp提示你如何操作zone。

zonecreate命令创建zone。命令如下:zonecreate "zone_name","number;number"。这里

number可以是"域,端口号",也可以是"wwn",还可以是zone的别名和Quickloop AL_PAs。

交换机默认域为1,端口号从0-15。可以用switchshow来查看配置。重要的是记住必须用

cfgsave保存,和cfgenable让其生效。

下面是一台24口的HP StorageWorks 8Gb SAN Switch基本情况,本是有24日,但只有购买

了9个模块,16个License。

swd77:admin> switchshow

switchName: swd77

switchType: 71.2

switchState: Online

switchMode: Native

switchRole: Principal

switchDomain: 1

switchId: fffc01

switchWwn: 10:00:00:05:1e:d4:d1:01

zoning: ON (bjstorage)

switchBeacon: OFF

Area Port Media Speed State Proto

=====================================

0 0 id N4 Online F-Port 50:01:43:80:05:67:01:c1

1 1 id N4 Online F-Port 50:01:43:80:05:67: 01:c2

2 2 id N4 Online F-Port 50:01:43:80:05:67: 01:c3

3 3 id N4 Online F-Port 50:01:43:80:05:67: 01:c4

4 4 id N4 Online L-Port 1 public

5 5 id N4 Online L-Port 1 public

6 6 id N4 Online F-Port 50:01:43:80:05:67: 01:c5

7 7 id N4 Online F-Port 50:01:43:80:05:67: 01:c6

8 8 id N4 Online F-Port 50:01:43:80:05:67: 01:c7

9 9 -- N8 No_Module

10 10 -- N8 No_Module

11 11 -- N8 No_Module

12 12 -- N8 No_Module

13 13 -- N8 No_Module

14 14 -- N8 No_Module

15 15 -- N8 No_Module

16 16 -- N8 No_Module (No POD License) Disabled

…….

23 23 -- N8 No_Module (No POD License) Disabled

在交换机的连接情况如下(有些主机有两张卡),SAN 存储是HP MSA 2312FC:

Domain ID: 1

WWWN:

10:00:00:05:1e:d4

:d1:01

Slot 0 1 2 3 8

Host

WWWN-

50:01:43:80:05:67:

01:c1

Host: Mailbox2a

WWWN-

50:01:43:80:05:6

7:01:c2

Host: Mailbox2b

WWWN-

50:01:43:80:05:67:

01:c3

Host: Mailbox1a

WWWN-

50:01:43:80:05:67

:01:c4

Host: Mailbox1b

WWWN-

50:01:43:80:05:67:

01:c5

Host: bjfs01

Slot 4 5 6 7 12

Host

L-Port

Host: SAN-FC-A-01

L-Port

Host: SAN-FC-B-

01

WWWN-

50:01:43:80:05:67:

01:c6

Host: bjhyperv1

WWWN-

50:01:43:80:05:67

:01:c7

Host: bjhyperv2

无连接设备

SAN Switch 1

下面把用命令配置方法大概列一下

telnet 10.1.1.100

username:admin

password:password (默认密码)

1.1 查看zone配置 (本例已经配置好)

Cfgshow

swd77:admin> cfgshow

Defined configuration:

cfg: bjstorage

maildag; bjfileserver; bjhyperv

zone: maildag Mailbox1a; Mailbox1b; Mailbox2a; Mailbox2b; 1,4; 1,5

zone: bkfileserver

bjfs01; 1,4; 1,5

zone: bjhyperv

bjhyperv1; bjhyperv2; 1,4; 1,5

alias: Mailbox1a

50:01:43:80:05:67:01:c3

alias: Mailbox1b

50:01:43:80:05:67:01:c4

alias: Mailbox2a

50:01:43:80:05:67:01:c1

alias: Mailbox2b

50:01:43:80:05:67:01:c2

alias: bjfs01 50:01:43:80:05:67:01:c5

alias: bjhyperv1

50:01:43:80:05:67:01:c6

alias: bjhyperv2

50:01:43:80:05:67:01:c7

Effective configuration:

cfg: bjstorage

zone: maildag 50:01:43:80:05:67:01:c1

50:01:43:80:05:67: 01:c2

50:01:43:80:05:67: 01:c3

50:01:43:80:05:67: 01:c4

1,4

1,5

zone: bjfileserver

50:01:43:80:05:67: 01:c5

1,4

1,5

zone: bkhyperv

50:01:43:80:05:67: 01:c6

50:01:43:80:05:67: 01:c7

1,4

1,5

要取消原来的配置,可先禁止配置文件(cfgdisable),删除zone(zoneremove),然后删除

alias(alicremove):

实现上面的配置,相关步骤如下。

1.2 创建别名

alicreate “Mailbox1a”, “50:01:43:80:05:67:01:c3”

alicreate “Mailbox1b”, “50:01:43:80:05:67:01:c4”

alicreate “Mailbox2a”, “50:01:43:80:05:67:01:c1”

alicreate “Mailbox2b”, “50:01:43:80:05:67:01:c2”

alicreate “bjfs01”, “50:01:43:80:05:67:01:c5”

alicreate “bjhyperv1”, “50:01:43:80:05:67:01:c6:

alicreate “bjhyperv2”, “50:01:43:80:05:67:01:c7

alishow 查看已经创建好的别名

当然,我们SAN存储是接在了“第4个接口和第5个接口”,同样,你也可能为存储取别

名。

alicreate “SANFC01”, “1,4”

alicreate “SANFC01”, “1,5”

在我前所显示的配置中,我没有给SAN存储取别名,下面的配置仍不为此取别名。

1.3 创建zone(把别名或端口分配到zone中)

由于每台服务器都需要访问SAN存储(端口4和5),所以每个ZONE都包含了这两个端口。

zonecreate “maildag” , “Mailbox1a; Mailbox1b; Mailbox2a; Mailbox2b; 1,4; 1; 5”

zonecreate “bjfileserver” , ”bjfs01 ; 1,4; 1; 5”

zonecreate “bkhyperv” , “bjhyperv1; bjhyperv2 ;1,4; 1; 5”

zoneshow查看已经创建好zone名

1.4 创建zone配置文件(把zone加入到配置文件中)

cfgcreate “bjstorage” , ” maildag; bjfileserver; bjhyperv”

cfgshow查看已经创建好的zone配置

1.5 使zone配置生效

cfgenable “bjstorage”

1.6 保存配置

cfgsave

第三部分: 附HP StorageWorks 8Gb SAN Switch的初始配置

这部分我们介绍一下对一台新的SAN Switch进行初始配置(设IP,时间等)。

Power on the 8Gb SAN Switch

The 8/8 and 8/24 SAN Switches use one power cord. The 8/40 and 8/80 SAN Switches

use two power cords. To power on:

IMPORTANT:

The 8/8 and 8/24 SAN Switches do not have an on/off switch. Power is supplied as soon

as you connect it to an AC power source.

1. Connect the power cord(s) to a power inlet on the switch and to a power source. Verify

that the cord(s) use a minimum service loop of 6 inches, to avoid stress.

IMPORTANT:

To protect against AC failure on the 8/40 SAN Switch or the 8/80 SAN Switch, connect

each power cord to outlets on separate circuits.

2. For the 8/40 and 8/80 SAN Switches, set the two AC switches to the ON position (1).

Power is supplied to the switch as soon as the first power supply is connected and turned

on. The power supply LEDs display amber until POST completes, and then change to

green. The switch usually requires from 1 to 3 minutes to boot and complete POST.

3. After POST completes, verify that the switch Power and Status LEDs light are green.

Make a serial connection

All basic configuration tasks require a serial connection:

1. Connect the serial cable to an RS-232 serial port on the workstation, as shown in Figure

18. Figure 18 shows the 8/24 SAN Switch; however, this procedure is similar for all

SAN Switches.

NOTE:

If the serial port on the workstation uses an RJ-45 connector instead of an RS-232 connector,

remove the adapter on the end of the serial cable, and insert the exposed RJ-45

connector into the RJ-45 serial port on the workstation.

2. Close any serial communication programs running on the workstation.40 Installing and

configuring an 8Gb SAN Switch

3. Open a terminal emulator application (such as HyperTerminal on a PC or TERM in a

UNIX environment) and configure the application as follows:

In a Windows 95, 98, 2000, or NT environment:

Bitsper second—9600

Databits—8

Parity—None

Stop bits—1

Flow control—None

In a UNIX environment, enter the following at the prompt:

tip/dev/ttyb –9600 nl

If ttyb is already in use, use ttya instead and enter the following string at the prompt:

tip /dev/ttya -9600

8Gb SAN Switch hardware reference manual 41

Power on the switch

Once a serial connection is established, power on the switch:

1. Connect the power cord to a power inlet on the switch and to a power source.

NOTE:

The 8/8 and 8/24 SAN Switches use one power cord. The 8/40 and 8/80 SAN Switches

use two power cords.

2. To power on, set the two AC switches to the ON position (I). The power supply LED

lights green and the switch runs the power-on self test (POST). The switch requires at

least three minutes to boot and complete POST.

3. After POST and the boot process are completed, verify that the System Status and

System Power LEDs light green.

4. When the terminal emulator application, which uses a serial connection, stops reporting

information, press Enter to display the login prompt.

5. Log in using the administrative account; the user name is admin and the default password

is password. Create up to two simultaneous admin sessions and four user sessions.

For more details, see the HP StorageWorks Fabric OS administrator guide and the

Fabric OS command reference manual for the Fabric OS running on your switch.

Set the switch IP address

You can configure the 8Gb SAN Switch with a static IP address, or you can use a Dynamic

Host Configuration Protocol (DHCP) server to set the IP address. DHCP is enabled

by default. The 8Gb SAN Switch supports both IPv4 and IPv6.

DHCP

When using DHCP, the 8Gb SAN Switch obtains its IP address, subnet mask, and default

gateway address from the DHCP server. The DHCP client can only connect to a DHCP

server that is on the same subnet as the switch. If your DHCP server is not on the same

subnet as the 8Gb SAN Switch, use a static IP address.

Setting a static IP address

1. Log in to the switch using the default password, (password).

2. Enter ipaddrset to set the Ethernet IP address. If you are going to use an IPv4 IP

address, enter the IP address in dotted decimal notation as

prompted:

Ethernet IP Address: [192.168.74.102]

If you are going to use an IPv6 address, enter the network information in colon-separated

notation as prompted:

switch:admin> ipaddrset -ipv6 --add 1080::8:800:200C:417A/64

IP address is being changed...Done.

3. Enter the IP addressing information, as prompted.

Ethernet Subnetmask: [255.255.255.0]

Ethernet IP Address: [192.168.74.102]

Ethernet Subnetmask: [255.255.255.0]

42 Installing and configuring an 8Gb SAN Switch

4. Type off to disable DHCP when prompted.

DHCP [OFF]: off

5. Optional: Verify that the address is correct by issuing the ipaddrshow command at

the prompt.

6. Record the IP address on the label located on the port side of the chassis. Record the

IP address on the pull-out tab on the port side of the switch.

7. If the serial port is no longer required, log out of the serial console, remove the serial

cable, and replace the safety plug in the serial port.

Set the switch date and time

The 8Gb SAN Switch maintains the current date and time inside a battery-backed realtime

clock (RTC) circuit. Switch operation does not depend on the date and time. An 8Gb

SAN Switch with an incorrect date and time value still functions properly. However, it is

important that your switch shows the accurate date and time, because these are used for

logging, error detection, and troubleshooting.

1. Log in to the switch using the default password, (password).

2. Enter the date command:

date "mmddHHMMyy"

The values represent the following:

mm is the month; valid values are 01 through 12.

dd is the date; valid values are 01 through 31.

HH is the hour; valid values are 00 through 23.

MM is minutes; valid values are 00 through 59.

yy is the year; valid values are 00 through 99. (Values greater than 69 are interpreted

as 1970

through 1999, and values less than 70 are interpreted as 2000-2069.)

switch:admin> date

Fri Sep 29 17:01:48 UTC 2007

switch:admin> date "0927123007"

Thu Sep 27 12:30:00 UTC 2007

switch:admin>

About setting time zones

You can set the time zone for the switch by name. You can also set country, city, or time

zone parameters. If the time zone is not set with the new options, the switch retains the

offset time zone settings. The tsTimeZone command includes an option to revert to the

prior time zone format. For more information about the --old option, see the Fabric OS

command reference manual.

You can set the time zone for a switch using the tsTimeZone command. The

TimeZone command allows you to perform the following tasks:

Display all of the time zones supported in the firmware.

Set the time zone based on a country and city combination or based on a time zone ID,

such as PST.

You can view the time zone settings. However, only those with administrative permissions

can set the time zones.

The tsTimeZone setting automatically adjusts for daylight savings time.

Changing the time zone on a switch updates the local time zone setup and is reflected

in local time calculations.

8Gb SAN Switch hardware reference manual 43

By default, all switches are in the GMT time zone (0,0). If all switches in a fabric are in

one time

zone, it is possible for you to keep the time zone setup at the default setting.

System services that have already started will reflect the time zone changes only after

the next

Time zone settings persist across failover for high availability.

Set the time zone

IMPORTANT:

The following procedure describes how to set the time zone for a switch. You must perform

the procedure on all switches for which the time zone must be set. However, you

only need to set the time zone once on each switch, because the value is written to nonvolatile

1. Log in to the switch using the default password, (password).

2. Enter the tsTimeZone command as follows

switch:admin> tstimezone [--interactive]/ [, timezone_fmt]

Use timezone_fmt to set the time zone by Country/City or by time zone ID, such as

PST. The following example shows how to change the time zone to US/Central:

switch:admin> tstimezone

Time Zone : US/Pacific

switch:admin> tstimezone US/Central

switch:admin> tstimezone

Time Zone : US/Central

To set the time zone using interactive mode:

1. Type the tsTimeZone command:

switch:admin> tstimezone --interactive

2. You are prompted to select a general location.

Please identify a location so that time zone rules can be set

3. Enter the appropriate number or Ctrl-D to quit.

4. At the prompt, select a country location.

5. At the prompt, enter the appropriate number to specify the time zone region or Ctrl-D

to quit.

Synchronizing local time using Network Time Protocol (NTP)

You can synchronize the local time of the principal or primary Fabric Configuration Server

(FCS) switch to a maximum of eight external NTP servers. To keep the time in your SAN

current, it is recommended that the principal or primary FCS switch has its time synchronized

with at least one external NTP server. The other switches in the fabric will automatically

take their time from the principal or primary FCS switch.

All switches in the fabric maintain the current clock server value in nonvolatile memory.

By default, this value is the local clock server <LOCL> of the principal or primary FCS

switch. Changes to the clock server value on the principal or primary FCS switch are

propagated to all switches in the fabric. For more information on using an NTP server,

and IPv6 considerations, see the HP StorageWorks Fabric OS 6.1.x administrator guide.

1. Log in to the switch using the default password: password.

44 Installing and configuring an 8Gb SAN Switch

2. Enter the tsClockServer command:

switch:admin> tsClockServer “<ntp1;ntp2>”

where ntp1 is the IP address or DNS name of the first NTP server, which the switch

must be able to access. The second ntp2 is the second NTP server and is optional. The

operand “<ntp1;ntp2>” is optional; by default, this value is LOCL, which uses the local

clock of the principal or primary switch as the clock server. The tsClockServer

command accepts multiple server addresses in either IPv4, IPv6, or DNS name formats.

When multiple NTP server addresses are passed, tsClockServer sets the first obtainable

address as the active NTP server. The rest will be stored as backup servers that can

take over if the active NTP server fails. The principal or primary FCS switch synchronizes

its time with the NTP server every 64 seconds.

switch:admin> tsClockServer

LOCLx

switch:admin> tsClockServer "132.163.135.131"

switch:admin> tsClockServer

132.163.135.131

switch:admin>

The following example shows how to set up more than one NTP server using a DNS

name:

switch:admin> tsClockServer "10.32.170.1;10.32.170.2;ntp.localdomain.

net"

Updating Clock Server configuration...done.

Updated with the NTP servers

Changes to the clock server value on the principal or primary FCS switch are propagated

to all switches in the fabric.

Verify the configuration

To confirm that the switch is configured and ready for use:

1. Check the LEDs to verify that all components are functional. For information about

LED patterns, see Table 10.

2. Issue the switchshow command from the workstation. This command provides information

about the switch and port status.

3. Issue the fabricshow command from the workstation. This command provides general

information about the fabric.

Back up the configuration

HP recommends regular backups to ensure that a recent configuration is available.

To back up the switch configuration to an FTP server:

1. Issue the configupload command.

2. Follow the prompts.

The command uploads the switch configuration to the server, making it available for

downloading to a replacement switch, if necessary. For detailed instructions on backing

up the configuration, see the HP StorageWorks Fabric OS administrator guide.

第四部分: 附Brocade光纤交换机划分Zone的案例及纠错

(一) 原因:通过光纤接入集中备份系统的Sun平台主机系统日志(/var/adm/messages)

频繁报错,报错信息如下:

……………………………………………..

Apr 14 16:15:34 cq97data1 fp: [ID 517869 kern.info]

NOTICE: fp(0): PLOGI to ca0e00 failed state=Packet

Transport error, reason=No Connection

Apr 14 16:15:34 cq97data1 fp: [ID 517869 kern.info]

NOTICE: fp(0): PLOGI to c90400 failed state=Packet

Transport error, reason=No Connection

Apr 14 16:15:34 cq97data1 fp: [ID 517869 kern.info]

NOTICE: fp(0): PLOGI to c90500 failed state=Packet

Transport error, reason=No Connection

Apr 14 16:15:34 cq97data1 fp: [ID 517869 kern.info]

NOTICE: fp(0): PLOGI to c90900 failed state=Packet

Transport error, reason=No Connection

……………………………………………..

(二) 要求:在集中备份系统SAN环境中的三个SAN Switch上建立Zone,把

HP,IBM和SUN的主机隔离起来。

(三) 实施前交换机情况:

三台光纤交换机(A:HP SW SAN Switch 2/16 PowerPak;B:两台Brocade Silk-

Worm 3800)都没有配置Zone,所有端口之间都可以互相访问。

其中,IBM设备使用了一台Brocade SilkWorm 3800(SwitchName:3800_up, DomainID:

201)上的port 10和11;

SUN设备使用了一台Brocade SilkWorm 3800(SwitchName:3800_up, DomainID:

201)上的port 1,2,12和13;

HP设备使用了一台Brocade SilkWorm 3800(SwitchName:3800_up, DomainID:

201)上的port 0,3,4,5,6,7,8,9和14及另一台Brocade SilkWorm

3800(SwitchName:3800_down, DomainID:202)上的port 0,1和14。

另外,Brocade SilkWorm 3800(SwitchName:3800_up, DomainID:201)上的port

15与大坪的交换机HPSW SAN Switch 2/16 PowerPak连接,port 7与另一台Brocade

SilkWorm 3800(SwitchName:3800_down, DomainID:202)上的port 7连接;

另一台Brocade SilkWorm 3800(SwitchName:3800_down, DomainID:202)上的

port 15与大坪的交换机HPSW SAN Switch 2/16 PowerPak连接。

(四) 实施过程:

建立三个Zone(HP_Zone_201,SUN_Zone_201和IBM_Zone_201),把属于不同系统的

设备按系统类型划分到这三个Zone里面。然后让Zone生效。

aliCreate "Switch_DP","1,0;1,14;1,15"

aliCreate "S3800_Down","202,0;202,1;202,7;202,14;202,15"

aliCreate "S3800_Up_IBM","201,15;201,10;201,11"

aliCreate "S3800_Up_SUN","201,15;201,1;201,2;201,12;201,13"

aliCreate

"S3800_Up_HP","201,15;201,0;201,3;201,4;201,5;201,6;201,7;201,8;201,9;201

,14"

zonecreate "Zone_IBM", "S3800_Up_IBM"

zoneAdd "Zone_IBM", "Switch_DP"

zonecreate "Zone_SUN", "S3800_Up_SUN"

zoneAdd "Zone_SUN", "Switch_DP"

zonecreate "Zone_HP","S3800_Up_HP"

zoneAdd "Zone_HP","Switch_DP"

zoneAdd "Zone_HP","S3800_Down"

cfgcreate "Zone_Cfg", "Zone_IBM;Zone_SUN;Zone_HP"

cfgenable "Zone_Cfg"

(五) 实施后交换机情况:

不同系统的设备按系统类型划分到三个Zone里面,下面列出三个Zone所包含的端

口:

Zone_HP

1,0;1,14;1,15 (注:Domain ID 为1的Port 0,14和15,下面同理可得)

201,15;201,0;201,3;201,4;201,5;201,6;201,7;201,8;201,9;201,14

202,0;202,1;202,7;202,14;202,15

Zone_SUN

1,0;1,14;1,15

201,15;201,1;201,2;201,12;201,13

Zone_IBM

1,0;1,14;1,15

201,15;201,10;201,11

从此,各个Zone之间无法互相访问,则Sun平台主机系统无法存取不在同一个Zone

的交换机其他端口,报错信息不再出现,问题得以解决。

附:以下为SUN主机无法找到以前可以访问的HP设备所报信息:

……………………………………………..

Apr 14 16:29:42 cq97data2 fctl: [ID 517869 kern.warning]

WARNING: 66211=>fp(0)::N_x Port with D_ID=c90300,

PWWN=50060b0000229fee disappeared from fabric

Apr 14 16:29:42 cq97data2 fctl: [ID 517869 kern.warning]

WARNING: 66215=>fp(0)::N_x Port with D_ID=c90800,

PWWN=50060b0000229e10 disappeared from fabric

Apr 14 16:29:42 cq97data2 fctl: [ID 517869 kern.warning]

WARNING: 66219=>fp(0)::N_x Port with D_ID=c90900,

PWWN=50060b0000229ff0 disappeared from fabric

Apr 14 16:29:42 cq97data2 fctl: [ID 517869 kern.warning]

WARNING: 66224=>fp(0)::N_x Port with D_ID=c90500,

PWWN=50060b0000229fb4 disappeared from fabric

……………………………………………..

总结: 在一个SAN环境下的所有San Switch上划分Zone,只需要所有交换机都有

相关的License,在其中任意一台划分好并将配置应用后,其他所有的交换机都会

将此配置应用到它们上面去。

Show more