1、P51A主机HACMP53配置步骤一.硬件配置 1.存储设备 与现有的DS4300相连接,并且划分出1个datavg 二.软件配置1.AIX操作系统版本5.32.HACMP版本5.3 三IP配置YH1YH2boot192.168.70.125192.168.70.126stdby192.168.80.60192.168.80.61service192.168.70.127注:boot和servicel在同一个网段,boot与stdby在不同的网段 只有1个应用,主备模式,(Cascading) 四.软件安装及补丁1. AIX5.3操作系统的安装2. 操作系统相关包安装(有些默认已经安装了)bo
2、s.data bos.diag bos.content bos.alt bos.dlc bos.mh pat bos.adt bos.sysmgt bos.dosutil bos.perf bos.pmapi rsct.basic 注:用# lslpp l |grep name可以看是否装上 p 安装软件包时需要把ACCEPT new license agreements”为yes rsct.core 软件包安装完需重启机器生效,可以等后面操作完成后再重起.3. HACMP5.3安装除了cluster.hativoli、cluster.haview以外,所有包都安装。注:安装软件包时需要把AC
3、CEPT new license agreements”为yes 有时候提示安装失败,可以忽略、注:安装完所有补丁包后机器一定要重新启动!五.实施步骤1. 在两台p51A上设置IP地址(1) 在p51A_1机上A. 配置boot_1网卡-#smitty (smitty tcpip) 注:#lscfg |grep ent看网卡-Communications Applications and Services-TCP/IP-Minimum Configuration & Startup选择en0 * HOSTNAME YH1* Internet ADDRESS (dotted decimal) 1
4、92.168.70.125 Network MASK (dotted decimal) 255.255.255.0 * Network INTERFACE en1NAMESERVERInternet ADDRESS (dotted decimal) DOMAIN Name Default GATEWAY Address B. 配置stdby_1网卡-#smitty-Communications Applications and Services-TCP/IP-Minimum Configuration & Startupselect en1* HOSTNAME YH1* Internet AD
5、DRESS (dotted decimal) 192.168.80.60 Network MASK (dotted decimal) 255.255.255.0 * Network INTERFACE en3NAMESERVERInternet ADDRESS (dotted decimal) DOMAIN Name Default GATEWAY Address (2)在p51A_2机上A. 配置boot_2网卡-#smitty-Communications Applications and Services-TCP/IP-Minimum Configuration & Startupsel
6、ect en0* HOSTNAME YH2* Internet ADDRESS (dotted decimal) 192.168.70.126 Network MASK (dotted decimal) 255.255.255.0 * Network INTERFACE en1NAMESERVERInternet ADDRESS (dotted decimal) DOMAIN Name Default GATEWAY Address B. 配置stdby_2网卡-#smitty-Communications Applications and Services-TCP/IP-Minimum Co
7、nfiguration & Startupselect en1* HOSTNAME YH2* Internet ADDRESS (dotted decimal) 192.168.80.61 Network MASK (dotted decimal) 255.255.255.0 * Network INTERFACE en3NAMESERVERInternet ADDRESS (dotted decimal) DOMAIN Name Default GATEWAY Address 2. 在两台p51A上修改/etc/hosts文件,内容如下 (1)在p51A_1机上 127.0.0.1 loop
8、back localhost YH1 192.168.70.125 boot_1 YH1192.168.80.60 stdby_1 YH1192.168.70.127 svc_1 注:esc+i 加;s删;dd删行;o换行192.168.70.126 boot_2 YH2 ftp p51A_2IP put hosts /etc/hosts192.168.80.61 stdby_2 YH2 记住通过ftp需要把第一行改成p615_2 (2)在p51A_2机上 127.0.0.1 loopback localhost YH2192.168.70.125 boot_1 YH1192.168.80.6
9、0 stdby_1 YH1192.168.70.127 svc_1192.168.70.126 boot_2 YH2192.168.80.61 stdby_2 YH23.在p51A_1上建立共享卷组 建立datavg共享卷组-#smitty mkvg选Add an Original Volume Group Add a Big Volume Group Add a Scalable Volume Group则出现VOLUME GROUP name datavgPhysical partition SIZE in megabytes * PHYSICAL VOLUME names hdisk2
10、注:根据客户现场提供,这里假设为hdisk2Activate volume group AUTOMATICALLY noat system restart?Volume Group MAJOR NUMBER Create VG concurrent Capable? yesAuto-varyon in Concurrent Mode? no注:看datavg是否是激活状态,如果是激活,则需要#varyoffvg datavg#rmdev Rdl hdisk2#cfgmgr -v4.在p51A_2上import共享卷组(1) import datavg共享卷组-#smitty (smitty i
11、mportvg)出现:VOLUME GROUP name datavg手动输入* PHYSICAL VOLUME name hdisk2+ Volume Group MAJOR NUMBER +# (2) 修改datavg共享卷组属性-#smitty (smitty chvg)select * VOLUME GROUP name datavgVOLUME GROUP name datavg* ACTIVATE volume group AUTOMATICALLY noat system restart?* A QUORUM of disks required to keep the volum
12、e yesgroup on-line?Convert this VG to Concurrent Capable? no* Autovaryon VG in Concurrent Mode? no5.在两台P51A上建立应用服务器启动脚本(1) 在p51A_1上在/app下分别建立dbstart.sh, dbstop.sh, 然后修改文件属性为700:#mkdir /app#chmod 700 *(2) 在p51A_2上在/app下分别建立dbstart.sh, dbstop.sh, 然后修改文件属性为700:# mkdir /app # rm rm R /app#chmod 700 *6.H
13、ACMP的设置 以下步骤(1)-(8)只在P51A_1上做(1)定义CLUSTER#smitty hacmp 或者选择Initialization and Standard Configuration Extended Configuration选择Add Nodes to an HACMP Cluster Extended Topology Configuration Configure an HACMP Cluster输入字段 Add/Change/Show an HACMP ClusteCluster Name YHCLUSTERNew Nodes (via selected commu
14、nication paths) +Currently Configured Node(s)(2) 定义节点定义p51A_1节点#smitty hacmp选择Extended Configuration 选择Extended Topology Configuration 选择Configure HACMP Nodes 选择Add a Node to the HACMP Cluster 输入字段Node Name YH1Communication Path to Node 定义p51A_2节点 注:在p51A_1上做选择Extended Configuration 选择 Extended Topo
15、logy Configuration选择Configure HACMP Nodes选择Add a Node to the HACMP Cluster输入字段Node Name YH2Communication Path to Node (3) 定义网络 A. 定义IP网络 #smitty hacmp选择Extended Configuration选择Extended Topology Configuration选择Configure HACMP Networks选择Add a Network to the HACMP Cluster 选择# Pre-defined IP-based Netwo
16、rk Types中的ether输入字段 Network Name net_ether_01* Network Type ether* Netmask 255.255.255.0 +* Enable IP Address Takeover via IP Aliases no +IP Address Offset for Heartbeating over IP Aliases (4) 定义网络接口 A. 定义IP网络接口定义boot_1接口:# smitty hacmp选择 Extended Configuration选择Extended Topology Configuration选择Conf
17、igure HACMP Communication Interfaces/Devices选择Add Communication Interfaces/Devices选择 Add Pre-defined Communication Interfaces and Devices选择 Communication Interfaces选择net_ether_01 (0.0.0.0/0) 输入字段* IP Label/Address boot_1 +* Network Type ether* Network Name net_ether_01* Node Name YH1 + Network Inter
18、face 定义stdby_1接口:选择Extended Configuration选择Extended Topology Configuration选择Configure HACMP Communication Interfaces/Devices选择Add Communication Interfaces/Devices选择 Add Pre-defined Communication Interfaces and Devices选择 Communication Interfaces选择net_ether_01 (0.0.0.0/0) 输入字段* IP Label/Address stdby_
19、1 +* Network Type ether* Network Name net_ether_01* Node Name YH1 +Network Interface 定义boot_2接口:选择Extended Configuration选择Extended Topology Configuration选择Configure HACMP Communication Interfaces/Devices选择Add Communication Interfaces/Devices选择 Add Pre-defined Communication Interfaces and Devices选择 C
20、ommunication Interfaces选择net_ether_01 (0.0.0.0/0) 输入字段* IP Label/Address boot_2 +* Network Type ether* Network Name net_ether_01* Node Name YH2 +Network Interface 定义stdby_2接口:选择Extended Configuration选择Extended Topology Configuration选择Configure HACMP Communication Interfaces/Devices选择Add Communicatio
21、n Interfaces/Devices选择 Add Pre-defined Communication Interfaces and Devices选择 Communication Interfaces选择net_ether_01 (0.0.0.0/0) 输入字段* IP Label/Address stdby_2 +* Network Type ether* Network Name net_ether_01* Node Name YH2 +Network Interface (5) 定义Service IP在p51A_1操作:# smitty hacmp选择Initialization
22、and Standard Configuration选择Configure Resources to Make Highly Available选择Configure Service IP Labeles/Addresses选择Add a service IP Labeles/Addresses输入字段* IP Label/Address svc_1 + * Network Name net_ether_01 +5.3一样(6) 定义应用服务器定义ZTEAPP应用服务器:# smitty hacmp选择Initialization and Standard Configuration选择Con
23、figure Resources to Make Highly Available选择Configure Application Servers选择Add an Application Server 输入字段* Server Name YHAPP * Start Script /app/dbstart.sh* Stop Script /app/dbstop.sh53一样 (7)定义共享资源组定义YHRE资源组# smitty hacmp选择Initialization and Standard Configuration选择Configure HACMP Resource Group选择Add
24、 a Resource GroupResource Group Name YHRE*Participating Nodes (Default Node Priority) YH1 YH2 +在5.2以后的HACMP里,默认是自动设置为Cascading) Startup Policy Online On Home Node O + Fallover Policy Fallover To Next Prio + Fallback Policy Fallback To Higher Pr +(8) 修改资源组属性修改YHRE资源组属性:# smitty hacmp选择Initialization
25、and Standard Configuration选择Configure HACMP Resource Group选择Change/Show Resources for a Cascading Resource Group(standard)输入字段Resource Group Name YHREParticipating Nodes (Default Node Priority) YH1 YH2Startup Policy Online On Home Node OFallover Policy Fallover To Next PrioFallback Policy Fallback T
26、o Higher PrService IP Labels/Addresses svc_1 +Application Servers YHAPP +Volume Groups datavg +手动输入Use forced varyon of volume groups, if necessary false + Filesystems (empty is ALL for VGs specified) +7. 同步HACMP配置 注:该步只在P51A_1上做 # smitty hacmp选择Initialization and Standard Configuration选择Verify and
27、Synchronize HACMP Comfiguration 5.3不用输入,直接到这里回车就同步了。注:一直等到同步成功为止8.查看HACMP进程是否正常(正常有2-4个Cluster进程)# lssrc g cluster subsystem group PID statusclstrmge cluster 22454 activeclsmuxpd cluster 15874 active9. HACMP服务的启动和停止启动: 要两个节点同时启动,停止时只停止1个节点#smitty clstart Start Cluster Services 输入字段 * Start now, on s
28、ystem restart or both now +Start Cluster Services on these nodes YH1 YH2 +BROADCAST message at startup? true +Startup Cluster Lock Services? false +Startup Cluster Information Daemon? true Reacquire resources after forced down ? false +# tail f /tmp/hacmp.out停止: 停止的时只停止1个节点#smitty clstopStop Cluster Services输入字段* Stop now, on system restart or both now +Stop Cluster Services on these nodes YH1 +BROADCAST cluster shutdown? true +* Shutdown mode gracefultakeover+ 注:shutdown mode请选择takeover,意 思是让备机自动接管六.测试(写的比较简单,可以看以前的文章)1.# lsvg o2.# ifconfig -a七.完毕
copyright@ 2008-2022 冰豆网网站版权所有
经营许可证编号:鄂ICP备2022015515号-1