收藏 分享(赏)

HA的简单配置过程.doc

上传人:gnk289057 文档编号:8955209 上传时间:2019-07-18 格式:DOC 页数:6 大小:80KB
下载 相关 举报
HA的简单配置过程.doc_第1页
第1页 / 共6页
HA的简单配置过程.doc_第2页
第2页 / 共6页
HA的简单配置过程.doc_第3页
第3页 / 共6页
HA的简单配置过程.doc_第4页
第4页 / 共6页
HA的简单配置过程.doc_第5页
第5页 / 共6页
点击查看更多>>
资源描述

1、环境:两台 52A,AIX5305 HA5.4应用:weblogicHA 的配置都在一台机器上完成一、第 1 阶段1、 IP 规划vi 编辑 etc/hosts(两台机器上都配置)127.0.0.1 loopback localhost #loopback (lo0) name address192.168.1.110 app1_boot1192.168.2.110 app1_boot210.32.127.23 app1_per10.32.127.32 app_serv192.168.1.111 app2_boot1192.168.2.111 app2_boot210.32.127.24 ap

2、p2_per2、 配置网卡基本上使用小机自带的双端口网卡。smitty tcpip en0: boot1 en1: boot23、 创建应用系统启动和停止脚本的目录#touch /home/appserver/start_app.sh#touch /home/appserver/stop_app.sh4、 创建串口设备smitty tty 选择 tty 类型为 tty rs232,端口为 0,波特率为 96005、 创建卷组和文件系统以下是在两台机器上的操作顺序:创建共享 VG A 机器 B 机器Smitty mkvg 修改两个参数为 NOVaryoffvg datavgImportvg y

3、datavg hdisk2Smitty chvg 修改两个参数为 NoVaryonvg datavgSmitty chvg 修改两个参数为 noVaryoffvg datavg Varyoffvg datavg创建 JFS2 A 机器 B 机器Varyonvg datavgSmitty crfs 选择创建 JFS2 文件系统Varyoffvg datavgExportvg datavgImportvg y datavg hdisk2Smitty chvg 修改两个参数为no二、第 2 阶段(HACMP 的 standard 配置阶段)1、添加集群名和节点名Smitty hacmpInitial

4、ization and Standard Configuration Extended Configuration System Management (C-SPOC) Problem Determination Tool Add Nodes to an HACMP Cluster Configure Resources to Make Highly Available Configure HACMP Resource Groups Verify and Synchronize HACMP Configuration Display HACMP Configuration * Cluster

5、Name appcluster New Nodes (via selected communication paths) app1_boot1 app2_boot1 app1_boot1 app2_boot2 2、配置 cluster 资源a) 添加 service ip#Smitty hacmpInitialization and Standard Configuration Extended Configuration System Management (C-SPOC) Problem Determination Tool Add Nodes to an HACMP Cluster Co

6、nfigure Resources to Make Highly Available Configure HACMP Resource Groups Verify and Synchronize HACMP Configuration Display HACMP ConfigurationConfigure Service IP Labels/Addresses Configure Application Servers Configure Volume Groups, Logical Volumes and Filesystems Configure Concurrent Volume Gr

7、oups and Logical Volumes Add a Service IP Label/Address Change/Show a Service IP Label/Address Remove Service IP Label(s)/Address(es) 添加服务 IP 给 weblogic 服务使用。如果有另外的 oracle 服务,则在另外一台机器上继续添加服务 IP。IP Label/Address app_svc Network Name net_ether_01 此网络名称根据实际情况而定,并不一定第一个网络就肯定是net_ether_01,所以当出现是net_ether

8、_02时请大家不要惊慌。a) 添加 application serverSmitty hacmpInitialization and Standard Configuration Extended Configuration System Management (C-SPOC) Problem Determination Tool Add Nodes to an HACMP Cluster Configure Resources to Make Highly Available Configure HACMP Resource Groups Verify and Synchronize HAC

