Wednesday, April 21, 2010

Modifying the VIP ,VIP Hostname of RAC Clusterware Node

To change the VIP IP address or Hostname or other parameters associated with the VIP
(especially wrong  virtual IP or wrong  enternet)

Changing the VIP involves modification of the nodeapps, which includes the Virtual IP address, the GSD, the Listener, and Oracle Notification Services (ONS). The VIP can be modified while the nodeapps are running, however changes will not take effect until the VIP, and hence the nodeapps, are restarted.  So we  will  stop and  start  the  nodeapps

Verifying Current VIP configuration

pandora@cbdst:/cbdsthome/cbdst$ srvctl config nodeapps -n pandora -a


VIP exists.: /cbdst2-vip/10.200.20.230/255.255.255.0/en5:en6:en7



The VIP Hostname is 'cbdst2-vip'
The VIP IP address is '10.200.20.230'
The VIP subnet mask is '255.255.255.0'
The Interface Name(s) used by the VIP is 'en5:en6:en7'

Now  We will change  the interface to only en7
Stop Resources
  • Stop database  (Where  database  name  =NGBSTEST and  instance_name =NGBSTEST1 )
      srvctl stop instance -d NGBSTESTRAC  -i NGBSTEST1
  • Stop asm if exists  on node  node  (pandora )
      srvctl stop asm -n pandora
  • Stop the nodeapps on  node (pandora )
      srvctl stop nodeapps -n pandora
  • Verify  that  VIP is no longer  exist  on node with ifconfig  -a
Note:Stopping the nodeapps may cause other resources to be stopped - therefore, this change should be made during a scheduled outage.

Make  the  changes
  
  • Make  the  changes
      srvctl modify nodeapps -n pandora -A 10.200.20.230/255.255.255.0/en7
  • start the node (By root)
     srvctl start nodeapps -n pandora
  • check  it
     pandora@cbdst:/cbdsthome/cbdst$ srvctl config nodeapps -n pandora -a
    VIP exists.: /cbdst2-vip/10.200.20.230/255.255.255.0/en7
  • Also  you can  check it  with  ifconfig 
We can  make  the same changes on other  node
Note:we did  not  change  the  interface stored in OCR 
pandora@cbdst:/cbdsthome/cbdst$ oifcfg getif

en7 10.200.20.0 global public
en6 7.0.0.0 global cluster_interconnect

if the interface stored in OCR   is changed then we must follow the following doc

How to Change Interconnect/Public Interface IP Subnet in a 10g Cluster

No comments: