1、hacmp55在AIX53上用IP替换加磁盘心跳HACMP双机安装指导书替换方式HACMP 5.5 for AIX 5.3 1.安装HACMP软件及补丁包1.把HA5.5的安装盘放到光驱2.用ROOT用户执行smitty install_all 选择cd光驱 按F4后出来软件列表 除了cluster.hativoli、cluster.haview、及后缀带japanese的以外,所有包都安装。3.打HACMP5.5的补丁,在JDEDATA1机器里的/aixbu/habu5.5目录下注:安装软件包时需要把ACCEPT new license agreements”为yes 有时候提示安装失败,可
2、以忽略、 安装完所有补丁包后机器一定要重新启动! 2.HACMP的配置1.IP的规划JDEDATA1JDEDATA2boot172.16.120.1172.16.120.2service172.16.120.3在二台机器的/etc/hosts文件中分别写入以下内容172.16.120.1 jde1_boot JDEDATA1172.16.120.2 jde2_boot JDEDATA2172.16.120.3 jde_svc在二台机器的/usr/es/sbin/cluster/etc/rhosts文件中写入172.16.120.1172.16.120.2172.16.120.32.卷组的规划
3、建立一个共享VG与一个心跳VG (1)(建磁盘心跳的vg,该vg必须是concurrent类型的vg) 在JDEDATA1上执行#mkvg -C -y heartvg hdisk2 (注意:在64bit 下只能Enhanced Concurrent volume groups) 在JDEDATA2上执行#importvg -y heartvg hdisk2 (注意二边VG的号是否相同) (2)建立HA资源组控制的VG 在JDEDATA1上 #mkvg -n -y oradatavg hdisk1 在JDEDATA2上 #importvg -y oradatavg hdisk1 #chvg -a
4、 n oradatavg3.Extended Topology Configuration(以下操作全在一台机器上操作)增加一个cluster定义菜单导航:Smit HACMP - Extended Configuration - Extended Topology Configuration - Configure an HACMP Cluster - Add/Change/Show an HACMP Cluster1)Extended ConfigurationExtended Topology ConfigurationConfigure an HACMP ClusterAdd/Chan
5、ge/Show an HACMP Cluster* Cluster Name jdedata配置集群的各个节点添加节点Smit HACMP - Extended Configuration - Extended Topology Configuration - Configure HACMP Nodes-Add a Node to the HACMP ClusterExtended Configuration Extended Topology Configuration Configure HACMP Nodes Add a Node to the HACMP Cluster* Node N
6、ame JDEDATA1 Communication Path to Node jde1_boot Node Names 必须是各个节点的hostnames,Communication Path to Node为每个节点的boot IP。 按照相同操作增加另一个节点JDEDATA2增加拓扑网络添加ether网络菜单导航:Smit HACMP - Extended Configuration - Extended Topology Configuration - Configure HACMP Networks - Add a Network to the HACMP Cluster - eth
7、er显示以下界面:Network Name 自定义,输入 ethernetNetmask 输入 255.255.255.0 (与主网卡配置的netmask保持一致)Enable IP Address Takeover via IP Aliases 选择 No添加 磁盘协调网络菜单导航:Smit HACMP - Extended Configuration - Extended Topology Configuration - Configure HACMP Networks - Add a Network to the HACMP Cluster - diskhb显示以下界面:添加jdedat
8、a1的boot IP菜单导航:Smit HACMP - Extended Configuration - Extended Topology Configuration - Configure HACMP Communication Interfaces/Devices - Add Communication Interfaces/Devices - Add Pre-defined Communication Interfaces and Devices - Communication Interfaces - ethernet显示以下界面:IP Label/Address 必须是在/etc/
9、hosts里面配置的jde1_boot Node Name 选择jdedata1上面的操作增加了一个jdedata1的boot IP:jde1_boot添加jdedata2的boot IP菜单导航:Smit HACMP - Extended Configuration - Extended Topology Configuration - Configure HACMP Communication Interfaces/Devices - Add Communication Interfaces/Devices - Add Pre-defined Communication Interface
10、s and Devices - Communication Interfaces - ethernet显示以下界面:IP Label/Address 必须是在/etc/hosts里面配置的jde2_boot Node Name 选择 jdedata2上面的操作增加了一个jdedata2的boot IP:jde2_boot添加jdedata1和jdedata2的磁盘通信配置菜单导航:Smit HACMP - Extended Configuration - Extended Topology Configuration - Configure HACMP Communication Interf
11、aces/Devices - Add Communication Interfaces/Devices -Add Discovered Communication Interface and Devices(具体操作参照磁盘心跳的配置网页)4.配置资源1.配置应用菜单导航:Smit HACMP - Extended Configuration - Extended Resource Configuration - HACMP Extended Resources Configuration - Configure HACMP Applications - Configure HACMP App
12、lication Servers - Add an Application Server显示以下界面:Server Name 可以任意命名,输入ora_appStart Script 设置为 /opt/oracle/orastart.sh” Stop Script 设置为 /opt/oracle/orastop.sh” 上面的操作增加了应用 ora_app2.配置service IP添加Service IP菜单导航:Smit HACMP - Extended Configuration - Extended Resource Configuration - HACMP Extended Res
13、ources Configuration - Configure HACMP Service IP Labels/Addresses - Add a Service IP Label/Address - Configurable on Multiple Nodes - Ethernet显示以下界面:IP Label/Address 选择/etc/hosts 中定义的 jde_svc3.添加集群资源组菜单导航:Smit HACMP - Extended Configuration - Extended Resource Configuration - HACMP Extended Resourc
14、e Group Configuration - Add a Resource Group显示以下界面:Resource Group Name 可以任意命名,输入jdedata_rgpParticipating Nodes (Default Node Priority) 选择jdedata1 jdedata2“Startup Policy” 选择 Online Using Distribution Policy“Fallover Policy” 选择 Fallover To Next Priority Node In The List“Fallback Policy” 选择 Nerver Fal
15、lback上面的操作增加了集群资源组 jdedata_rgp4.配置集群资源组菜单导航:Smit HACMP - Extended Configuration - Extended Resource Configuration - HACMP Extended Resource Group Configuration - Change/Show Resources and Attributes for a Resource Group - ora_res显示以下界面service ip label 选择已定义好的jde_svcApplication Servers 是已经建好的应用,必须指定,
16、选择ora_appVolume groups 是已经建好的共享磁盘逻辑卷,必须指定,需要选择oradatavg上面的操作配置了资源组 jdedata_rgp5.同步集群配置菜单导航:Smit HACMP - Extended Configuration - Extended Verification and Synchronization显示以下界面:Verify, Synchronize or Both 选择 BothAutomatically correct errors found during verification? 选择 YesForce synchronization if v
17、erification fails? 选择 NOVerify changes only? 选择 NOLogging 选择 Standard如果成功则显示OK,否则请检查返回的错误日志,排除相关错误。启动双机如下smitty clstart:停俩个节点hacmp双机 smitty clstop如果把Start now, on system restart or both 选项修改 restar aix每次重启AIX系统就会自动拉起cluster进程,(数据库和业务没有搞好之前不建议修改)从jsejdea1切换到jsejdea2上如图:要把Select an Action on Resource Groups 选项修改为:Move Resource Groups 查看双机进程:Lssrc g cluster查看浮动ipNetstat in 双机启动后以172.16.120.3 作为主机登陆,不启动CLUSTER 的时候按照各自的地址登陆
copyright@ 2008-2022 冰豆网网站版权所有
经营许可证编号:鄂ICP备2022015515号-1