HACMP环境修改IP的方法

来源:互联网 发布:视频格式转换软件 编辑:程序博客网 时间:2024/06/14 22:05

一、   单独修改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即可

原创粉丝点击