In this article I will show how to change IP address of cluster interconnect.
First we have to define new address of the cluster interconnect before we change network settings.
[root@lodzio ~]# oifcfg setif -global eth1/10.1.0.0:cluster_interconnect
And now stop all cluster resources on both nodes
[root@lodzio ~]# crsctl stop res -all (...) [root@lodzio ~]# crsctl stop res -all -init (...) [root@lodzio ~]# ssh miodzio root@miodzio's password: Last login: Fri Apr 17 10:58:04 2015 from 192.168.56.1 [root@miodzio ~]# . oraenv ORACLE_SID = [root] ? +ASM2 The Oracle base has been set to /u01/app/oracle [root@miodzio ~]# crsctl stop res -all -init
Now we can change cluster interconnect ips
[root@lodzio ~]# vim /etc/sysconfig/network-scripts/ifcfg-eth1 [root@lodzio ~]# ifdown eth1 [root@lodzio ~]# ifup eth1 [root@lodzio ~]# ifconfig eth1 eth1 Link encap:Ethernet HWaddr 08:00:27:7A:3D:9B inet addr:10.1.0.1 Bcast:10.1.0.255 Mask:255.255.255.0 inet6 addr: fe80::a00:27ff:fe7a:3d9b/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:225558 errors:0 dropped:0 overruns:0 frame:0 TX packets:210124 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:152730046 (145.6 MiB) TX bytes:129642749 (123.6 MiB) [root@lodzio ~]# ssh miodzio root@miodzio's password: Last login: Fri Apr 17 12:15:40 2015 from lodzio [root@miodzio ~]# vim /etc/sysconfig/network-scripts/ifcfg-eth1 [root@miodzio ~]# ifup eth1 [root@miodzio ~]# ifconfig eth1 eth1 Link encap:Ethernet HWaddr 08:00:27:42:F0:03 inet addr:10.1.0.2 Bcast:10.1.0.255 Mask:255.255.255.0 inet6 addr: fe80::a00:27ff:fe42:f003/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:210059 errors:0 dropped:0 overruns:0 frame:0 TX packets:225581 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:129641886 (123.6 MiB) TX bytes:152723224 (145.6 MiB)
Now we can start init cluster resources on both nodes
[root@lodzio ~]# crsctl start res -all -init (...) [root@lodzio ~]# crsctl stat res -t -init -------------------------------------------------------------------------------- NAME TARGET STATE SERVER STATE_DETAILS -------------------------------------------------------------------------------- Cluster Resources -------------------------------------------------------------------------------- ora.asm 1 ONLINE ONLINE lodzio Started ora.cluster_interconnect.haip 1 ONLINE ONLINE lodzio ora.crf 1 ONLINE ONLINE lodzio ora.crsd 1 ONLINE ONLINE lodzio ora.cssd 1 ONLINE ONLINE lodzio ora.cssdmonitor 1 ONLINE ONLINE lodzio ora.ctssd 1 ONLINE ONLINE lodzio OBSERVER ora.diskmon 1 OFFLINE OFFLINE ora.evmd 1 ONLINE ONLINE lodzio ora.gipcd 1 ONLINE ONLINE lodzio ora.gpnpd 1 ONLINE ONLINE lodzio ora.mdnsd 1 ONLINE ONLINE lodzio [root@lodzio ~]# ssh miodzio root@miodzio's password: Last login: Fri Apr 17 12:19:46 2015 from lodzio [root@miodzio ~]# . oraenv ORACLE_SID = [root] ? +ASM2 The Oracle base has been set to /u01/app/oracle [root@miodzio ~]# crsctl start res -all -init (...) [root@miodzio ~]# crsctl stat res -t -init -------------------------------------------------------------------------------- NAME TARGET STATE SERVER STATE_DETAILS -------------------------------------------------------------------------------- Cluster Resources -------------------------------------------------------------------------------- ora.asm 1 ONLINE ONLINE miodzio Started ora.cluster_interconnect.haip 1 ONLINE ONLINE miodzio ora.crf 1 ONLINE ONLINE miodzio ora.crsd 1 ONLINE ONLINE miodzio ora.cssd 1 ONLINE ONLINE miodzio ora.cssdmonitor 1 ONLINE ONLINE miodzio ora.ctssd 1 ONLINE ONLINE miodzio OBSERVER ora.diskmon 1 OFFLINE OFFLINE ora.evmd 1 ONLINE ONLINE miodzio ora.gipcd 1 ONLINE ONLINE miodzio ora.gpnpd 1 ONLINE ONLINE miodzio ora.mdnsd 1 ONLINE ONLINE miodzio
And now I can remove old interconnect definition from cluster metadata:
[root@miodzio ~]# oifcfg getif eth1 10.0.0.0 global cluster_interconnect eth0 192.168.56.0 global public eth1 10.1.0.0 global cluster_interconnect [root@miodzio ~]# oifcfg delif -global eth1/10.0.0.0 [root@miodzio ~]# oifcfg getif eth0 192.168.56.0 global public eth1 10.1.0.0 global cluster_interconnect
OK. Nothing left to do, but starting all cluster resources 🙂