HACMP配置文檔_第1頁
HACMP配置文檔_第2頁
HACMP配置文檔_第3頁
HACMP配置文檔_第4頁
HACMP配置文檔_第5頁
已閱讀5頁,還剩3頁未讀, 繼續(xù)免費閱讀

下載本文檔

版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進行舉報或認(rèn)領(lǐng)

文檔簡介

1、HACMP 5.4配置文檔1.軟件環(huán)境21.1 AIX 5300-0521.2 HAMCP 5.422. 硬件環(huán)境23. 系統(tǒng)環(huán)境23.1 /etc/hosts23.2 /.rhosts24. 配置HACMP 以下操作只需在一個節(jié)點上操作即可24.1 配置網(wǎng)絡(luò)拓樸24.1.1 配置Cluster Name24.1.2 配置Cluster節(jié)點24.1.3 配置HACMP網(wǎng)絡(luò)34.1.3.1 創(chuàng)建IP網(wǎng)絡(luò)34.1.3.2 創(chuàng)建串口心跳網(wǎng)絡(luò)34.1.3.3 創(chuàng)建磁盤心跳網(wǎng)絡(luò)34.1.4 添加網(wǎng)絡(luò)到Cluster34.1.4.1 創(chuàng)建IP通信接口34.1.4.2 創(chuàng)建串口通信設(shè)備44.1.4.3 創(chuàng)建

