3. 配置HACMP
3.1. 配置Topology
3.1.1. hacmp cluster
#smit hacmp
Cluster Configuration
Cluster Topology
Configure Cluster
Add a Cluster Definition
*Cluster ID [1 ]
*Cluster Name [cluster ]
3.1.2. hacmp node
#smitty hacmp
Configure Node
Add Cluster Nodes
Node Names [ ]
加入两个Node:CZXCDB1 CZXCDB2
3.1.3. hacmp network
Configure Networks
Configure IP-based Networks
Configure Non IP-based Networks
分别增加cz_ether和cz_serial
cz_ether的subnets为10.48.178.0 10.48.179.0
3.1.4. hacmp adapter
适配器有两种类型(网卡、串口),每台节点4个,共8个。
3.1.4.1. 主机1
3.1.4.1.1. service适配器
IP Label serv1
New IP Label []
* Network Type [ether]
* Network Name [cz_ether]
* Network Attribute [public]
* Interface / IP-Label Function [service]
IP Address [10.48.178.202]
Hardware Address []
Node Name [CZXCDB1]
Netmask [255.255.255.0]
Interface Name
3.1.4.1.2. boot适配器
IP Label boot1
* Interface / IP-Label Function [boot]
IP Address [10.48.178.201]
Interface Name en1
3.1.4.1.3. standby适配器
IP Label stby1
* Interface / IP-Label Function [standby]
IP Address [10.48.179.3]
Node Name [CZXZDB1]
Interface Name en2
3.1.4.1.4. rs232适配器
Adapter Label tty1
New Adapter Label []
Network Type [rs232]
* Network Name [cz_serial]
* Device Name [/dev/tty0]
* Node Name [CZXCDB1]
3.1.4.2. 主机2
3.1.4.2.1. service适配器
IP Label serv2
IP Address [10.48.178.204]
Node Name [CZXCDB2]
3.1.4.2.2. boot适配器
IP Label boot2
3.1.4.2.3. standby适配器
IP Label stby2
IP Address [10.48.179.4]
Node Name [CZXZDB2]
3.1.4.2.4. rs232适配器
Adapter Label tty2
* Node Name [CZXCDB2]
3.2. 配置Resource Group
3.2.1. hacmp resource group
增加三个资源组:
3.2.1.1. 1.orares
*Resource Group Name [orares]
*Node Relationship concurant
*Site Relationship ignore
*Participating Node Names [CZXCDB1 CZXCDB2 ]
*Service IP lable []
*Volume Groups [oradatavg]
3.2.1.2. 2.serv1net
*Resource Group Name [serv1net]
*Node Relationship cascading
3.2.1.3. 3.serv2net
*Resource Group Name [serv2net]
*Participating Node Names [CZXCDB2 CZXCDB1]
3.2.2. hacmp app server
增加一个app server
*Server Name [app1]
*start script [/usr/es/script/start.sh]
*stop script [/usr/es/script/stop.sh]