HAMCP54配置手册_第1页
HAMCP54配置手册_第2页
HAMCP54配置手册_第3页
HAMCP54配置手册_第4页
HAMCP54配置手册_第5页
已阅读5页,还剩3页未读 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

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(这里仅为模拟测试)81. 软件环境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) p630a_stb p630b_stb p630a_boot p630b_boot p630a_svc p630b_svc3.2 /.rhosts192.168.1.100 192.168.1.200 4. 配置HACMP 以下操作只需在一个节点上操作即可4.1 配置网络拓朴 配置Cluster Name # smitty hacmp Extended Configuration Extended Topology Configuration

4、 Configure an HACMP Cluster Add/Change/Show an HACMP Cluster * Cluster Name testcluster 配置Cluster节点 # smitty hacmp Extended Configuration Extended Topology Configuration Configure HACMP Nodes Add a Node to the HACMP Cluste *NodeName NodeA Communication Path to Node p630a_boot +以同样方法将NodeB添加到Cluster中

5、 *NodeName NodeB Communication Path to Node p630b_boot + 配置HACMP网络.1 创建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 255.255.255.0 +* Enable IP Address Ta

6、keover via IP Aliases Yes + IP Address Offset for Heartbeating over IP Aliases 使用同样的方法创建net_ether_02 * Enable IP Address Takeover via IP Aliases Yes 此选项决定了HACMP的IP切换方式,但值得一提的是只有“boot”、“standby”、“service”三个IP分别为三个不同网段时必须选用IP Aliases方式。如果“boot”、“standby”其中一个与“service”为同一个网段时必须选用IP Replace,则此选项应选“NO”。.

7、2 创建串口心跳网络 # smitty hacmp Extended Configuration Extended Topology Configuration Configure HACMP Networks Add a Network to the HACMP Cluster * NetworkName net_rs232_01* Network Type rs232 .3 创建磁盘心跳网络 # smitty hacmpExtended Configuration Extended Topology ConfigurationConfigure HACMP Networks Add a N

8、etwork to the HACMP Cluster* Network Name net_diskhb_01* Network Type diskhb 添加网络到Cluster.1 创建IP通信接口 # smitty hacmp Extended Configuration Extended Topology Configuration Configure HACMP Networks Configure HACMP Communication Interfaces/Devices Add Communication Interfaces/Device Add Pre-defined Com

9、munication Interfaces and Devices Communication Interfaces * IP Label/Address p630a_boot + * Network Type ether * Network Name 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

10、NodeB + Network Interface 同样方法创建另一个通信接口 * IP Label/Address p630a_ stb + * Network Type ether * Network Name net_ether_02 * Node Name NodeA + Network Interface * IP Label/Address p630b_ stb + * Network Type ether * Network Name net_ether_02 * Node Name NodeB + Network Interface .2 创建串口通信设备 # smitty h

11、acmp 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 rs232_node_a * Network Type rs232 * Netwo

12、rk Name net_rs232_01 * Device Path /dev/tty0 * Node Name NodeA + 以同样方法创建另一个串口通信设备 * Device Name rs232_node_b * Network Type rs232 * Network Name net_rs232_01 * Device Path /dev/tty0 * Node Name NodeB +.3 创建磁盘通信设备 # smitty hacmp Extended Configuration Extended Topology Configuration Configure HACMP N

13、etworks 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 + 同样方法创建另

14、一个磁盘通信设备 * Device Name diskhb_node_b * Network Type diskhb * Network Name net_diskhb_01 * Device Path /dev/hdisk1 * Node Name NodeA + 做磁盘心跳的磁盘必须将VG创建为Concurrent模式4.2 配置HACMP资源 配置资源.1 创建Applications Servers # smitty hacmp Extended Configuration Extended Resource Configuration HACMP Extended Resources

15、 Configuration Configure HACMP Applications Servers Add an Application Server * Server Name appserver * Start Script /hascript/clstart.sh* Stop Script /hascript/clstop.sh需要手动在两个节点上建立“/hascript/clstart.sh”、“/hascript/clstop.sh”并保证其有执行权限。如果是双机互备的话需要建立两个App Server。方法相同。.2 创建Service IP # smitty hacmp Ex

16、tended 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 p630a_svc +* Network Name net_ether_01 同样方法配置第二个Service IP * IP Label/Address p630b_

17、svc +* Network Name net_ether_02 Network Name:“net_ether_01”、“ net_ether_02” 决定了与之对应的Service IP默认在哪个网卡上启动。 配置资源组.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 +

18、 Startup Policy Online On Home Node O + Fallover Policy Fallover To Next Prio + Fallback Policy Fallback To Higher Pr +如果是双机互备的话以同样方法建立另一个资源组 * Resource Group Name rg_node_b Participating Nodes (Default Node Priority) NodeB NodeA + “Participating Nodes”选项决定了资源组中节点的优先级,写在前面的节点其优先级高于后面的节点。 根据实际需求决定资源组

19、的:“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:在所有

20、启动的节点中启动。做并发群集时选择此项。如: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:不进行资源

21、组回迁.2 配置资源组属性 # smitty hacmp Extended Configuration Extended Resource 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 Pr

22、io Fallback Policy Fallback To Higher Pr Fallback Timer Policy (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 f

23、or 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 +Communicat

24、ion 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 + verificat

25、ion? * Force synchronization if verification fails? No +* 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 BROADCAST message at startup? true Startup Cluster Inf

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论