1、PowerHA7.1.3配置文档2016-8-22项 目 名 称IBM PowerHA 7.1 最 新 配 置 文 档项 目 经 理文 档 编 号:文 档 版 本 号:V1.0文 档 变 更 记 录版 本 编 号 版 本 日 期 作 者 说 明V1.0 2016-8-22 jiang 起草审 核 批 准批准代表 签字 时间版 权 说 明目录第一章 版本与区别 4第二章 安装前准备 42.1 修改 hosts 文件 42.2 修改 rhosts 文件 52.3 准备 Repository disk(心跳盘) .52.4 系统包需求 5第三章 安装 HA 软件 63.1 解压 zip 文件 63.
2、2 挂载 ISO 文件 .63.3 安装 HA 软件包 6第四章 配置过程 64.1 新建 cluster 64.2 配置 repository disk74.3 配置 persistent ip .74.4 修改网络 84.5 添加 Applications 脚本 .84.6 配置服务 IP 94.7 创建资源组 94.8 修改资源组属性 .104.9 验证并同步配置 .11第五章 状态检查 125.1 查看进程 125.2 查看服务 IP 125.3 查看卷组 13第六章 HA 的启动/停止 .136.1 HA 启动 .136.2 HA 停止 .13第七章 常用命令 14第一章 版本与区别
3、 操作系统:AIX7100-03-05 HA 版本:7.1.3 sp4 PowerHA7.1 与 PowerHA6.1 配置区别 hosts 文件要有对应主机名的 IP 配置 rhosts 文件 心跳盘变为 Repository Disks 操作菜单的名称与顺序差异第二章 安装前准备2.1 修改 hosts 文件192.168.10.13 INT3boot192.168.11.16 TEST-INT310.10.10.69 INT3pre10.10.10.70 INT3vip192.168.10.14 INT4boot192.168.11.17 TEST-INT410.10.10.71 INT
4、4pre 10.10.10.72 INT4vip重要:Hosts 文件里的 IP 列表对应的网络名,其中一个必须为对应服务器的hostname,如上:TEST-INT3,TEST-INT42.2 修改 rhosts 文件192.168.10.13192.168.11.1610.10.10.6910.10.10.70192.168.10.14192.168.11.1710.10.10.7110.10.10.722.3 准备 Repository disk(心跳盘)心跳盘只需要对磁盘生成 PVID 即可,无需建立 VG;# chdev -l hdisk4 -a pv=yes2.4 系统包需求bos
5、.adt.lib bos.adt.libm bos.adt.syscalls bos.ahafs bos.clvm.enh bos.cluster bos.data .tcp.client .tcp.server bos.rte.SRC bos.rte.libc bos.rte.libcfg bos.rte.libcur bos.rte.libpthreads bos.rte.lvm bos.rte.odm cas.agent rsct.basic.rte pat.basic.hacmp pat.clients.hacmp第三章 安装 HA 软件3.1 解压 zip 文件#jar -xvf h
6、a7.1.3.3.zip3.2 挂载 ISO 文件#loopmount -i /tmp/powerha/ha7.1.3.3/POWERHA7.1.3.iso -o “-V cdrfs -o ro “ -m /mnt3.3 安装 HA 软件包可以安装所有 HA 软件包;最简安装包为:Cluster.es.clientCluster.es.serverCluster.es.cspoc第四章 配置过程4.1 新建 cluster#smitty hacmp 或 sysmirrorCluster Nodes and NetworksStandard Cluster DeploymentSetup a C
7、luster, Nodes and NetworksEntry Fields * Cluster Name TEST-INT3_cluster New Nodes (via selected communication paths) TEST-INT4 +Currently Configured Node(s) TEST-INT34.2 配置 repository diskCluster Nodes and NetworksManage Repository DisksAdd a Repository Disk* Repository Disk (00031d8c4f1ae72e) +4.3
8、配置 persistent ipCluster Nodes and NetworksManage NodesConfigure Persistent Node IP Label/AddressesAdd a Persistent Node IP Label/AddressEntry Fields* Node Name TEST-INT3* Network Name net_ether_01 +* Node IP Label/Address INT3pre +Netmask(IPv4)/Prefix Length(IPv6) *分别定义两个永久 IP4.4 修改网络默认四个本地 IP 分别为四个
9、网络,如 boot1 是net_ether_01,boot2 是 net_ether_02,boot3 是net_ether_03,boot4 是 net_ether_04。Cluster Nodes and NetworksManage Networks and Network InterfacesNetwork InterfacesChange/Show a Network Interfaces| Select a Network to Change/Show | net_ether_01 (192.168.10.0/27) | net_ether_02 (192.168.11.0/27)
10、 | net_ether_03 (192.168.10.0/27) | net_ether_04 (192.168.11.0/27) |4.5 添加 Applications 脚本Cluster Applications and ResourcesResourcesConfigure User Applications (Scripts and Monitors)Application Controller ScriptsAdd Application Controller Scripts* Application Controller Name ngbilling_app* Start Sc
11、ript /usr/sbin/cluster/uti* Stop Script /usr/sbin/cluster/utiApplication Monitor Name(s) +Application startup mode background +4.6 配置服务 IPCluster Applications and ResourcesResourcesConfigure Service IP Labels/AddressesAdd a Service IP Label/AddressEntry Fields* IP Label/Address INT3vip +Netmask(IPv4
12、)/Prefix Length(IPv6) * Network Name net_ether_014.7 创建资源组Cluster Applications and ResourcesResource GroupsAdd a Resource Group* Resource Group Name INT3rg* Participating Nodes (Default Node Priority) TEST-INT3 TEST- +Startup Policy Online On Home Node O +Fallover Policy Fallover To Next Prio +Fallb
13、ack Policy Never Fallback +4.8 修改资源组属性Cluster Applications and ResourcesResource GroupsChange/Show Resources and Attributes for a Resource GroupTOP Entry FieldsResource Group Name INT3rgParticipating Nodes (Default Node Priority) TEST-INT3 TEST-Startup Policy Online On Home Node OFallover Policy Fal
14、lover To Next PrioFallback Policy Never FallbackService IP Labels/Addresses INT3vip +Application Controllers TEST_app +Volume Groups datavg +Use forced varyon of volume groups, if necessary false +Automatically Import Volume Groups false +4.9 验证并同步配置Cluster Nodes and NetworksVerify and Synchronize C
15、luster Configuration+-+| Verify and Synchronize Cluster Configuration | | Move cursor to desired item and press Enter. Use arrow keys to scroll. | | | Any time you change the cluster configuration, those changes | must be propagated to all nodes in the cluster. PowerHA SystemMirror w | perform a set
16、 of verification checks to make sure the configuration | is viable. | | Depending on the nature of the changes, this operation can disrupt | the applications currently under PowerHA SystemMirror control. | | Press enter when you are ready to begin. | | F1=Help F2=Refresh F3=Cancel | F8=Image F10=Exi
17、t Enter=Do |F1| /=Find n=Find Next |F9+-+| ARE YOU SURE? | | Continuing may delete information you may want | to keep. This is your last chance to stop | before continuing. | Press Enter to continue. | Press Cancel to return to the application. | | F1=Help F2=Refresh F3=Cancel |F1| F8=Image F10=Exit
18、 Enter=Do |第五章 状态检查5.1 查看进程# lssrc -g cluster Subsystem Group PID Status clstrmgrES cluster 4522068 activeclevmgrdES cluster 5373968 activeclinfoES cluster 6226384 active*已启动三个进程5.2 查看服务 IP# ifconfig aen4: flags=1e084863,118c0inet 10.10.10.70 netmask 0xffffffe0 broadcast 10.10.10.95inet 192.168.10.1
19、3 netmask 0xffffffe0 broadcast 192.168.10.31tcp_sendspace 262144 tcp_recvspace 262144 rfc1323 1en5: flags=1e084863,18c0inet 192.168.11.16 netmask 0xffffffe0 broadcast 192.168.11.31inet 10.10.10.69 netmask 0xffffffe0 broadcast 10.10.10.95tcp_sendspace 262144 tcp_recvspace 262144 rfc1323 1lo0: flags=e
20、08084b,c0inet 127.0.0.1 netmask 0xff000000 broadcast 127.255.255.255inet6 :1%1/0tcp_sendspace 131072 tcp_recvspace 131072 rfc1323 1*服务 IP 已经启动5.3 查看卷组#lspv*相应的卷组已经被 HA 带起第六章 HA 的启动/停止6.1 HA 启动#smitty clstartEntry Fields* Start now, on system restart or both now +Start Cluster Services on these nodes
21、 TEST-INT2,TEST- +* Manage Resource Groups Automatically +BROADCAST message at startup? false +Startup Cluster Information Daemon? true +Ignore verification errors? false +Automatically correct errors found during Interactively +6.2 HA 停止#smitty clstopEntry Fields* Stop now, on system restart or bot
22、h now +Stop Cluster Services on these nodes TEST-INT2,TEST- +BROADCAST cluster shutdown? false +* Select an Action on Resource Groups Bring Resource Groups +第七章 常用命令 重启 HA 进程#stopsrc -s clcomd; sleep 2; startsrc -s clcomd 查看 repository disks(心跳盘)#clmgr query repository 查看 HA 配置信息#/usr/es/sbin/cluster/utilities/cltopinfo