Change the private ip address in Oracle RAC
OLD :
IP : 10.0.0.1
SUBNET : 255.0.0.0
NEW :
IP : 10.150.10.1
SUBNET : 255.255.255.0
1)
Please take a backup of profile.xml on all cluster nodes before proceeding, as grid user:
$ cd $GRID_HOME/gpnp//profiles/peer/
$ cp -p profile.xml profile.xml.bk
2) get the present details
$ oifcfg getif
3) Set the new subnet address to the ethernet card to which you given the private ip
Syntax : oifcfg setif -global /:cluster_interconnect
[oracle@node2 peer]$ oifcfg setif -global eth1/10.150.10.0:cluster_interconnect
NOTE : This can be done even if the database and the cluster is up. The global option will add the subnet even though you did not add the new ethernet card.
4) check the details
$ oifcfg getif
[oracle@node2 peer]$ oifcfg getif
eth0 192.9.0.0 global public
eth1 10.0.0.0 global cluster_interconnect
eth1 10.150.10.0 global cluster_interconnect
5) stop the cluster
# crsctl stop crs
# crsctl disable crs
6) Do os level changes
Change the network address
/etc/network-scripts/ifcfg-eth1 ==> For linux
change in the DNS ==> Change the entry in the DNS if you configured
change in the /etc/hosts file ==> Change the entry in the hosts file in all the servers in RAC
check weather changes are completed or not
$ ifconfig -a
$ ping node2-priv (private ip hostname) ==> from both the nodes
7) start the cluster
# crsctl enable crs
# crsctl start crs
8) Delete the old configuration
[root@node2 raw]# oifcfg getif
eth0 192.9.0.0 global public
eth1 10.0.0.0 global cluster_interconnect
eth1 10.150.10.0 global cluster_interconnect ===> Delete the old configuration
[root@node2 raw]#
[root@node2 raw]# oifcfg delif -global eth1/10.0.0.0
[root@node2 raw]# oifcfg getif
eth0 192.9.0.0 global public
eth1 10.150.10.0 global cluster_interconnect ==> New subnet is added