- 论坛徽章:
- 0
|
老的AMS 500的数据迁移到新的AMS 1000
1. 新的存储AMS1000安装配置
• 安装配置AMS1000;
• 按照目前AMS500的LUN的大小配置AMS1000的LUN(LUSE对应LUSE);
• 将对应的LUN映射到端口
2. Prepare TrueCopy
• 通过SNM,确认两套存储的TrueCopy软件功能已经打开(Enable).
• 两套存储设置Command Device.
• Command Device不应该被HDLM的管理.
• 通过光纤将两套存储的对应端口连接
• 通过SNM建立Remote Path
• 选择一台服务器按照CCI软件,该服务器必须通过光纤能够看到两套存储的Command Device
•
3. 安装和配置复制控制软件CCI (以下以AIX为例,其他平台类似)
If you are installing CCI from CD-ROM, please use the RMinstsh and RMuninst scripts on the CD-ROM to automatically install and uninstall the CCI software.
All CCI commands in the /HORCM/usr/bin directory
All CCI log directories in the /HORCM/log* directories
3.1. Copy all files from the installation medium:
# mount /dev/cd0 /cdrom
# /cdrom/RMinstsh
3.2. Execute the HORCM installation command:
# /HORCM/horcminstall.sh
3.3. Verify installation of the proper version using the raidqry command:
# raidqry –h
Model: RAID-Manager/AIX
Ver&Rev: xx-xx-xx/xx
Usage: raidqry [options]
3.4. Defining the Configuration Definition File
#cp /HORCM/etc/horcm.conf /etc/horcm0.conf
#cp /HORCM/etc/horcm.conf /etc/horcm1.conf
Edit horcm0.conf and horcm1.conf. (样本)
#/************************* For HORCM_MON*****************************/
HORCM_MON
#ip_address service poll(10ms) timeout(10ms)
SERVER_CCI 11000/udp 3000 6000
#/************************** For HORCM_CMD ***************************/
HORCM_CMD
#dev_name dev_name dev_name
/dev/rhdisk3
#/************************** For HORCM_LDEV **************************/
HORCM_LDEV
#dev_group dev_name Serial# CU:LDEV(LDEV#) MU#
VG01 noteapp01 77040211 40 0
VG01 noteapp02 77040211 41 0
#
#/************************* For HORCM_INST ***************************/
HORCM_INST
#dev_group ip_address service
VG01 SERVER_CCI 11001/udp
# cat /etc/horcm1.conf
#/************************* For HORCM_MON ****************************/
HORCM_MON
#ip_address service poll(10ms) timeout(10ms)
SERVER_CCI 11001/udp 3000 6000
#/************************** For HORCM_CMD ***************************/
HORCM_CMD
#dev_name dev_name dev_name
/dev/rhdisk4
#/************************** For HORCM_LDEV **************************/
HORCM_LDEV
#dev_group dev_name Serial# CU:LDEV(LDEV#) MU#
VG01 noteapp01 77040211 50 0
VG01 noteapp02 77040211 51 0
#
#/************************* For HORCM_INST ***************************/
HORCM_INST
#dev_group ip_address service
VG01 SERVER_CCI 11000/udp
4. 启动CCI(RAID Manager)
#horcmstart.sh 0 1
5. 设置环境变量
# HORCMINST=0
# export HORCMINST
# HORCC_MRCF=1 *For TrueCopy
# export HORCC_MRCF
6. 使用命令行测试TrueCopy
• Execute the pairdisplay command to verify the configuration.
# pairdisplay -g VG01
此时TrueCopy pair VG01的状态为SMPL(Simple).
• 建立TrueCopy pair VG01
# paircreate -g VG01 –f never –vl –c 15
此时用pairdisplay命令看到 VG01的状态为COPY,AMS正在进行初始拷贝。初始拷贝完成后,状态转为PAIR。
• Umount Source 磁盘,确保数据已写到磁盘。
• 分开TrueCopy pair VG01.
# pairsplit -g VG01 -rw
此时TrueCopy pair VG01的状态为PSUS.
• 将Target磁盘 mount到系统上,检查磁盘上的文件。与Source磁盘上的相同,磁盘成功完成迁移功能。
• #chdev –l hdisk1 –a pv=yes;
• #chdev –l hdisk2 –a pv=yes;
• #importvg –y datavg hdisk1;
• #lsfs检查文件系统;
•
•
在目标盘不使用该部分空间的情况下再执行
• 重新同步TrueCopy pair VG01.
# pairresync -g VG01
此时TrueCopy pair VG01的状态很快就变为PAIR,说明磁盘只是做了一个增量拷贝,不需要作初始拷贝。
• 将Source磁盘mount到系统上。检查Source磁盘的内容,应该看不到在Target磁盘上的修改。修改Source磁盘上的数据。
• Umount Source 磁盘,确保数据已写到磁盘。
• 分开TrueCopy pair VG01.
• 将Target磁盘 mount到系统上,检查磁盘上的文件。应该只看到在Source 磁盘上的修改。
7. CCI Help
• Use the Parameter –h for an operation to displays Help/Usage and version information.
# paircreate -h
# pairdisplay -h
大家看看有啥问题没?
[ 本帖最后由 qqadmini 于 2008-1-24 10:07 编辑 ] |
|