HACMPXD GLVM 安装配置手册v1.0

  • 格式:doc
  • 大小:1.85 MB
  • 文档页数:45

HACMP/XD GLVM 安装配置手册v1.0目录1环境描述 (4)2配置集群 (4)2.1安装软件 (4)2.2创建基本cluster (7)2.2.1准备网络环境 (7)2.2.2添加 cluster (8)2.2.3添加 nodes (8)2.2.4添加两个 sites (9)2.2.5添加两个networks (9)2.2.6添加communication interfaces (9)2.3创建resource group (10)2.3.1创建app server (10)2.3.2创建monitor (11)2.3.3创建Resource Group (12)2.4HACMP 同步验证 (13)3配置 GLVM (14)3.1创建RPV server (P550B) (14)3.2创建 RPV client (P550A) (15)3.3创建 RPV server (P550A) (17)3.4创建 RPV client (P550B) (18)3.5创建 VG (19)3.6Create LV (20)3.7创建 FS (24)3.8创建GLVM copies (25)3.9在P550B上 Import GMVG (27)3.10修改 PowerHA Resouce Group 属性 (28)3.11PowerHA 同步 (29)4启动和测试 (30)4.1启动 cluster (30)4.2测试 resource move (30)5Q&A (Synchronous) (31)5.1Clstat,cldump error (31)5.2Hacmp Verify Error 1 (32)5.3Hacmp Verify Error 2 (33)5.4After fallover or fallback, find stale state (33)6转换 Sync GLVM 为Async Mode (34)6.1分配 PVs to mirror pool (34)6.2改变vg属性 (35)6.3改变 LV属性 (36)6.4添加 aio_cache LV (caching of asynchronous write request) (39)6.5转换 Mirror Pool为 Asynchronous Mirroring (41)6.6改变Resource Group属性 (41)6.7在P550B再次importvg datavg2 (42)6.8PowerHA 同步验证 (43)7Q&A (Asynchronous) (43)7.1PowerHA Verify Error 1 (43)7.2Varyonvg failed 1 (44)7.3Varyonvg failed 2 (44)本文档仅供研发内部使用,如需在生产环境使用,请先对指导书各步骤进行验证1环境描述两个节点的集群,软件硬件配置如下:1.Power5 5502.AIX 6103-sp33.PowerHA SystemMirror 6.1 sp14.2个 IP Networks5.每个节点2 disks(DS5020):✓一个是rootvg, 另外一个为GLVM testing✓磁盘在集群节点间不共享✓一个datavg22配置集群2.1安装软件#smitty install_latest上图为预安装,如没有报错,则将PREVIEW only? (install operation will NOT occur)修改为no ,则正式安装开始。

2.2创建基本cluster我们配置基本cluster步骤如下:1.舔加1个新的cluster(glvm)2.添加2个 nodes (P550A, P550B)3.添加2个sites (BeiJing, ShangHai)✓P550A 对应BeiJing site✓P550B 对应ShangHai site4.添加2 networks ( XD_ip, and XD_data)5.在network中添加communication interfaces 本示例cluster 的topology 配置如 Table1-2.如果你想更详细的集群配置, 请参考 $$2.2.1. 2.2.1准备网络环境2.2.2添加 cluster2.2.3添加 nodes2.2.4添加两个 sites2.2.5添加两个networks2.2.6添加communication interfaces2.3创建resource group在创建前先要将脚本编辑好:#mkdir /usr/es/script如:vi oracle_stop修改脚本属性:#chown –R oracle:dba oracle_start#chown –R oracle:dba oracle_stop#chown –R oracle:dba start.sh#chown –R oracle:dba stop.sh修改权限:#chmod 777 oracle_start# chmod 777 oracle_stop# chmod 777 start.sh# chmod 777 stop.sh查看脚本属性如下:#ls –l-rwxr-x--x 1 oracle dba 199 Nov 03 16:20 oracle_start -rwxr-x--x 1 oracle dba 204 Nov 03 15:58 oracle_stop -rwxr-x--x 1 oracle dba 374 Nov 03 16:12 start.sh-rwxr-x--x 1 oracle dba 359 Nov 03 15:58 stop.sh 2.3.1创建app server2.3.2创建monitor2.3.3创建Resource Group2.4HACMP 同步验证3配置 GLVM首先检查各个节点的磁盘状态3.1创建RPV server (P550B) 在P550B上创建RPV server检查 RPV server.配置P550B Remote Physical Volume Server Site Name3.2创建 RPV client (P550A)3.3创建 RPV server (P550A)检查 the RPV server.3.4创建 RPV client (P550B)P550B创建RPVclient前,将之前的P550A的rpvserver定义为define状态3.5创建 VG我们在P550A上 (Site BeiJing)创建vg, 我们需要将 rpvserver0(P550B) and rpvclient我们将vg的vgid设置为 100.3.6Create LV3.7创建 FS3.8创建GLVM copies3.9在P550B上 Import GMVG此时, P550B的RPV server 和P550A的RPV client 都为available. 在 P550Bimportvg datavg2之前, 需改变他们的状态为 define 并且 varyoffvg datavg2 , 然后改变P550A此时我们可以importvg3.10修改 PowerHA Resouce Group 属性在更新Resource Group前,我们需要umount datavg2的所有文件系统,然后varyoffvg datavg2。

用mkdev –l ***改变2个节点的所有RPV server和client为define状态3.11PowerHA 同步4启动和测试4.1启动 cluster4.2测试 resource move5Q&A (Synchronous)5.1Clstat,cldump errorAction:It is a bug for PowerHA installed in AIX6. Please update snmpd config file (/etc/snmpdv3.conf.5.2Hacmp Verify Error 1Clear /usr/es/sbin/cluster/etc/rhosts in two nodes, and add blow ips in it.10.63.209.18110.63.209.18210.63.209.18310.63.209.1845.3Hacmp Verify Error 2Action:Need to configure Remote Physical Volume Server Site Name for future, please refer to Chapter 3.3.5.4After fallover or fallback, find stale stateAction:6转换 Sync GLVM 为Async Mode为转换 Sync GLVM 为Async, 我们需要保证 cluster 为offline ,并且手工启动P550B6.1分配 PVs to mirror pool用lsvg -P vgname在本地和远程查看pv和检查mirror pool信息6.2改变vg属性6.3改变 LV属性6.4添加 aio_cache LV (caching of asynchronous write request)6.5转换 Mirror Pool为 Asynchronous Mirroring6.6改变Resource Group属性6.7在P550B再次importvg datavg2此时,P550B的RPV server和P550A的RPV client为available,在P550B上importvg 前,我们需要改变P550B的RPV server和P550A的RPV client为define,在varyffvg6.8PowerHA 同步验证7Q&A (Asynchronous)7.1PowerHA Verify Error 1Action:Change the strict attribution of SHaio to superstrict.7.2Varyonvg failed 17.3Varyonvg failed 2Action:。