Thứ Ba, 15 tháng 10, 2013

4 Steps to change Virutal Public IP of RAC 11gr2

1/



OLD IP
Public -- 192.168.2.2/4
Virtual Public -- 192.168.2.3/5

NEW IP:


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


Private IP (no change)
Node 1 -- 10.0.0.2
Node 2 -- 10.0.0.3

 2/


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 on all the nodes

#crsctl status crs
#crsctl query css votedisk
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

3/



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

4/ 


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


________End________



Không có nhận xét nào: