HACMP配置如下:
cluster name: racapp
Network Name: racnode1 racnode2
Resource Group Name: racrg
Concurrent Volume Groups datavg
先用chdev -l hdiskXX -a pv=yes使共享磁盤(pán)可用,mkvg -Cy datavg hdiskXX hdiskYY把相應(yīng)的共享磁盤(pán)加入卷組。
配置Cluster name
#smitty hacmp
----> Extended Configuration
----> Extended Topology Configuration
----> Configure an HACMP Cluster
----> Add/Change/Show an HACMP Cluster
集群名:racapp
配置雙機(jī)節(jié)點(diǎn)
#smitty hacmp
Extended Configuration
----> Extended Topology Configuration
----> Configure HACMP Nodes
----> Add a Node to the HACMP Cluster
分別建好兩個(gè)節(jié)點(diǎn)racnode1,racnode2。
配置Cluster網(wǎng)絡(luò)
a、增加網(wǎng)絡(luò)名
#smitty hacmp
---- > Extended Configuration
---- > Extended Topology Configuration
---- > Configure HACMP Networks
---- > Add a Network to the HACMP
在彈出的對(duì)話框中選中 # Pre-defined IP-based Network Types中的ether后,
在Network name欄中會(huì)默認(rèn)生成一個(gè)網(wǎng)絡(luò)名。
b、給剛才增加的網(wǎng)絡(luò)名分配網(wǎng)卡。
#smitty hacmp
---- > Extended Configuration
---- > Extended Topology Configuration
---->Configure HACMP Communication Interfaces/Devices
---- > Add Communication Interfaces/Devices
Add discovered communication interface and devices
選擇communication interfaces
選擇創(chuàng)建的網(wǎng)絡(luò)名net_ether_01,按回車(chē)鍵。
配置網(wǎng)卡信息(RAC,HACMP的網(wǎng)卡配置信息要和/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
選擇兩臺(tái)服務(wù)器使用的串口
雙機(jī)資源配置
#smitty hacmp
---- > Extended Configuration
---- > Extended Resource Configuration
---- >HACMP Extended Resource Configuration
---- > Add Resource Group
name: racrg
節(jié)點(diǎn):選中所有節(jié)點(diǎn)
資源組策略:
startup Policy 屬性是 online on all available
Failover Polic 屬性是 bring offline
Failback Policy 屬性是 Never failback
返回上級(jí)菜單 選擇Change/Show Resource and Attributes for a Resource Group選項(xiàng)
選中剛建的racrg 在Volume Groups選項(xiàng)輸入預(yù)先創(chuàng)建好的共享VG名(即之前創(chuàng)建的datavg)
雙機(jī)配置資源同步
#smitty hacmp
---- > Extended Configuration
---->Extended Verification and Synchronization
在automatically correct errors found
during欄中選擇interactively,表示發(fā)現(xiàn)錯(cuò)誤后,系統(tǒng)自動(dòng)糾錯(cuò)。
檢查HA是否正常
smit clstart 選中所有節(jié)點(diǎn) 啟動(dòng)HA
啟動(dòng)完畢后,大概過(guò)幾分鐘用lspv查看共享卷組是否為concurrent狀態(tài),如果是就可以繼續(xù)RAC的工作了
|
|