




免费预览已结束,剩余6页可下载查看
下载本文档
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
HACMP 6.1配置文档目 录1.软件环境11.1 AIX 6100-01-09-101511.2 HAMCP 6.11usr/bin/lslpp -l pat.clients.hacmp22. 硬件环境23. 系统环境33.1 /etc/hosts34. 配置HACMP 以下操作只需在一个节点上操作即可34.1 配置网络拓朴34.1.1 配置Cluster Name34.1.2 配置Cluster节点34.1.3 配置HACMP网络34.1.4 添加网络到Cluster 校验并同步HACMP配置64.2 配置HACMP资源64.2.1 配置资源64.2.2 配置资源组75. 校验并同步HACMP配置86. 启动/停止HACMP86.1 启动HACMP(快速路径:#smitty clstart)86.2 停止HACMP(快速路径:#smitty clstop)96.3切换HA服务到另外一台服务器(快速路径:#smitty clstop)107. 测试HACMP(这里仅为模拟测试)101. 准备工作:打所有rsct包Bos.Datativoli 和haview不装1. 软件环境1.1 AIX 6100-01-09-10151.2 HAMCP 6.11.1 安装hacmp的aix基本包如下:.tcp.serverbos.rte.SRCbos.rte.libcbos.rte.libcfgbos.rte.libcurbos.rte.libpthreadsbos.rte.odmbos.databos.rte如果需要并发vg需要安装下面的包:bos.clvm.enh (as required by the LVM)需要安装用到nfs4协议需要安装下列包:For AIX Version 5.3:_ .nfs.server _ .nfs.client AIX Version 6.1:_ .nfs.server _ .nfs.client 需要确定rsct的级别:/usr/bin/lslpp -l pat.basic.hacmp/usr/bin/lslpp -l pat.clients.hacmp/usr/bin/lslpp -l rsct.basic.rte2. 硬件环境P750分区1台P750分区1台svc存储一台3. 系统环境3.1 /etc/hosts loopback localhost # loopback (lo0) name/address00 oradb1_boot01 oradb2_boot0 oradb1_boot1 oradb2_boot28 orasvc0 oradb1_per oradb11 oradb2_per oradb2 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 erpcluster 4.1.2 配置Cluster节点 # smitty hacmp Extended Configuration Extended Topology Configuration Configure HACMP Nodes Add a Node to the HACMP Cluste *NodeName oradb1 Communication Path to Node oradb1_boot1 +以同样方法将NodeB添加到Cluster中 *NodeName oradb2 Communication Path to Node oradb2_boot1 +4.1.3 配置HACMP网络 创建IP网络 # smitty hacmp Extended Configuration Extended Topology Configuration Configure HACMP Networks Add a Network to the HACMP Cluster * NetworkName net_ether_01 * NetworkType ether * Netmask +* Enable IP Address Takeover via IP Aliases Yes + IP Address Offset for Heartbeating over IP Aliases YES * Enable IP Address Takeover via IP Aliases Yes 此选项决定了HACMP的IP切换方式,但值得一提的是只有“boot”、“standby”、“service”三个IP分别为三个不同网段时必须选用IP Aliases方式。如果“boot”、“standby”其中一个与“service”为同一个网段时必须选用IP Replace,则此选项应选“NO”。 创建磁盘心跳网络 # 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 添加网络到Cluster 创建IP通信接口 # smitty hacmp Extended 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 oradb1_boot1 + * Network Type ether * Network Name net_ether_01 * Node Name oradb1 + Network Interface 同样方法添加另一个通信接口到”net_ether_01” * IP Label/Address oradb2_boot1 + * Network Type ether * Network Name net_ether_01 * Node Name oradb2 + Network Interface 同样方法创建另一个通信接口 * IP Label/Address oradb1_boot2 + * Network Type ether * Network Name net_ether_01 * Node Name oradb1 + Network Interface * IP Label/Address oradb2_boot2 + * Network Type ether * Network Name net_ether_01 * Node Name oradb2 + Network Interface 创建磁盘通信设备 # smitty hacmp Extended Configuration Extended Topology Configuration Configure HACMP Networks Configure HACMP Communication Interfaces/Devices Add Communication Interfaces/Device Add Pre-defined Communication 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 * Node Name NodeA +做磁盘心跳的磁盘必须将VG创建为Concurrent模式4.1.5 增加:配置persistent id地址: # smitty hacmp Extended Configuration Extended Topology Configuration Configure HACMP Persistent Node IP Label/Addresses Add a Persistent Node IP Label/Address 首先选择第一台主机:oradb1 * Node Name oradb1 * Network Name net_ether_01 * Node IP Label/Address oradb1_per * Netmask(IPv4)/prefix Length(IPv6) + 首先选择第二台主机:oradb2 * Node Name oradb2 * Network Name net_ether_01 * Node IP Label/Address oradb2_per * Netmask(IPv4)/prefix Length(IPv6) + 校验并同步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 +* Verify changes only? No +* Logging Standard +4.2 配置HACMP资源4.2.1 配置资源 创建Applications Servers # smitty hacmp Extended Configuration Extended Resource Configuration HACMP Extended Resources Configuration Configure HACMP Applications Servers Add an Application Server * Server Name db2app * Start Script /etc/db2_start.sh* Stop Script /etc/db2_stop.shApplication Monitor Name(s) 同样的方式增加第二个服务 * Server Name sapapp * Start Script /etc/sap_start.sh* Stop Script /etc/sap_stop.shApplication Monitor Name(s) 需要手动在两个节点上建立“/hascript/clstart.sh”、“/hascript/clstop.sh”并保证其有执行权限。如果是双机互备的话需要建立两个App Server。方法相同。 创建Service IP # smitty hacmp Extended Configuration Extended Resource Configuration HACMP Extended Resources Configuration Configure HACMP Service IP Labels/Addresses Add a Service IP Label/AddressConfigurable on Multiple Nodes * IP Label/Address erpprd + Netmask(IPv4)/Prefix Length(IPv6) * Network Name net_ether_01 Alternate HW Address to accompany IP Label/Address 4.2.2 配置资源组 创建资源组 # smitty hacmp Extended Configuration Extended Resource Configuration HACMP Extended Resource Group Configuration Add a Resource Group* Resource Group Name db2rg Participating Nodes (Default Node Priority) oradb1 oradb2 + Startup Policy Online On Home Node O + Fallover Policy Fallover To Next Prio + Fallback Policy Fallback To Higher Pr +如果是双机互备的话以同样方法建立另一个资源组* Resource Group Name saprg Participating Nodes (Default Node Priority) oradb2 oradb1 + Startup Policy Online On Home Node O + Fallover Policy Fallover To Next Prio + Fallback Policy Fallback To Higher Pr + “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:不进行资源组回迁 配置资源组属性 # smitty hacmp Extended Configuration Extended Resource Configuration HACMP Extended Resource Group Configuration Change/Show Resources and Attributes for a Resource Group Resource Group Name rg_node_a Participating Nodes (Default Node Priority) oradb1 oradb2 Startup Policy Online On Home Node O Fallover Policy Fallover To Next Prio Fallback Policy Fallback To Higher Pr Fallback Timer Policy (empty is immediate) + Service IP Labels/Addresses erpprd +Application Servers db2app sapapp + Volume Groups db2vg sapvg+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+Filesystems 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 Workload 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 +* Verify changes only? No +* Logging Standard +6. 启动/停止HACMP6.1 启动HACMP(快速路径:#smitty clstart) # smitty hacmp System Management (C-SPOC) HACMP Services Start Cluster Services * Start now, on system restart or both now Start Cluster Services on these nodes oradb1 * Manage Resource Groups Automatically BROADCAST message at startup? true Startup Cluster Information Daemon? false Ignore verification errors? falsbe Automatically correct errors found during Interactively cluster start? 在P550上启动hacmp服务:Start Cluster Services on these nodes 表示资源在哪台主机上启动。* Manage Resource Groups 一般都不要修改(默认即可)。BROADCAST message at startup? 启动的过程中是否提示消息。 Startup Cluster Information Daemon? 启动cluster的时候是有相关的信息。 Ignore verification errors? 启动集群的过程中是否忽略错误。 6.2 停止HACMP(快速路径:#smitty clstop) #
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 2025版招投标投标担保合同解除条件及法律后果
- 2025年度智能设备采购与管理规范合同
- 2025年度智能硬件开发与应用合伙协议
- 新能源微电网稳定性控制与新能源发电系统谐波治理报告
- 2025电子商务平台会员管理与基础应用服务协议
- 2025版离婚房屋下载全新协议范本
- 2025年智能停车场车位销售及管理服务合同范本
- 2025版商场内快闪店场地租赁与推广合作合同
- 2025版图书售后服务与客户保障合同范本
- 2025年度水利工程专用土工布采购及施工服务合同
- 八年级下册美术提纲
- 内部准驾证管理办法
- 2023年单螺杆泵的结构设计与性能分析全套图纸
- 无创正压通气护理
- GB/T 20481-2017气象干旱等级
- 风电发电机组电控系统知识-安全链部分课件
- 医疗质量管理工具课件
- 急性上呼吸道感染病人的护理
- 小学教师量化考核表
- 房建监理平行检查记录表格模板(参考版)
- 计算机操作系统(第四版)-汤小丹-课后习题答案
评论
0/150
提交评论