HA安装配置手册
- 格式:docx
- 大小:48.05 KB
- 文档页数:12
HA安装配置手册目录HA安装配置手册 (1)1HACMP软件安装 (3)1.1系统环境 (3)1.2软件版本及安装 (3)2配置HA (4)2.1配置网络拓扑 (4)2.1.1建立Cluster (4)2.1.2配置Cluster节点 (4)2.2配置HACMP网络 (5)2.2.1创建IP网络 (5)2.2.2创建磁盘心跳网络 (6)2.3配置HACMP资源 (7)2.3.1创建资源组 (7)2.3.2创建Application Servers (8)2.3.3创建Service IP (8)2.3.4配置共享VG (9)2.3.5配置资源组属性 (9)2.4同步和切换 (11)3结构扩展 (12)1HACMP软件安装1.1系统环境本文档HA配置为生产上典型采用的双机互备方式,两台AIX服务器hostname为p570a8、p570b8。
修改p570a8和p570b8的hosts,p570a8-----------------------------------------------vi /etc/hosts127.0.0.1 loopback localhost p570a8192.168.128.1 p570a8_stb192.168.128.2 p570b8_stb10.20.22.238 p570a8_boot10.20.22.248 p570b8_boot10.20.22.218 p570a8_svc10.20.22.228 p570b8_svcp570b8-----------------------------------------------vi /etc/hosts127.0.0.1 loopback localhost p570b8192.168.128.1 p570a8_stb192.168.128.2 p570b8_stb10.20.22.238 p570a8_boot10.20.22.248 p570b8_boot10.20.22.218 p570a8_svc10.20.22.228 p570b8_svc1.2软件版本及安装HA版本为HACMP 5.4。
需要安装的软件为:cluster.adt.escluster.escluster.es.cfscluster.es.cspoccluster.license建立磁盘心跳,需要在p570a8和p570b8之间有共享的外置磁盘。
例如,p570a8:/dev/ hdiskpower6p570b8:/dev/ hdiskpower2分别在两台服务器上的两块磁盘,都实际指向存储上的同一块磁盘。
2配置HA配置HACMP,以下操作只需在一个节点上操作。
待配置完成后,同步一下即可。
2.1配置网络拓扑2.1.1建立Cluster# smitty hacmpExtended ConfigurationExtended Topology ConfigurationConfigure an HACMP ClusterAdd/Change/Show an HACMP Cluster* Cluster Name [hatest] 注:hatest为cluster的名字,可自己定。
2.1.2配置Cluster节点将p570a8和p570b8作为cluster的节点加入hatest。
#smitty hacmpExtended ConfigurationExtended Topology ConfigurationConfigure HACMP NodesAdd a Node to the HACMP Cluster* Node Name [p570a8]Communication Path to Node [p570a8_boot] 同样,将p570b8加入cluster。
#smitty hacmpExtended ConfigurationExtended Topology ConfigurationConfigure HACMP NodesAdd a Node to the HACMP Cluster* Node Name [p570b8]Communication Path to Node [p570b8_boot] 2.2配置HACMP网络2.2.1创建IP网络#smitty hacmpExtended ConfigurationExtended Topology ConfigurationConfigure HACMP NetworksAdd a Network to the HACMP Cluster# Pre-defined IP-based Network Typesether* 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 []将网络通信接口加入IP网络net_ether_01,#smitty hacmpExtended ConfigurationExtended Topology ConfigurationConfigure HACMP Communication Interfaces/DevicesAdd Communication Interfaces/DevicesAdd Pre-defined Communication Interfaces and DevicesCommunication Interfacesnet_ether_01* IP Label/Address [p570a8_boot]* Network Type ether* Network Name net_ether_01* Node Name [p570a8]Network Interface []依照同样方法,将p570a8_stb、p570b8_boot、p570b8_stb加入IP网络net_ether_01,#smitty hacmpExtended ConfigurationExtended Topology ConfigurationConfigure HACMP Communication Interfaces/DevicesAdd Communication Interfaces/DevicesAdd Pre-defined Communication Interfaces and DevicesCommunication Interfacesnet_ether_01* IP Label/Address [p570a8_stb]* Network Type ether* Network Name net_ether_01* Node Name [p570a8]Network Interface []* IP Label/Address [p570b8_boot]* Network Type ether* Network Name net_ether_01* Node Name [p570b8]Network Interface []* IP Label/Address [p570b8_stb]* Network Type ether* Network Name net_ether_01* Node Name [p570b8]Network Interface [] 2.2.2创建磁盘心跳网络创建磁盘心跳网络,#smitty hacmpExtended ConfigurationExtended Topology ConfigurationConfigure HACMP NetworksAdd a Network to the HACMP Cluster# Pre-defined Serial Device Typesdiskhb* Network Name [net_diskhb_01]* Network Type diskhb在net_diskhb_01中加入通信设备(磁盘心跳),#smitty hacmpExtended ConfigurationExtended Topology ConfigurationConfigure HACMP Communication Interfaces/DevicesAdd Communication Interfaces/DevicesAdd Pre-defined Communication Interfaces and DevicesCommunication Devicesnet_diskhb_01* Device Name [p570a8_p570b8]* Network Type diskhb* Network Name net_diskhb_01* Device Path [/dev/ hdiskpower6]* Node Name [p570a8]#smitty hacmpExtended ConfigurationExtended Topology ConfigurationConfigure HACMP Communication Interfaces/DevicesAdd Communication Interfaces/DevicesAdd Pre-defined Communication Interfaces and DevicesCommunication Devicesnet_diskhb_01* Device Name [p570b8_p570a8]* Network Type diskhb* Network Name net_diskhb_01* Device Path [/dev/ hdiskpower2]* Node Name [p570b8] 2.3配置HACMP资源因为本次示例配置为双机互备,正常情况下两台机器都对外提供服务,所以应该有两个资源组。
每个资源组都包含共享vg,service IP和application server。
2.3.1创建资源组先在p570a8上创建资源组p570a8_res。
资源组p570a8_res主节点为p570a8,备节点为p570b8。
#smitty hacmpExtended ConfigurationExtended Resource ConfigurationHACMP Extended Resource Group ConfigurationAdd a Resource Group*Resource Group Name [p570a8_res]*Participating Nodes (Default Node Priority) [p570a8 p570b8]Startup Policy Online On Home Node OnlyFallover Policy Fallover To Next Priority Node In The ListFallback Policy Never Fallback 再在p570b8上创建资源组p570b8_res。