免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1182 | 回复: 0
打印 上一主题 下一主题

[集群与高可用] HACMP configuration(3) [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2007-11-04 08:43 |只看该作者 |倒序浏览
安装步骤
安装 HACMP 软件及相应的补丁。本安装指南讲述 HACMP/ES 的安装过程,如果需要使用 HACMP/XD,请参考 IBM 相关资料进行正确安装。将 HACMP V5.4 光盘放入光驱后,请安装以下软件包:
HACMP 软件列表
HACMP Fileset
Description
cluster.es
HACMP/ES Basic software
cluster.es.cfs
HACMP/ES Cluster File System Support
Cluster.es.cspoc
HACMP/ES CSPOC
Cluster.es.plugins
HACMP/ES plug-in software
Cluster.license
HACMP Electronic License
cluster.man.en_US.es
HACMP/ES english man pages
建立集群:通过以下路径进入添加集群界面,然后输入集群名称。
smitty hacmp->Extended Configuration->Extended Topology Configuration ->Configure an HACMP Cluster->Add/Change/Show an HACMP Cluster
Add/Change/Show an HACMP Cluster

[Entry Fields]
* Cluster Name [ha_cluster]

添加节点:通过以下路径进入添加集群节点界面,输入节点名和此节点的通信接口 ( 这里使用上面提到的 Boot ip)。
smitty hacmp->Extended Configuration->Extended Topology Configuration->Configure HACMP Nodes->Add a Node to the HACMP Cluster
添加节点 1
Add a Node to the HACMP Cluster

[Entry Fields]
* Node Name [node1]
Communication Path to Node [ha1_bt1]

以相同方法添加第二个节点。如果有多个节点,以此类推。
添加节点 2
Add a Node to the HACMP Cluster

[Entry Fields]
* Node Name [node2]
Communication Path to Node [ha2_bt1]

在两节点上收集 HACMP 相关信息 ( 可选 ):通过以下路径进行集群信息收集。
smitty hacmp->Extended Configuration->Discover HACMP-related Information from Configured Nodes
Extended Configuration

Discover HACMP-related Information from Configured Nodes
Extended Topology Configuration
Extended Resource Configuration
Extended Cluster Service Settings
Extended Event Configuration
Extended Performance Tuning Parameters Configuration
Security and Users Configuration
Snapshot Configuration
Export Definition File for Online Planning Worksheets

Extended Verification and Synchronization
HACMP Cluster Test Tool

添加网络:HACMP 的网络分为 Discovered network 和 Pre-defined network 两种,如果之前有收集 HACMP 的相关信息,可选 Discovered network;否则,选择 Pre-defined network。此处可以根据此集群采用的心跳方式选择相应的网络,包括 ether network、diskhb network 和 rs232 network。本例中我们采用 IP 别名方式做心跳。
smitty hacmp->Extended Configuration->Extended Topology Configuration->Configure HACMP Networks->Add a Network to the HACMP Cluster
我们采用 IP 网络做为心跳网络,在“IP Address Offset for Heartbeating over IP Aliases”处填写心跳起始地址。本例中每个节点有两个网口并且采用 IP 别名方式做心跳,所以心跳 IP 地址会采用 10.2.25.1,10.2.25.2,10.3.25.1,10.3.25.2 这四个 IP 地址。
Add an IP-Based Network to the HACMP Cluster

[Entry Fields]
* Network Name [net_ether_01]
* Network Type ether
* Netmask [255.255.0.0] +
* Enable IP Address Takeover via IP Aliases [Yes] +
IP Address Offset for Heartbeating over IP Aliases [10.2.25.1]

添加通信接口:
smitty hacmp->Extended Configuration->Extended Topology Configuration->Configure HACMP Communication Interfaces/Devices->Add Communication Interfaces/Devices->Add Discovered Communication Interface and Devices->Communication Interfaces->ALL
Select Point-to-Point Pair of Discovered Communication Devices to Add

Move cursor to desired item and press F7.
ONE OR MORE items can be selected.
Press Enter AFTER making all selections.

[MORE…4]
en0 ha1_bt1 192.168.25.23
# net_ether_01 / node1
en1 ha1_bt2 10.0.25.23
# net_ether_01 / node2
en0 ha2_bt1 192.168.25.24
en1 ha2_bt2 10.0.25.24
[BOTTOM]
选择四个网口 (boot ip) 做为通信接口,然后回车。
添加通信设备(用于串口心跳和磁盘心跳),如果采用 IP 网络做心跳可跳过此步骤:此步骤的样例是采用磁盘心跳的方式,如果采用串口心跳的话,选择串口设备即可。
smitty hacmp->Extended Configuration->Extended Topology Configuration->Configure HACMP Communication Interfaces/Devices->Add Communication Interfaces/Devices->Add Discovered Communication Interface and Devices->Communication Devices
Select Point-to-Point Pair of Discovered Communication Devices to Add

Move cursor to desired item and press F7.
ONE OR MORE items can be selected.
Press Enter AFTER making all selections.

# Node Device Pvid
node2 hdisk3 000d3adaf6804f40
node1 hdisk3 000d3adaf6804f40
node1 tmscsi0
node2 tmscsi0
node1 tmscsi1
选择 node1 和 node2 上的 hdisk3,然后回车即可。
添加应用服务器:在 Server Name 处输入应用的名称,在 Start Script 和 Stop Script 处输入应用的启动和停止脚本的路径。
smitty hacmp->Extended Configuration->Extended Resource Configuration->HACMP Extended Resources Configuration->Configure HACMP Applications Servers->Configure HACMP Application Servers->Add an Application Server
Add Application Server

[Entry Fields]
* Server Name [oracle]
* Start Script [/usr/sbin/start_oracl>
* Stop Script [/usr/sbin/stop_oracle]
Application Monitor Name(s) +
此应用服务的启动和停止脚本就是之前在做准备工作时创建的那两个脚本。


本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u1/38775/showart_414128.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP