一、依据IBM官网上文档进行动作

 
 
内容提要:
环境:
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资源接管测试。

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

二、service ip地址还需在资源组中进行改变

HACMP > Extended Configuration > HACMP Extended Resources Configuration >
将新service ip地址添加,两边做;