版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
1、HACMP 5.4配置文档1.软件环境21.1 AIX 5300-0521.2 HAMCP 5.422. 硬件环境23. 系统环境23.1 /etc/hosts23.2 /.rhosts24. 配置HACMP 以下操作只需在一个节点上操作即可24.1 配置网络拓朴24.1.1 配置Cluster Name24.1.2 配置Cluster节点24.1.3 配置HACMP网络34.1.3.1 创建IP网络34.1.3.2 创建串口心跳网络34.1.3.3 创建磁盘心跳网络34.1.4 添加网络到Cluster34.1.4.1 创建IP通信接口34.1.4.2 创建串口通信设备44.1.4.3 创建
2、磁盘通信设备54.2 配置HACMP资源54.2.1 配置资源54.2.1.1 创建Applications Servers54.2.1.2 创建Service IP54.2.2 配置资源组64.2.2.1 创建资源组64.2.2.2 配置资源组属性65. 校验并同步HACMP配置76. 启动/停止HACMP76.1 启动HACMP(快速路径:#smitty clstart)76.2 停止HACMP(快速路径:#smitty clstop)87. 测试HACMP(这里仅为模拟测试)8 1. 软件环境1.1 AIX 5300-051.2 HAMCP 5.42. 硬件环境P630两台DS4300存
3、储一台串口线一根 3. 系统环境3.1 /etc/hosts 127.0.0.1 loopback localhost p630a(另一节点为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 以下操作只需在一个节点上操作即可4.1 配置网络拓朴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节点 # 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网络4.1.3.1 创建IP网络 # 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 使用同样的方法创建net_ether_02 * Enable IP Address Takeover via IP Aliases
7、 Yes 此选项决定了HACMP的IP切换方式,但值得一提的是只有“boot”、“standby”、“service”三个IP分别为三个不同网段时必须选用IP Aliases方式。如果“boot”、“standby”其中一个与“service”为同一个网段时必须选用IP Replace,则此选项应选“NO”。4.1.3.2 创建串口心跳网络 # 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 创建磁盘心跳网络 # 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 添加网络到Cluster4.1.4.1 创建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 同样方法创建另一个通信接口 * 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 创建串口通信设备 # 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 + 以同样方法创建另一个串口通信设备 * 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 创建磁盘通信设备 # 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 + 同样方法创建另一个磁盘通信设备 * Device Name diskhb_node_b * Network Type diskhb * Network Name net_diskhb_01 * Device Path /dev/hdisk1
15、 * Node Name NodeA + 做磁盘心跳的磁盘必须将VG创建为Concurrent模式4.2 配置HACMP资源4.2.1 配置资源4.2.1.1 创建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需要手动在两个节点上建立“/hascript/clstart.sh”、“/hascript/clstop.sh”并保证其有执行权限。如果是双机互备的话需要建立两个App Server。方法相同。4.2.1.2 创建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” 决定了与之对应的Service IP默认在
18、哪个网卡上启动。 4.2.2 配置资源组4.2.2.1 创建资源组 # 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”选项决定了资源组中节点的优先级,写在前面的节点其优先级高于后面的节点。 根据实际需求决定资源组的:“Startup Policy”、“Fallover Policy”、“Fallback Policy”。 Startup Policy:Onli
20、ne 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
21、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:不进行资源组回迁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. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 2025版年薪制劳动合同:能源企业关键岗位人才协议4篇
- 2025年度人工智能技术应用居间合同范本4篇
- 2025年度新能源技术研发担保合同2篇
- 2025年度智能家居门窗品牌租赁合同范本4篇
- 2025年度精密模具租赁服务合同模板4篇
- 2025年度智慧社区建设项目承揽合同建设施工合同书3篇
- 2025年度暖气系统安装与售后服务合同范本4篇
- 2025年度输电线路钢管工劳务分包工程合同范本2篇
- 二零二五年度城市公园绿化养护承包合同4篇
- 2025年度鱼塘租赁合同(含渔业市场调研与分析)4篇
- 中药材产地加工技术规程 第1部分:黄草乌
- 危险化学品经营单位安全生产考试题库
- 基于视觉的工业缺陷检测技术
- 案例分析:美国纽约高楼防火设计课件
- 老客户维护方案
- 移动商务内容运营(吴洪贵)任务一 用户定位与选题
- 万科物业管理公司全套制度(2016版)
- 2021年高考化学真题和模拟题分类汇编专题20工业流程题含解析
- 工作证明模板下载免费
- (完整word)长沙胡博士工作室公益发布新加坡SM2考试物理全真模拟试卷(附答案解析)
- 机械点检员职业技能知识考试题库与答案(900题)
评论
0/150
提交评论