Hacmp(High Availability Cluster Muti-Processing)配置 for Aix
一、添加网卡
1)分别为双机添加心跳网卡
#smitty tcpip
Further Configuration
Network Interfaces
Network Interfaces Selection
Add a Network Interface
Add a Standard Ethernet Network Interface
2)配置网卡IP
INTERNET ADDRESS [10.0.10.12]
Network MASK [255.255.255.0]
二、配置hosts 和 rhost参数
1)配置hosts IP
#vi /etc/hosts
#bootip
192.168.2.10 dbserver1
192.168.2.12 dbserver2
#serverip
10.0.0.10 ora1_ser
#heartip
10.0.10.10 ora1_heart
10.0.10.12 ora2_heart
2)配置rhosts参数
#vi /usr/es/sbin/cluster/etc/rhosts
dbserver1
dbserver2
ora1_ser
ora1_heart
ora2_heart
三、添加共享卷组
1)192.168.2.10添加卷组
#smitty vg
Add a volume Group
Add a Scalable Volume Group
VOLUME GROUP name [appvg]
*PHYSICAL VOLUME names [hdisk3]
Activate volume group AUTOMATICALLY [no]
Volume Group MAJOR NUMBER [48]
2)192.168.2.10取消active属性
#varoffvg appvg
3)192.168.2.12导入共享卷组
#smitty vg
import a Volume Group
VOLUME GROUP name [appvg]
*PHYSICAL VOLUME name [hdisk3]
Volume Group MAJOR NUMBER [48]
注:如果PvID 代码不同
#chdev -l hdisk3 -a pv=yes
四、安装Hacmp
1)放入DVD光盘
2)#smitty install
3)选择以DVD方式安装
4)选择安装所有组件(list cluster.hativoli除外)
5)accept new license agreement yes
五、配置Hacmp
1)进入hacmp配置面板
#smitty hacmp
2)添加cluster
Extended Configuration
Extended Topology Configuration
Configure an HACMP Cluster
Add/Change/Show an HACMP Cluster
*Cluster Name [Aixcluster]
3)添加两个节点,与之前hosts配置的bootip相同
Extended Configuration
Extended Topology Configuration
Configure HACMP Nodes
*Node Name [node1]
Communication Path to Node [dbserver1]
4)添加两个网络(网络心跳,网络节点)
Extended Configuration
Extended Topology Configuration
Configure HACMP Networks
Add a Network to the HACMP Cluster
ether
*Network Name [net_ether_01]
*Network Type ether
*NetMask(IPv4) [255.255.255.0]
Enable IP Address Takeover via IP Aliases [Yes]
5)添加bootip/heartip至网络(注意:心跳IP添加至心跳网卡)
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
*IP Label/Address [dbserver1]
*Network Type ether
*Network Name net_ether_01
*Node Name [node1]
6)测试网卡是否通畅
Extended Configuration
Discover HACMP-related Information from Configured Nodes
7)查看并启动进程
System Management(C-SPOC)
#startsrc -s clcomdES
#startsrc -s clstrmgrES
8)添加serverip 至网络(与bootip同一网络)
Extended Configuration
Extended Resource Configuration
HACMP Extended Resources Configuration
Configure HACMP Service IP Labels/Addresses
Configurable on Multiple Nodes
net_ether_01(192.168.2.0/24)
*IP Label/Address [ora1_ser]
*Network Name [net_ether_01]
9) 在双机任意目录下创建启停脚本,并给与权限
#vi startapp.sh
#vi stopapp.sh
#chmod 775 /home/startapp.sh
#chmod 775 /home/stopapp.sh
10)添加启停脚本至应用服务
Extended Configuration
Extended Resource Configuration
HACMP Extended Resources Configuration
Configure HACMP Application Servers
Add an Application Server
*Server Name [appmanagerment]
*Start Script [/home/startapp.sh ]
*Stop Script [/home/stopapp.sh]
11)配置资源组
Extended Configuration
Extended Resource Configuration
HACMP Extended Resource Configuration
Add a Resource Group
*Resource Group Name [sharedgroup]
*participating Nodes (Default Node priority) [node1 node2]
修改资源组属性
Chane/Show Resources and Attributes for a Resource Group
Service IP Labels/Addresses [ora1_ser]
Application [appmanagement]
Volume Groups [appvg]
六、开始同步
Extended Configuration
Extended Verification and Synchronization
*Automatically correct errors found during verification? [Yes]
七、启动HACMP
System Management(C-SPOC)
HACMP Services
Start Cluster Services
八、切换资源组
System Management(C-SPOC)
HACMP Services
Stop Cluster Services
*Select an Action on Resource Groups Move Resource Groups |