HACMP配置如下:
cluster name: racapp
Network Name: racnode1 racnode2
Resource Group Name: racrg
Concurrent Volume Groups datavg
先用chdev -l hdiskXX -a pv=yes使共享磁盘可用,mkvg -Cy datavg hdiskXX hdiskYY把相应的共享磁盘加入卷组。
配置Cluster name
#smitty hacmp
----> Extended Configuration
----> Extended Topology Configuration
----> Configure an HACMP Cluster
----> Add/Change/Show an HACMP Cluster
集群名:racapp
配置双机节点
#smitty hacmp
Extended Configuration
----> Extended Topology Configuration
----> Configure HACMP Nodes
----> Add a Node to the HACMP Cluster
分别建好两个节点racnode1,racnode2。
配置Cluster网络
a、增加网络名
#smitty hacmp
---- > Extended Configuration
---- > Extended Topology Configuration
---- > Configure HACMP Networks
---- > Add a Network to the HACMP
在弹出的对话框中选中 # Pre-defined IP-based Network Types中的ether后,
在Network name栏中会默认生成一个网络名。
b、给刚才增加的网络名分配网卡。
#smitty hacmp
---- > Extended Configuration
---- > Extended Topology Configuration
---->Configure HACMP Communication Interfaces/Devices
---- > Add Communication Interfaces/Devices
Add discovered communication interface and devices
选择communication interfaces
选择创建的网络名net_ether_01,按回车键。
配置网卡信息(RAC,HACMP的网卡配置信息要和/etc/hosts文件保持一致)。
c、增加串口,心跳资源。
#smitty hacmp
---- > Extended Configuration
---- > Extended Topology Configuration
---->Configure HACMP Communication Interfaces/Devices
---- > Add Communication Interfaces/Devices
Add discovered communication interface and devices
选择communication devices
选择两台服务器使用的串口
双机资源配置
#smitty hacmp
---- > Extended Configuration
---- > Extended Resource Configuration
---- >HACMP Extended Resource Configuration
---- > Add Resource Group
name: racrg
节点:选中所有节点
资源组策略:
startup Policy 属性是 online on all available
Failover Polic 属性是 bring offline
Failback Policy 属性是 Never failback
返回上级菜单 选择Change/Show Resource and Attributes for a Resource Group选项
选中刚建的racrg 在Volume Groups选项输入预先创建好的共享VG名(即之前创建的datavg)
双机配置资源同步
#smitty hacmp
---- > Extended Configuration
---->Extended Verification and Synchronization
在automatically correct errors found
during栏中选择interactively,表示发现错误后,系统自动纠错。
检查HA是否正常
smit clstart 选中所有节点 启动HA
启动完毕后,大概过几分钟用lspv查看共享卷组是否为concurrent状态,如果是就可以继续RAC的工作了
|
|