2、磁盤通信設(shè)備54.2 配置HACMP資源54.2.1 配置資源54.2.1.1 創(chuàng)建Applications Servers54.2.1.2 創(chuàng)建Service IP54.2.2 配置資源組64.2.2.1 創(chuàng)建資源組64.2.2.2 配置資源組屬性65. 校驗并同步HACMP配置76. 啟動/停止HACMP76.1 啟動HACMP(快速路徑:#smitty clstart)76.2 停止HACMP(快速路徑:#smitty clstop)87. 測試HACMP(這里僅為模擬測試)8 1. 軟件環(huán)境1.1 AIX 5300-051.2 HAMCP 5.42. 硬件環(huán)境P630兩臺DS4300存

3、儲一臺串口線一根 3. 系統(tǒng)環(huán)境3.1 /etc/hosts 127.0.0.1 loopback localhost p630a(另一節(jié)點為p630b) 192.168.1.100 p630a_stb 192.168.2.100 p630a_boot192.168.3.100 p630a_svc192.168.1.200 p630b_stb192.168.2.200 p630b_boot192.168.3.200 p630b_svc3.2 /.rhosts 192.168.1.100 192.168.1.200 192.168.2.100192.168.2.200192.168.3.1001

4、92.168.3.200 4. 配置HACMP 以下操作只需在一個節(jié)點上操作即可4.1 配置網(wǎng)絡(luò)拓樸4.1.1 配置Cluster Name # smitty hacmp Extended Configuration Extended Topology Configuration Configure an HACMP Cluster Add/Change/Show an HACMP Cluster * Cluster Name testcluster 4.1.2 配置Cluster節(jié)點 # smitty hacmp Extended Configuration Extended Topolog

5、y Configuration Configure HACMP Nodes Add a Node to the HACMP Cluste *NodeName NodeA Communication Path to Node p630a_boot +以同樣方法將NodeB添加到Cluster中 *NodeName NodeB Communication Path to Node p630b_boot +4.1.3 配置HACMP網(wǎng)絡(luò)4.1.3.1 創(chuàng)建IP網(wǎng)絡(luò) # smitty hacmp Extended Configuration Extended Topology Configuratio

6、n Configure HACMP Networks Add a Network to the HACMP Cluster * NetworkName net_ether_01 * NetworkType ether * Netmask 255.255.255.0 +* Enable IP Address Takeover via IP Aliases Yes + IP Address Offset for Heartbeating over IP Aliases 使用同樣的方法創(chuàng)建net_ether_02 * Enable IP Address Takeover via IP Aliases

7、 Yes 此選項決定了HACMP的IP切換方式,但值得一提的是只有“boot”、“standby”、“service”三個IP分別為三個不同網(wǎng)段時必須選用IP Aliases方式。如果“boot”、“standby”其中一個與“service”為同一個網(wǎng)段時必須選用IP Replace,則此選項應(yīng)選“NO”。4.1.3.2 創(chuàng)建串口心跳網(wǎng)絡(luò) # smitty hacmp Extended Configuration Extended Topology Configuration Configure HACMP Networks Add a Network to the HACMP Cluste

8、r * NetworkName net_rs232_01* Network Type rs232 4.1.3.3 創(chuàng)建磁盤心跳網(wǎng)絡(luò) # smitty hacmpExtended Configuration Extended Topology ConfigurationConfigure HACMP Networks Add a Network to the HACMP Cluster* Network Name net_diskhb_01* Network Type diskhb 4.1.4 添加網(wǎng)絡(luò)到Cluster4.1.4.1 創(chuàng)建IP通信接口 # smitty hacmp Extende

9、d Configuration Extended Topology Configuration Configure HACMP Networks Configure HACMP Communication Interfaces/Devices Add Communication Interfaces/Device Add Pre-defined Communication Interfaces and Devices Communication Interfaces * IP Label/Address p630a_boot + * Network Type ether * Network N

10、ame net_ether_01 * Node Name NodeA + Network Interface 同樣方法添加另一個通信接口到”net_ether_01” * IP Label/Address p630b_boot + * Network Type ether * Network Name net_ether_01 * Node Name NodeB + Network Interface 同樣方法創(chuàng)建另一個通信接口 * IP Label/Address p630a_ stb + * Network Type ether * Network Name net_ether_02 *

11、Node Name NodeA + Network Interface * IP Label/Address p630b_ stb + * Network Type ether * Network Name net_ether_02 * Node Name NodeB + Network Interface 4.1.4.2 創(chuàng)建串口通信設(shè)備 # smitty hacmp Extended Configuration Extended Topology Configuration Configure HACMP Networks Configure HACMP Communication Int

12、erfaces/Devices Add Communication Interfaces/Device Add Pre-defined Communication Interfaces and Devices Communication Devices * Device Name rs232_node_a * Network Type rs232 * Network Name net_rs232_01 * Device Path /dev/tty0 * Node Name NodeA + 以同樣方法創(chuàng)建另一個串口通信設(shè)備 * Device Name rs232_node_b * Network

13、 Type rs232 * Network Name net_rs232_01 * Device Path /dev/tty0 * Node Name NodeB +4.1.4.3 創(chuàng)建磁盤通信設(shè)備 # smitty hacmp Extended Configuration Extended Topology Configuration Configure HACMP Networks Configure HACMP Communication Interfaces/Devices Add Communication Interfaces/Device Add Pre-defined Comm

14、unication Interfaces and Devices Communication Devices * Device Name diskhb_node_a * Network Type diskhb * Network Name net_diskhb_01 * Device Path /dev/hdisk1 * Node Name NodeA + 同樣方法創(chuàng)建另一個磁盤通信設(shè)備 * Device Name diskhb_node_b * Network Type diskhb * Network Name net_diskhb_01 * Device Path /dev/hdisk1

15、 * Node Name NodeA + 做磁盤心跳的磁盤必須將VG創(chuàng)建為Concurrent模式4.2 配置HACMP資源4.2.1 配置資源4.2.1.1 創(chuàng)建Applications Servers # smitty hacmp Extended Configuration Extended Resource Configuration HACMP Extended Resources Configuration Configure HACMP Applications Servers Add an Application Server * Server Name appserver *

16、 Start Script /hascript/clstart.sh* Stop Script /hascript/clstop.sh需要手動在兩個節(jié)點上建立“/hascript/clstart.sh”、“/hascript/clstop.sh”并保證其有執(zhí)行權(quán)限。如果是雙機互備的話需要建立兩個App Server。方法相同。4.2.1.2 創(chuàng)建Service IP # smitty hacmp Extended Configuration Extended Resource Configuration HACMP Extended Resources Configuration Config

17、ure HACMP Service IP Labels/Addresses Add a Service IP Label/AddressConfigurable on Multiple Nodes * IP Label/Address p630a_svc +* Network Name net_ether_01 同樣方法配置第二個Service IP * IP Label/Address p630b_svc +* Network Name net_ether_02 Network Name:“net_ether_01”、“ net_ether_02” 決定了與之對應(yīng)的Service IP默認(rèn)在

18、哪個網(wǎng)卡上啟動。 4.2.2 配置資源組4.2.2.1 創(chuàng)建資源組 # smitty hacmp Extended Configuration Extended Resource Configuration Add a Resource Group* Resource Group Name rg_node_a Participating Nodes (Default Node Priority) NodeA NodeB + Startup Policy Online On Home Node O> + Fallover Policy Fallover To Next Prio> +

19、 Fallback Policy Fallback To Higher Pr> +如果是雙機互備的話以同樣方法建立另一個資源組 * Resource Group Name rg_node_b Participating Nodes (Default Node Priority) NodeB NodeA + “Participating Nodes”選項決定了資源組中節(jié)點的優(yōu)先級,寫在前面的節(jié)點其優(yōu)先級高于后面的節(jié)點。 根據(jù)實際需求決定資源組的:“Startup Policy”、“Fallover Policy”、“Fallback Policy”。 Startup Policy:Onli

20、ne On Home Node Only: 只在主節(jié)點啟動。在 “Participating Nodes”中寫在第一位的節(jié)點啟動。Online On First Available Node:在第一個啟動的節(jié)點啟動。在“Participating Nodes”中所選擇的所有節(jié)點中最先啟動的節(jié)點上啟動。Online Using Distribution Policy:按照分布策略啟動Online On All Available Nodes:在所有啟動的節(jié)點中啟動。做并發(fā)群集時選擇此項。如:Oracle RAC Fallover Policy:Fallover To Next Priority

21、Node In The List:節(jié)點失敗時資源組遷移到下一優(yōu)先級節(jié)點Fallover Using Dynamic Node Priority:節(jié)點失敗時動態(tài)選擇遷移節(jié)點Bring Offline (On Error Node Only):將資源組下線 Fallback Policy:Fallback To Higher Priority Node In The List:節(jié)點恢復(fù)時資源組返回優(yōu)先級高的節(jié)點Never Fallback:不進行資源組回遷4.2.2.2 配置資源組屬性 # smitty hacmp Extended Configuration Extended Resource

22、Configuration Change/Show Resources and Attributes for a Resource Group Resource Group Name rg_node_a Participating Nodes (Default Node Priority) NodeA NodeB Startup Policy Online On Home Node O> Fallover Policy Fallover To Next Prio> Fallback Policy Fallback To Higher Pr> Fallback Timer Po

23、licy (empty is immediate) + Service IP Labels/Addresses p630a_svc +Application Servers appserver + Volume Groups datavg+Use forced varyon of volume groups, if necessary false+Automatically Import Volume Groups ture+Filesystems (empty is ALL for VGs specified) +Filesystems Consistency Check fsck+File

24、systems Recovery Method sequential+Filesystems mounted before IP configured false+Filesystems/Directories to Export +Filesystems/Directories to NFS Mount Network For NFS Mount +Tape Resources +Raw Disk PVIDs +Fast Connect Services +Communication Links +Primary Workload Manager Class +Secondary Workl

25、oad Manager Class +如果是雙機互備以同樣方法修改另一個資源組屬性5. 校驗并同步HACMP配置 # smitty hacmp Extended Configuration Extended Verification and Synchronization * Verify, Synchronize or Both Both +* Automatically correct errors found during Interactively + verification? * Force synchronization if verification fails? No +*

26、Verify changes only? No +* Logging Standard +6. 啟動/停止HACMP6.1 啟動HACMP(快速路徑:#smitty clstart) # smitty hacmp System Management (C-SPOC) Manage HACMP Services Start Cluster Services * Start now, on system restart or both now Start Cluster Services on these nodes NodeA NodeB * Manage Resource Groups Automatically

溫馨提示

  • 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
  • 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
  • 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負(fù)責(zé)。
  • 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請與我們聯(lián)系,我們立即糾正。
  • 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時也不承擔(dān)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。

評論

0/150

提交評論