Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1792242
  • 博文数量: 293
  • 博客积分: 10127
  • 博客等级: 上将
  • 技术积分: 3029
  • 用 户 组: 普通用户
  • 注册时间: 2010-08-12 19:05
文章分类

全部博文(293)

文章存档

2011年(11)

2010年(282)

我的朋友

分类:

2010-09-28 11:08:09

环境:
AIX 5L 
HACMP 5.2/5.3/5.4

步骤:

1.获取当前HACMP环境里配置的IP地址
#/usr/sbin/cluster/utilities/cllsif > /tmp/cllsif.orig

/tmp/cllsif.orig文件里就会包含HACMP网卡当前的IP地址

2.停止所有节点的HACMP服务
#smit clstop --> 选择HA的两个节点 --> 回车

3.在两个节点上分别编辑/etc/hosts,将boot, standby, service更改成要求的IP地址

4.在两个节点上分别用”smit chinet”更改boot和standby网卡的IP为要求的IP,需要和/etc/hosts中的IP对应一致

5.在两个节点上互相ping对方的boot和standby的IP,确保能ping通

6.在HACMP配置里更改IP
6.1.更改Service IP
第一步:删除原来的service IP label
# smit hacmp --> Extended Configuration --> Extended Resource Configuration --> HACMP Extended Resources Configuration --> Configure HACMP Service IP Labels/Addresses --> Remove Service IP Label(s)/Address(es) --> 选择IP标签 --> 回车

第二步:添加新的Service IP Label
# smit hacmp --> Extended Configuration --> Extended Resource Configuration --> HACMP Extended Resources Configuration --> Configure HACMP Service IP Labels/Addresses --> Add a Service IP Label/Address --> Configurable on Multiple Nodes --> 选择网络(比如net_ether_01) --> 在IP Label/Address处选择新的Server IP标签(列表中应该能看到更改后的server IP) --> 回车

6.2.更改boot IP
# smit hacmp --> Extended Configuration --> Extended Topology Configuration --> Configure HACMP Nodes --> Change/Show a Node in the HACMP Cluster --> 选择一个节点 --> 在Communication Path to Node处重新选择新的boot IP --> 回车执行

用同样的方法为另一个节点选择新的boot IP

6.3.更改standby IP
第一步:删除原来的standby interface
# smit hacmp --> Extended Configuration --> Extended Topology Configuration --> Configure HACMP Communication Interfaces/Devices --> Remove Communication Interfaces/Devices --> 选择一个节点的standby接口 --> 回车执行

第二步:添加新的standby interface到网络(比如net_ether_01)中
# smit hacmp --> Extended Configuration --> Extended Topology Configuration --> Configure HACMP Communication Interfaces/Devices --> Add Communication Interfaces/Devices --> Add Pre-defined Communication Interfaces and Devices --> Communication Interfaces --> 选择网络(比如net_ether_01) --> 在IP Label/Address处选择更改后的standby IP,在Node Name处选择standby IP对应的节点名,在Network Interface处输入standby IP对应的网络接口 --> 回车执行

用上述方法更改另一个节点的standby IP。

7.同步HACMP
#smit hacmp --> Extended Configuration --> Extended Verification and Synchronization --> 在Verify, Synchronize or Both处选择Both --> 回车执行

8.检查更改是否生效
1) #cd /var/hacmp/odmcache
2) 进入另一个节点名为名字的文件夹
3) #cd _etc_objrepos
4) #export ODMDIR=./
5) #odmget CuAt | grep –p enX //enX为boot后者standby的接口名
6) 察看上述命令输出的IP地址是否已经是更改后的,然后用同样的方法察看本节点的IP地址是否已经被改变。
7) #export ODMDIR=/etc/objrepos //将ODM的路径改回原来的路径

如果条件允许,也请在另一个节点上察看ODM的IP记录是否变更正确。

9.启动HACMP服务
# smit clstart --> 选择两个节点启动
#/usr/sbin/cluster/utilities/cllsif > /tmp/cllsif.new //查看HA启动后的IP设置,比较/tmp/cllsif.new文件和先前的/tmp/cllsif.orig文件,所有ip地址的改变都将反映出来。

10. 进行必要的HACMP资源接管测试。
阅读(1004) | 评论(1) | 转发(0) |
给主人留下些什么吧!~~

chinaunix网友2010-09-28 15:54:37

很好的, 收藏了 推荐一个博客,提供很多免费软件编程电子书下载: http://free-ebooks.appspot.com