9、MP Configuration Display HACMP ConfigurationConfigure Service IP Labels/Addresses Configure Application Servers Configure Volume Groups, Logical Volumes and Filesystems Configure Concurrent Volume Groups and Logical Volumes* Server Name appsvc* Start Script /etc/appscript/appstart.sh* Stop Script /e

10、tc/appscript/appstop.sh用同样方法可以添加 oracle 服务,如果有此服务的话。3、创建集群的资源组Smitty hacmpInitialization and Standard Configuration Extended Configuration System Management (C-SPOC) Problem Determination Tool Add Nodes to an HACMP Cluster Configure Resources to Make Highly Available Configure HACMP Resource Groups

11、Verify and Synchronize HACMP Configuration Display HACMP ConfigurationAdd a Resource Group Change/Show a Resource Group Remove a Resource Group Change/Show Resources for a Resource Group (standard) 选择资源组类型 Cascading Rotating Concurrent Custom 添加 APP 资源* Resource Group Name appsvc* Participating Node

12、 Names / Default Node Priority app1 app2 注意修改顺序,表明优先级4、配置资源Smitty hacmpInitialization and Standard Configuration Extended Configuration System Management (C-SPOC) Problem Determination Tool Add Nodes to an HACMP Cluster Configure Resources to Make Highly Available Configure HACMP Resource Groups Ver

13、ify and Synchronize HACMP Configuration Display HACMP ConfigurationAdd a Resource Group Change/Show a Resource Group Remove a Resource Group Change/Show Resources for a Resource Group (standard)选择appsvcResource Group Name dbrg apprgParticipating Node Names (Default Node Priority) db01 db02 db02 db01

14、Service IP Labels/Addresses db_svc app_svc Volume Groups datavg (dbvg) (appvg)Filesystems (empty is ALL for VGs specified) Application Servers appsvc5、创建串口通信设备# smitty hacmp Extended Configuration Extended Topology ConfigurationConfigure HACMP NetworksConfigure HACMP Communication Interfaces/Devices

15、Add Communication Interfaces/DeviceAdd Pre-defined Communication Interfaces and DevicesCommunication Devices* Device Name rs232_nodeA * Network Type rs232 * Network Name net_rs232_01 * Device Path /dev/tty0 * Node Name NodeA +以同样方法创建另一个串口通信设备* Device Name rs232_nodeB * Network Type rs232 * Network N

16、ame net_rs232_01 * Device Path /dev/tty0 * Node Name NodeB6、群集 #smitty hacmp 同步Initialization and Standard Configuration Extended Configuration System Management (C-SPOC) Problem Determination Tools Discover HACMP-related Information from Configured NodesExtended Topology ConfigurationExtended Resou

17、rce ConfigurationExtended Cluster Service SettingsExtended Event ConfigurationExtended Performance Tuning Parameters ConfigurationSecurity and Users ConfigurationSnapshot ConfigurationExport Definition File for Online Planning WorksheetsExtended Verification and SynchronizationHACMP Cluster Test Too

18、lEntry Fields* Verify, Synchronize or Both Both +* Automatically correct errors found during Yes + verification?* Force synchronization if verification fails? No * Verify changes only? No * Logging Standard (选择自动修正错误) 三、第 3 阶段(测试)tail f /tmp/hacmp.out 跟踪输出ifconfig alsvg osmitty clstop 用 takeover 方式 down 掉一个 node由于本人能力有限,对于文中出现的差错望请大家多多赐教。联系方式:QQ 274349019

展开阅读全文
相关资源
猜你喜欢
相关搜索

当前位置:首页 > 企业管理 > 管理学资料

本站链接:文库   一言   我酷   合作


客服QQ:2549714901微博号:道客多多官方知乎号:道客多多

经营许可证编号: 粤ICP备2021046453号世界地图

道客多多©版权所有2020-2025营业执照举报