hacmp 5.5配置步驟
配置hacmp 1. 配置叢集 root@db:/>smitty hacmp. Initialization and Standard Configuration Configure an HACMP Cluster and Nodes * Cluster Name [cluster] New Nodes (via selected communication paths) [] + Currently Configured Node(s) [app_boot db_boot] (選擇boot IP地址) 2.配置服務地址 Initialization and Standard Configuration Configure Resources to Make Highly Available Configure Service IP Labels/Addresses ---- Add a Service IP Label/Address 新增兩臺主機的服務地址 + * IP Label/Address [db_svc] + Prefix Length [] # * Network Name [net_ether_01] + * IP Label/Address [app_svc] + Prefix Length [] # * Network Name [net_ether_01] + * Network Name 決定了與之對應的Service IP預設在哪個網路卡上啟動 ---- Change/Show a Service IP Label/Address ---- Remove Service IP Label(s)/Address(es) 3.配置網路 Extended Configuration Extended Topology Configuration ---- Configure HACMP Networks ------- Add a Network to the HACMP Cluster select a Network Type 選擇 ether * Network Name net_ether_01 New Network Name [] * Network Type [ether] + * Netmask [255.255.255.192] + * Enable IP Address Takeover via IP Aliases [No] ------採用老方法IP接管,不是IP別名 + IP Address Offset for Heartbeating over IP Aliases [] * Network attribute public * Enable IP Address Takeover via IP Aliases [Yes] 此選項決定了HACMP的IP切換方式,但值得一提的是隻有“boot”、“standby”、“service”三個IP分別為三個不同網段時必須選用IP Aliases方式。如果“boot”、“standby”其中一個與“service”為同一個網段時必須選用IP Replace,則此選項應選“NO”。 4.配置應用伺服器 Initialization and Standard Configuration Configure Resources to Make Highly Available Configure Application Servers ---- Add an Application Server Server Name appserver Start Script [/home/app_start.sh] Stop Script [/home/app_stop.sh] Server Name dbserver Start Script [/home/db_start.sh] Stop Script [/home/db_stop.sh] ---- Change/Show an Application Server ----- Remove an Application Server 需要手動在兩個節點上建立“/home/app_start.sh”、“home/db_stop.sh”並保證其有執行許可權。如果是雙機互備的話需要建立兩個App Server。方法相同。 5.配置資源組 Initialization and Standard Configuration Configure HACMP Resource Groups -----Add a Resource Group Resource Group Name rg_app Participating Nodes (Default Node Priority) [app db ] ---這個有順序的,表示rg_app資源中 m2m_app為主 + Startup Policy Online On Home Node Only + Fallover Policy Fallover To Next Priority Node In The List + Fallback Policy Fallback To Higher Priority Node In The List Resource Group Name rg_db Participating Nodes (Default Node Priority) [db app] ---這個有順序的,表示rg_db資源中 m2m_db為主 Startup Policy Online On Home Node Only + Fallover Policy Fallover To Next Priority Node In The List + Fallback Policy Fallback To Higher Priority Node In The List + ---- Change/Show a Resource Group ---- Remove a Resource Group --- Change/Show Resources for a Resource Group (standard) “Participating Nodes”選項決定了資源組中節點的優先順序,寫在前面的節點其優先順序高於後面的節點。 根據實際需求決定資源組的:“Startup Policy”、“Fallover Policy”、“Fallback Policy”。 Startup Policy: Online On Home Node Only: 只在主節點啟動。在 “Participating Nodes”中寫在第一位的節點啟動。 Online On First Available Node:在第一個啟動的節點啟動。在“Participating Nodes”中所選擇的所有節點中最先啟動的節點上啟動。 Online Using Distribution Policy:按照分佈策略啟動 Online On All Available Nodes:在所有啟動的節點中啟動。做併發群集時選擇此項。如:Oracle RAC Fallover Policy: Fallover To Next Priority Node In The List:節點失敗時資源組遷移到下一優先順序節點 Fallover Using Dynamic Node Priority:節點失敗時動態選擇遷移節點 Bring Offline (On Error Node Only):將資源組下線 Fallback Policy: Fallback To Higher Priority Node In The List:節點恢復時資源組返回優先順序高的節點 Never Fallback:不進行資源組回遷 6.修改資源組裡面的資源資訊 Initialization and Standard Configuration Configure HACMP Resource Groups ------- Change/Show Resources for a Resource Group (standard) Resource Group Name rg_app Participating Nodes (Default Node Priority) app db Startup Policy Online On Home Node Only Fallover Policy Fallover To Next Priority Node In The List Fallback Policy Fallback To Higher Priority Node In The List Service IP Labels/Addresses [app_svc] + Application Servers [appserver] + Volume Groups [appvg2] + Use forced varyon of volume groups, if necessary false + Filesystems (empty is ALL for VGs specified) [ ] Resource Group Name rg_db Participating Nodes (Default Node Priority) db app Startup Policy Online On Home Node Only Fallover Policy Fallover To Next Priority Node In The List Fallback Policy Fallback To Higher Priority Node In The List Service IP Labels/Addresses [db_svc] + Application Servers [dbserver] + Volume Groups [dbvg2] + Use forced varyon of volume groups, if necessary false + Filesystems (empty is ALL for VGs specified) [] + 6.配置串列埠網路 Extended Configuration Extended Topology Configuration Configure HACMP Networks Add a Network to the HACMP cluster 選擇rs232 * Network Name [net_rs232_01] * Network Type rs232 Extended Configuration Extended Topology Configuration ---Configure HACMP Communication Interfaces/Devices ---Add Communication Interfaces/Devices Add Pre-defined communication Interfaces and Devices communication Devices 按照提示選中兩個串列埠名稱 * Device Name db_tty0] * Network Type rs232 * Network Name net_rs232_01 * Device Path [/dev/tty0] * Node Name [db] * Device Name [app_tty0] * Network Type rs232 * Network Name net_rs232_01 * Device Path [/dev/tty0] * Node Name [app] --- Change/Show Communication Interfaces/Devices ----Remove Communication Interfaces/Devices ---Update HACMP Communication Interface with Operating System Settings 7.同步雙機 Extended Configuration Extended verification and synchronization 進去後,先選擇校驗,如果校驗成功再執行同步! 8.測試HA切換 root@ db:/>netstat -in Name Mtu Network Address Ipkts Ierrs Opkts Oerrs Coll en0 1500 link#2 0.21.5e.60.61.70 193 0 113 0 0 en0 1500 192.168.10 192.168.10.24 193 0 113 0 0 en1 1500 link#3 0.21.5e.60.61.71 90 0 29 0 0 en1 1500 192.168.0 192.168.0.14 90 0 29 0 0 lo0 16896 link#1 467 0 469 0 0 lo0 16896 127 127.0.0.1 467 0 469 0 0 lo0 16896 ::1 467 0 469 0 0 root@ db:/>smitty clstart 啟動雙機 * Start now, on system restart or both now + Start Cluster Services on these nodes [app] + * Manage Resource Groups Automatically + BROADCAST message at startup? true + Startup Cluster Information Daemon? false + Ignore verification errors? false + Automatically correct errors found during Interactively Extended Configuration Extended Resource Configuration Extended Topology Configuration --Configure HACMP Nodes -- Configure HACMP Sites -- Configure HACMP Networks -- Configure HACMP Communication Interfaces/Devices -- Configure HACMP Persistent Node IP Label/Addresses -- Configure HACMP Global Networks -- Configure HACMP Network Modules -- Configure Topology Services and Group Services -- Show HACMP Topology 刪除hacmp配置,重新配置 Extended Configuration - Extended Topology Configuration -- Configure an HACMP Cluster ------ Remove an HACMP Cluster |
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/9390331/viewspace-691057/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- hacmp 中一臺硬碟壞換硬碟步驟ACM硬碟
- Laravel5.5 新專案建立步驟Laravel
- hacmp配置ACM
- aix 6.1+hacmp+ oracle 10g rac 安裝步驟AIACMOracle 10g
- oracle 10g rac hacmp 遷移到asm實驗步驟Oracle 10gACMASM
- CentOS安裝MySQL5.5的完整步驟DSITCentOSMySql
- Mac OS 配置Maven步驟MacMaven
- 配置 Windows Terminal 步驟Windows
- laravel 使用guzzlehttp/guzzle 配置步驟LaravelHTTP
- 配置PLSQL Developer詳細步驟SQLDeveloper
- nodejs debug配置步驟NodeJS
- VMware中配置ORACLE DATAGUARD步驟Oracle
- Oracle Stream配置詳細步驟Oracle
- 混合app打包步驟(本地+雲端)HybirdApp本地環境配置步驟APP
- 配置hacmp時出錯ACM
- Linux下編譯安裝Mysql 5.5的簡單步驟Linux編譯MySql
- ubuntu 配置拼音輸入法步驟Ubuntu
- ubuntu 16.04中CAFFE配置步驟Ubuntu
- Logical Standby Database的配置步驟.Database
- Github配置ssh key詳細步驟Github
- PHPMemcache擴充套件安裝配置步驟PHP套件
- PIX 535 LAN FAILOVER 配置步驟AI
- emc cx500儲存配置步驟
- TimesTen CacheGroup配置標準操作步驟
- 讓IIS支援PHP的配置步驟薦PHP
- HACMP 5.4配置磁碟心跳(轉載)ACM
- HACMP 5.4磁碟心跳配置過程ACM
- Oracle 11g dataguard 配置簡約步驟Oracle
- NodeJS、NPM安裝配置步驟(windows版本)NodeJSNPMWindows
- MS/SG 配置步驟及常用命令
- ESXI5.5主機新增共享儲存(netapp fas8040)操作步驟APP
- DKhadoop環境安裝配置步驟詳解Hadoop
- Jaspersoft?Studio新增mysql資料庫配置步驟MySql資料庫
- 如何配置web伺服器的詳細步驟Web伺服器
- Oracle Stream配置詳細步驟(使用者模式)Oracle模式
- 操作步驟
- 模擬生產環境MySQL5.5升級Percona5.6演示步驟薦MySql
- 在RHEL5.5x64上安裝Oracle10gR2的簡單步驟Oracle