免费注册 查看新帖 |

Chinaunix

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

[HACMP集群] 如何更改IBM HACMP环境里网卡的IP地址 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2009-04-14 11:35 |只看该作者 |倒序浏览
环境:
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资源接管测试。


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

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP