Chinaunix首页 | 论坛 | 博客
  • 博客访问: 20173
  • 博文数量: 10
  • 博客积分: 1445
  • 博客等级: 上尉
  • 技术积分: 60
  • 用 户 组: 普通用户
  • 注册时间: 2008-09-07 21:44
文章分类
文章存档

2012年(9)

2008年(1)

我的朋友

分类:

2012-12-21 14:14:52


目录


规划和Zone划分

采用最简单的方式,(参见IBM System Storage DS Storage Manager Version 10 Copy Services User's Guide,Intra-site方式)。

 

             image

                                                               图 1

  划分:

    两个光纤交换机之间没有连接(no ISL),每个交换机分为2个zone,一个zone用于提供正常的数据访问,另一个zone用于主备阵列之间进行数据复制,实际上,相对于常规的交换机配置,该配置就是多了一个用于主备阵列之间进行数据复制的Zone.

   在本例中,各个交换机配置如下:

2948_B24_A:

  zone: Data_ctrlA

    1,0; 1,1; 1,2; 1,3; 1,4; 1,6

    (其中,1,0; 1,1; 1,2; 1,3;对应于四台主机的一个HBA卡,1,4对应主磁盘阵列的A控制器的port1, 1,6对应备磁盘阵列的A控制器的port1,这个zone就是用于对外提供对主备两台阵列的A控制器的正常访问)

   zone: mir_ctrlA

     1,5; 1,7

(其中, 1,5对应主磁盘阵列的A控制器的port2, 1,7对应备磁盘阵列的A控制器的port2,这个zone就是用于提供主备两台阵列的A控制器之间的数据复制)

2948_B24_B:

zone: Data_ctrlB

   1,0; 1,1; 1,2; 1,3; 1,4; 1,6

(其中,1,0; 1,1; 1,2; 1,3;对应于四台主机的另一个HBA卡,1,4对应主磁盘阵列的B控制器的port1, 1,6对应备磁盘阵列的B控制器的port1,这个zone就是用于对外提供对主备两台阵列的B控制器的正常访问)

zone: mir_ctrlB

    1,5; 1,7

(其中, 1,5对应主磁盘阵列的B控制器的port2, 1,7对应备磁盘阵列的B控制器的port2,这个zone就是用于提供主备两台阵列的A控制器之间的数据复制)

交换机配置完毕后,开始进行磁盘阵列的配置。


划分和Remote Mirror配置

  首先划分主磁盘阵列DS5020-right.然后使用两台DS5020配置成Enhanced Remote Mirror.

    主磁盘阵列DS5020-Right划分完毕后的Logical Drive如下:

clip_image004

   划分完毕后,做logical drive到主机的mapping.但是在备磁盘阵列上不做mapping,这样四台主机就不能看到备磁盘阵列的logical drive,而只能看到主磁盘阵列的logical drives.

   然后,检查两台磁盘阵列是否配置了Remote Mirror的License:

   在Storage Manager的这个位置:

clip_image006

   或是检查Premium Feature, 查看Enhanced Remote Mirroring 是否是Enabled,如果没有,需要购买License,并注册,Enable.

clip_image008 

  如果是Enabled/Deactivated,那么,只需要Active ERM即可。

    ERM需要在主备两个磁盘阵列上都能已经Enabled。

   Enabled之后,开始激活ERM功能:

 

1. 从菜单中选择Storage subsystem -> Remote Logical drive Mirroring ->Activate:

   出现如下画面,选择在现有的array上建立一个mirror的reposity逻辑卷:

image

 

2.

clip_image012

   提示注意事项, 并准备在现有磁盘上创建两个Repository:

clip_image014

  (创建前)

 

   3. 点击OK,开始创建:

   创建后:

clip_image016

 

   4. 在备用的磁盘阵列上也进行同样的操作,激活Remote Logical Drive mirroring,并建立两个Mirror Repository.

 

   5. 准备创建DS5020的logical drive remote mirror pair:

      在DS5020-right(Primary)上创建所需要的逻辑卷,同时在DS5020-left(Secondary)上也创建能够使用的逻辑卷,大小和DS5020-right上的一样大或稍微大一点。如前所述,DS5020-Right上的Logical drive做mapping 而DS5020-Left上的Logical Drive不做mapping

    选择需要创建Remote mirror的逻辑卷,开始创建mirror:

clip_image018

    选择Create Remote Logical Drive Mirror.

    出现Wizard:

clip_image020

    选择Next:

clip_image022

    选择DS5020-Left:

clip_image024

   可能要求输入密码,选择备用磁盘阵列上的相应的lun.

   选择写入同步方式:

clip_image026

   选择中断后重新同步的方式:

clip_image028

   输入yes确定更改:

clip_image030

   输入密码:

clip_image032

   完成一个配置:

clip_image034

   所有需要的逻辑卷都建立镜像后:

clip_image036

 

clip_image038

   查看菜单上新出现的命令:

clip_image040

    ”Test Mirror Communication”

clip_image042

    至此,基本的mirror配置完成。

 

    在配置两台磁盘阵列的Mapping时, 一台机器上(备用)不使用Mapping,另一台机器上使用Mapping(主磁盘).这样,Host 上就只能看到Primary 磁盘阵列的磁盘,而不能看到备用磁盘阵列上的磁盘。

    需要切换时, 修改映射,将备用磁盘阵列上的磁盘切换到主机端,使主机不能看到Primary的磁盘阵列,而只能看到Secondary的磁盘阵列。

 

  首先在每台机器上检查pv的列表,保存到文件中,如:

# more /tmp/pv.lst

hdisk0 00f71b2288e7ab2f rootvg active

hdisk1 00f71b22db02c285 rootvg active

hdisk2 00f71b2bda9709a5 None

hdisk3 00f71b22dabfab65 vgdb2u01 active

hdisk4 00f71b2bdab97b9c vgoradata concurrent

 

  #varyoffvg vgdb2u01, vgdb1u01等各个vg,停止hacmp从而停止concurrentvg。

使用#mpio_get_config –Av获取现有主磁盘阵列的磁盘的信息。

Frame id 0:

Storage Subsystem worldwide name: 60ab80048676200004af8e625

Controller count: 2

Partition count: 1

Partition 0:

Storage Subsystem Name = 'DS5020-right'

hdisk# LUN # Ownership User Label

hdisk2 0 A (preferred) db1-u01

hdisk3 1 B (preferred) db2-u01

hdisk4 2 A (preferred) db-concur

然后删除主机上主磁盘阵列上的磁盘定义:

#rmdev -dl hdisk2

hdisk2 deleted

# rmdev -dl hdisk4

hdisk4 deleted

删除掉各个主机上的磁盘后,开始在磁盘阵列上进行主备切换。

在主磁盘阵列上删除磁盘映射:

clip_image044

删除后,所有相关的lun应该在undefined Mappings中。这样确保各个主机不能够看到主磁盘阵列的磁盘。

在备磁盘阵列(DS5020-left)上添加磁盘映射,在备用磁盘阵列上按照对应的关系,重新映射各个Lun到各个主机:

clip_image046

这样,保证备用磁盘阵列在切换过去后,各个主机能正确识别新的磁盘。

Complete the following steps to promote a secondary logical drive to the primary logical drive role:

1. Select the secondary logical drive in the Logical view of the secondary Subsystem Management window. Then, either click Logical Drive → Remote Mirroring → Change → Role to Primary, or right-click the drive and click Change → Role to Primary. The Change to Primary window opens.

2. Click Yes. The secondary logical drive is promoted to the primary logical drive role in the remote logical drive mirror.

When the controller owner of the primary logical drive is contacted, the primary logical drive is automatically demoted to the secondary logical drive role in the remote logical drive mirror.

依次切换每个lun,直到所有lun切换完成。

检查无误后,使用#cfgmgr –v识别各个主机上的磁盘。

然后和保存的pv标识进行比较,pvid应该和主磁盘阵列的磁盘的pvid是一样的。如果有错误,检查并更正。

使用#mpio_get_config –Av 获得磁盘信息。

#cfgmgr

# lspv

# mpio_get_config -Av

Frame id 0:

Storage Subsystem worldwide name: 60ab8005093ba00004cae52da

Controller count: 1

Partition count: 1

Partition 0:

Storage Subsystem Name = 'DS5020-left'

hdisk# LUN # Ownership User Label

hdisk2 0 A (preferred) db1-u01

hdisk3 1 A (non-preferred) db2-u01

hdisk4 2 A (preferred) db-concur

#

使用varyonvg 激活各个vg,启动hacmp激活concurrentvg,并启动应用,检查应用状态。

在测试完成后,依照同样的次序,将磁盘切换回原来的主备状态。

阅读(441) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~