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把相應(yīng)的共享磁盤加入卷組。
配置Cluster name
#smitty hacmp
----> Extended Configuration
----> Extended Topology Configuration
----> Configure an HACMP Cluster
----> Add/Change/Show an HACMP Cluster
集群名:racapp
配置雙機節(jié)點
#smitty hacmp
Extended Configuration
----> Extended Topology Configuration
----> Configure HACMP Nodes
----> Add a Node to the HACMP Cluster
分別建好兩個節(jié)點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
在彈出的對話框中選中 # Pre-defined IP-based Network Types中的ether后,
在Network name欄中會默認生成一個網(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,按回車鍵。
配置網(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
選擇兩臺服務(wù)器使用的串口
雙機資源配置
#smitty hacmp
---- > Extended Configuration
---- > Extended Resource Configuration
---- >HACMP Extended Resource Configuration
---- > Add Resource Group
name: racrg
節(jié)點:選中所有節(jié)點
資源組策略:
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選項輸入預(yù)先創(chuàng)建好的共享VG名(即之前創(chuàng)建的datavg)
雙機配置資源同步
#smitty hacmp
---- > Extended Configuration
---->Extended Verification and Synchronization
在automatically correct errors found
during欄中選擇interactively,表示發(fā)現(xiàn)錯誤后,系統(tǒng)自動糾錯。
檢查HA是否正常
smit clstart 選中所有節(jié)點 啟動HA
啟動完畢后,大概過幾分鐘用lspv查看共享卷組是否為concurrent狀態(tài),如果是就可以繼續(xù)RAC的工作了
|
|