HACMP环境修改IP的方法

一、   单独修改service IP

1)主/备机节点停止HACMP服务

# smitty clstop

2)主/备机编辑/etc/hosts

192.168.50.88 nodesvc

3# smitty hacmp->Initialization and Standard Configuration-> Configure Resources to Make Highly Available->  Configure Service IP Labels/Addresses->Change/Show a Service IP Label/Address 

  * IP Label/Address                                    nodesvc

* New IP Label/Address                               [nodesvc]   这里再写一遍         

* Network Name                                     [net_ether_01]

4 # /usr/es/sbin/cluster/utilities/cllsif

nodesvc              service    net_ether_01 ether      public     node01     192.168.50.88  

服务IP已经修改过来

5# smitty hacmp->  Extended Configuration-> Verification and Synchronization

验证后启动HACMP即可

二、   单独修改主/备机boot1 IP

1)主/备机节点停止HACMP服务

# smitty clstop

2)主/备机修改en0 IP

# smitty chinet

3/备机编辑/etc/hosts

# vi /etc/hosts

192.168.100.61 node01boot1 140node01

192.168.100.62 node02boot1 140node02

192.168.50.88 nodesvc

5# smitty hacmp->Extended Configuration-> Extended Topology Configuration->Configure HACMP Communication Interfaces/Devices->Change/Show Communication Interfaces/Devices

  依次选择主/备机节点的en0/en0,不做修改,直接回车即可,自动会更新boot1 IP地址

6# /usr/es/sbin/cluster/utilities/cllsif显示网络接口配置

node01boot1          boot       net_ether_01 ether      public     node01     192.168.100.61                    en0                               255.255.255.0

nodesvc              service    net_ether_01 ether      public     node01     192.168.50.88                                                       255.255.255.0

node02boot1          boot       net_ether_01 ether      public     node02     192.168.100.62                    en0                               255.255.255.0

nodesvc              service    net_ether_01 ether      public     node02     192.168.50.88

boot1 IP已经修改过来

7# smitty hacmp->  Extended Configuration-> Verification and Synchronization

验证后启动HACMP即可

三、   单独修改备机boot1对应接口enX

1)主/备机节点停止HACMP服务

# smitty clstop

2)备机修改boot1 IP  en0->en1

# smitty chinet

en0 detach  删除IP

# smitty chinet

en1 up 设置IP

3# smitty hacmp->Extended Configuration-> Extended Topology Configuration->Configure HACMP Communication Interfaces/Devices->Update HACMP Communication Interface with Operating System Settings

选择node02boot1  回车即可

此时# /usr/es/sbin/cluster/utilities/cllsif

node02boot1          boot       net_ether_01 ether      public     node02     192.168.100.62

node02boot1不对应任何一个enX

4# smitty hacmp->  Extended Configuration-> Verification and Synchronization

同步验证

# /usr/es/sbin/cluster/utilities/cllsif

node02boot1          boot       net_ether_01 ether      public     node02     192.168.100.62                    en1 

同步验证后正确对应到en1

/备机启动HACMP即可

  • 0
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

七七powerful

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值