3机HACMP安装与配置.doc_第1页
3机HACMP安装与配置.doc_第2页
3机HACMP安装与配置.doc_第3页
3机HACMP安装与配置.doc_第4页
3机HACMP安装与配置.doc_第5页
已阅读5页,还剩12页未读 继续免费阅读

下载本文档

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

文档简介

1. HACMP安装与配置1.1. HACMP系统环境1.1.1. 软件环境AIX 5300-06HAMCP 5.4AIX 与 RSCT 版本要求 AIX 5L VersionRSCT VersionRSCT FilesetsAIX 5L Version 5.3 TL12.4.2 pat.basic.hacmp pat.clients.hacmp rsct.core.sec rsct.core.rmc AIX BOS 软件要求 AIX 5L BOS ComponentAIX 5L V5.3 TL1 或更新版本.tcp.server4bos.rte.SRC0bos.rte.libc4bos.rte.libcfgbos.rte.libcur0bos.rte.libptdreads2bos.rte.odm1bos.data (require for cluster.man.en_US.es) 0bos.clvm.enh (require for CLVM)bos.rte.lvm.rte (require for CLVM) 1.1.2. HACMP补丁安装补丁下载网址是: /servers/eserver/support/unixservers/aixfixes.html 1.在Specific fixes 选择您的操作系统 2.在Search by 的下拉菜单 选择APAR number or abstract,输入IY97391,选择GO 3.点中搜索出来IY条目,选择Add to my download list 选择continue 在View my download list下面只选中Include requisites和Include fixes that correct regressions 在oslevel -r下拉菜单选择自己的操作系统ML级别 在lslpp -Lc 处不用填写,选择continue 4.选择使用Download all filesets using Java applet 来下载到本地 安装: 1. 将上面下载的文件集以bin方式上传到AIX某个空目录中 2.smitty update_all -INPUT device / directory for software选择步骤1中的目录 3.将参数COMMIT software updates?设置为NO,将SAVE replaced files?设置为YES,ACCEPT new license agreements?选择YES,回车安装。1.1.3. 硬件环境P5 570 一台P5 590两台DS4800存储一台串口线三根 1.1.4. 系统环境570上配置/etc/hosts如下 loopback localhost p57051 p590a_t 52 p590b_t 50 p570_t p590a_boot1 p590b_boot1 p570_boot1 p590a_boot2 p590b_boot2 p570_boot2 2 erp_svc6 cw_svc 590a 上配置/etc/hosts如下loopback localhost 590a # loopback (lo0) name/address51 p590a_t 52 p590b_t 50 p570_t p590a_boot1 p590b_boot1 p570_boot1 p590a_boot2 p590b_boot2 p570_boot2 2 erp_svc6 cw_svc590b上配置/etc/hosts如下loopback localhost 590b # loopback (lo0) name/address51 p590a_t 52 p590b_t 50 p570_t p590a_boot1 p590b_boot1 p570_boot1 p590a_boot2 p590b_boot2 p570_boot2 2 erp_svc6 cw_svc1.2. 配置HACMP 以下操作只需在一个节点上操作即可1.2.1. 配置网络拓朴配置Cluster Name # smitty hacmp Extended Configuration Extended Topology Configuration Configure an HACMP Cluster Add/Change/Show an HACMP Cluster * Cluster Name jmamg 配置Cluster节点 # smitty hacmp Extended Configuration Extended Topology Configuration Configure HACMP Nodes Add a Node to the HACMP Cluste*NodeName p590a Communication Path to Node p590_boot1 +以同样方法将p590b添加到Cluster中 *NodeName p590b Communication Path to Node p590b _boot1 +以同样方法将p570添加到Cluster中*NodeName p570 Communication Path to Node p570 _boot1 +1.2.2. 配置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 创建串口心跳网络 # smitty hacmp Extended Configuration Extended Topology Configuration Configure HACMP Networks Add a Network to the HACMP Cluster* NetworkName net_rs232_01* Network Type rs232 1.2.3. 添加网络到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 p590a_boot1 + * Network Type ether * Network Name net_ether_01 * Node Name p590a + Network Interface 同样方法添加另一个通信接口到”net_ether_01” * IP Label/Address p590 b_boot1 + * Network Type ether * Network Name net_ether_01 * Node Name p590b + Network Interface 同样方法添加另一个通信接口到”net_ether_01” * IP Label/Address p570_boot1 + * Network Type ether * Network Name net_ether_01 * Node Name p570 + Network Interface 同样方法创建另一个通信接口* IP Label/Address p590a_ boot2 + * Network Type ether * Network Name net_ether_01 * Node Name p590a + Network Interface * IP Label/Address p590b_ boot2 + * Network Type ether * Network Name net_ether_01 * Node Name p590b + Network Interface * IP Label/Address p570_ boot2 + * Network Type ether * Network Name net_ether_01 * Node Name p570 + 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 rs232_02 * Network Type rs232 * Network Name net_rs232_01 * Device Path /dev/tty0 * Node Name p590a + 用同样方法创建另一个串口通信设备* Device Name rs232_02 * Network Type rs232 * Network Name net_rs232_01 * Device Path /dev/tty0 * Node Name p590b +用同样方法创建所有串口通信设备1.2.4. 配置HACMP资源配置资源 创建Applications Servers # smitty hacmp Extended Configuration Extended Resource Configuration HACMP Extended Resources Configuration Configure HACMP Applications Servers Add an Application Server * Server Name app_erp * Start Script /etc/hacmp/start.sh* Stop Script /etc/hacmp/stop.sh需要手动在三个节点上建立“/etc/hacmp/start.sh”、“/etc/hacmp/stop.sh”并保证其有执行权限。方法相同。用同样方法再建一个 application sever# smitty hacmp Extended Configuration Extended Resource Configuration HACMP Extended Resources Configuration Configure HACMP Applications Servers Add an Application Server * Server Name app_cw * Start Script /etc/hacmp/start.sh* Stop Script /etc/hacmp/stop.sh创建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 erp_svc +* Network Name net_ether_01 同样方法配置第二个Service IP * IP Label/Address cw_svc +* Network Name net_ether_01 配置资源组创建资源组 # smitty hacmp Extended Configuration Extended Resource Configuration Add a Resource Group* Resource Group Name rg_erp Participating Nodes (Default Node Priority) p590a p570 + Startup Policy Online On Home Node O + Fallover Policy Fallover To Next Prio + Fallback Policy Fallback To Higher Pr +再建一个资源组 Extended Configuration Extended Resource Configuration Add a Resource Group* Resource Group Name rg_cw Participating Nodes (Default Node Priority) p590b p570 + 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 Change/Show Resources and Attributes for a Resource Group Resource Group Name rg_erp 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 Policy (empty is immediate) + Service IP Labels/Addresses erp_svc +Application Servers app_erpr + Volume Groups datavg_erp 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 +如果是双机互备以同样方法修改另一个资源组属性 # smitty hacmp Extended Configuration Extended Resource Configuration Change/Show Resources and Attributes for a Resource Group Resource Group Name rg_cw 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 Policy (empty is immediate) + Service IP Labels/Addresses cw_svc +Application Servers app_cw + Volume Groups datavg_cw 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 +1.2.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 +1.2.6. 启动/停止HACMP启动HACMP(快速路径:#smitty clstart) # smitty hacmp System Management (C-SPOC) Manage HACMP Services Start Cluster Services * Start now, on system restart or both now 注:选择both后,以后如果系统启动,hacmp也跟着启动,目前晋煤需手工启动 Start Cluster Services on these nodes NodeA NodeB * 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? 停止HACMP(快速路径:#smitty clstop) # smitty hacmp System Management (C-SPOC) Manage HACMP Services Stop Cluster Services * Stop now, on system restart or both now+ Stop Cluster Services on these nodes NodeA NodeB + BROADCAST cluster shutdown? true+*Select an Action on Resource Groups Move Resource Groups+# smitty hacmp Institalization and Standard ConfigurationDISPLAY HACMP ConfiguarationCluster Name: jamghaCluster Connection Authentication Mode: StandardCluster Message Authentication Mode: NoneCluster Message Encryption: NoneUse Persistent Labels for Communication: NoThere are 3 node(s) and 5 network(s) definedNODE p570: Network net_ether_01 cw_svc 6 erp_svc 2 p570_boot2 p570_boot1 Network net_rs232_01 Network net_rs232_02 Network net_rs232_03 p570_tty1_01 /dev/tty1 Network net_rs232_04 p570_tty2_01 /dev/tty2NODE p590a: Network net_ether_01 cw_svc 6 erp_svc 2 p590a_boot1 p590a_boot2 Network net_rs232_01 Network net_rs232_02 p590a_tty0_01 /dev/tty0 Network net_rs232_03 p590a_tty1_01 /dev/tty1 Network net_rs232_04NODE p590b: Network net_ether_01 cw_svc 6 erp_svc 2p590b_boot1 p590b_boot2 Network net_rs232_01 Network net_rs232_02 p590b_tty0_01 /dev/tty0 Network net_rs232_03 Network net_rs232_04 p590b_tty2_01 /dev/tty2 Resource Group rg_erp 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 Participating Nodes p590a p570 Service IP Label erp_svc Resource Group rg_cw Startup Policy Online

温馨提示

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

评论

0/150

提交评论