We have a 2 node RAC cluster on HP-UX environment. Scenario what we are trying to achieve is to change the public and virtual interface ip addresses in the cluster.

Our Cluster has been successfully configure with the below IP’s

OLD Public IP

Node 1 -- 192.168.2.2
Node 2 -- 192.168.2.3

OLD Virtual IP

Node 1 -- 192.168.2.4
Node 2 -- 192.168.2.5

Private IP

Node 1 -- 10.0.0.2
Node 2 -- 10.0.0.3

As per the lab requirement we need to change the ip address of public and virtual interfaces.
** We are not going to change the Private interface.
Check the cluster status on all the nodes

#crsctl status crs
#crsctl query css votedisk

STEPS TO CHANGE THE INTERFACE IP’s IN A CLUSTER
IP List for Public/Virtual Interfaces

192.168.50.2/3 -- Public
192.168.50.4/5 -- Virtual

Stop the database

srvctl stop database -d TEST

Stop the Node services on each node

srvctl stop nodeapps -n test1
srvctl stop nodeapps -n test2

Check the cluster status

#crs_stat -t
Name           Type           Target    State     Host
------------------------------------------------------------
ora....B1.inst application   OFFLINE    OFFLINE
ora....B2.inst application   OFFLINE    OFFLINE
ora....STDB.db application   OFFLINE    OFFLINE
ora....SM1.asm application   OFFLINE    OFFLINE    
ora....01.lsnr application   OFFLINE    OFFLINE    
ora.db01.gsd application     OFFLINE    OFFLINE    
ora.db01.ons application     OFFLINE    OFFLINE    
ora.db01.vip application     OFFLINE    OFFLINE    
ora....SM2.asm application   OFFLINE    OFFLINE    
ora....02.lsnr application   OFFLINE    OFFLINE    
ora.db02.gsd application     OFFLINE    OFFLINE    
ora.db02.ons application     OFFLINE    OFFLINE    
ora.db02.vip application     OFFLINE    OFFLINE

As root user execute

#oifcfg getif
lan0  192.168.2.0  global  public

Modify the Public IP

#oifcfg setif -global lan0/192.168.50.0:public
#oifcfg getif
lan0  192.168.50.0  global  public

Modify the VIP

#srvctl modify nodeapps -n db01 -A 192.168.50.4/255.255.255.0/lan0
#srvctl modify nodeapps -n db02 -A 192.168.50.5/255.255.255.0/lan0

Verify the configuration

srvctl config nodeapps -n db01 -a
VIP exists.: /db01-vip.oasiserp.com/192.168.50.4/255.255.255.0/lan0
srvctl config nodeapps -n db02 -a
VIP exists.: /db02-vip.oasiserp.com/192.168.50.5/255.255.255.0/lan0

Restart the cluster services

#crsctl stop crs
#crsctl start crs
Tagged with →  
Share →
0 comments
Skip to toolbar