HACMP V5.3安装
 
准备工作:
1、每台主机两个物理网卡boot1boot2(老版本中称为stby);boot1boot2为不同网段。两台主机之间的boot1可以互相ping通,两台主机的boot2也能互相ping通。
2、每台主机的/etc/hosts文件一致。
3、每台主机/.rhosts文件一致,并使其权限为600
4、两台主机通过串口做心跳,并确保已通过tty的测试。
5、每台主机AIXHACMP的补丁均为最新。
配置步骤(以下步骤通过smitty hacmp命令运行):
1、让HACMP检测当前的环境。
Extended Configuration > Discover HACMP-related Information
from Configured Nodes
2、配置cluster name
Extended Configuration > Extended Topology Configuration >
Configure an HACMP Cluster > Add/Change/Show an HACMP Cluster
3、分别加入参与该cluster的主机。
Extended Configuration > Extended Topology Configuration >
Configure HACMP Nodes > Add a Node to the HACMP Cluster
4、添加基于IP的网络。
Configuration > Extended Topology Configuration >
Configure HACMP Networks> Add a Network to the HACMP Cluster
选择“ethernet”,添加IP网络
其中Enable IP Takeover via IP Aliases项,如果SVC IP地址与boot1地址在同一网段,则选择“NO”,反之选择“YES
5、添加基于非IP的网络,即串口心跳。
Extended Configuration > Extended Topology Configuration >
Configure HACMP Networks > Add a Network to the HACMP Cluster
选择RS232,添加串口心跳。
6、添加IP地址。
Extended Configuration > Extended Topology Configuration
> Configure HACMP Communication Interfaces/Devices > Add Communication
Interfaces/Devices.
7、同样的路径添加串口设备。
Extended Configuration > Extended Topology Configuration
> Configure HACMP Communication Interfaces/Devices > Add Communication
Interfaces/Devices.
8、添加SVC IP
Extended Configuration > Extended Resource Configuration >
HACMP Extended Resources Configuration > Configure HACMP Service IP
Labels/Addresses > Add a Service IP Label/Address
9、添加应用脚本,可先用空脚本来替代,单独测试HACMP
Extended Configuration > Extended Resource Configuration >
HACMP Extended Resources Configuration > Configure HACMP Applications >
Configure HACMP Application Servers > Add an Application Server
10、添加资源组。
Extended Configuration > Extended Resource Configuration >
HACMP Extended Resource Group Configuration > Add a Resource Group
Participating Nodes (Default Node Priority)”项,可以用F4选择,如果希望本资源组优先在node1主机起来,则将node1排在第一位,中间空格,再输入node2节点名。
Startup Policy”项,选择“Online On Home Node Only”。
Fallover Policy”项,选择“Fallover To Next Priority Node In The List”。
Fallback Policy”项,选择“Fallback To Higher Priority Node In The List”,则资源会自动切回。选择“Never Fallback”,则资源不会自动切回。
11、修改资源组。
select Extended Configuration > Extended Resource Configuration >
Extended Resource Group Configuration > Change/Show Resources and Attributes
for a Resource Group
Service IP Labels/Addresses”项,用F4浏览选择当前资源组的SVC IP
Application Servers”项,用F4浏览选择当前资源组的应用脚本。
Volume Groups”项,用F4浏览当前资源组所需的VG
12、同步两台主机的HACMP配置。
Extended Configuration > Extended Verification and Synchronization
Automatically correct errors found during verification?”项,选择“YES