发博文
UNIX+ORACLE

http://blog.chinaunix.net/space.php?uid=98962

四川省内及周边地区提供IBM、HP、SUN小型机,LINUX等技术支持(含集群),ORACLE调优、故障解决、小型软件系统开发(J2EE、.NET等可定制)、备份方案,网络安全及实施等IT相关服务,团队具有多年项目实施经验,技术   
个人资料
  • 博客访问:2031480
  • 博文数量:406
  • 博客积分:10036
  • 博客等级:上将
  • 关注人气: 1
  • 注册时间:2006-09-04 15:12:02
订阅我的博客
  • 订阅
  • 订阅到鲜果
  • 订阅到抓虾
  • 订阅到Google
字体大小: 博文
分类: AIX维护相关


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

[发评论] 评论 重要提示:警惕虚假中奖信息!
  • Jackielongteng 2009-06-14 11:04
    ☆                    °∵☆       你满意目前的收入吗? 不改变 就永远不变 ~ ◆ 每日花2~4小时,为自己建立终身保障收入 ◆ 免费注册7天试用,深入瞭解这网路兼职工作 ◆ 影片说明请点~> www.longteng.ws   * ★   *★ *. *. * ★ ★ * * ★ . ★ .’ /◥█◣  /◥█◣ ‘*.. | 田|田│| 田|田| ╭☆平凡滴幸福,是最幸福滴了☆╮ ----------------------------------------------------------------- 谢谢您的阅览,如不感兴趣,抱歉打扰您了,请将此讯息删除! 祝您˙诸事顺心-愉快! ^_____^
亲,您还没有登录,请[登录][注册]后再进行评论