← All field notes

RAC: change IPs on public network

In this article I will show how to reconfigure IP addresses in public network for RAC. `

First we have to close all cluster resources

ora600@lab ~ / text#01
[oracle@lodzio ~]$ crsctl stop res -all
2 LINESTEXT / UTF-8

This command can hang on stopping ASM. It’s normal, because the resource CRSD is using OCR, which is located on ASM diskgroup. In ASM alertlog you will see errors like:

ora600@lab ~ / text#02
ORA-15032: not all alterations performed
ORA-15027: active use of diskgroup "GRIDASM" precludes its dismount
ERROR: ALTER DISKGROUP GRIDASM DISMOUNT  /* asm agent *//* {1:57617:368} */
4 LINESTEXT / UTF-8

You can resolve this by restarting CRSD – execute below commands on all nodes:

ora600@lab ~ / text#03
[oracle@miodzio ~]$ crsctl stop res ora.crsd -init
CRS-2673: Attempting to stop 'ora.crsd' on 'miodzio'
[oracle@miodzio ~]$ crsctl start res ora.crsd -init
CRS-2672: Attempting to start 'ora.asm' on 'miodzio'
5 LINESTEXT / UTF-8

Now reconfigure all network devices and make appropriate changes in DNS. Make sure that all names are resolved correctly.

Delete public network from cluster configuration:

ora600@lab ~ / text#04
[root@lodzio ~]# oifcfg delif -global eth0/192.168.0.0
2 LINESTEXT / UTF-8

And add new public network definition

ora600@lab ~ / text#05
[root@lodzio ~]# oifcfg setif -global eth0/192.168.56.0:public 
[root@lodzio ~]# oifcfg getif
eth1  10.0.0.0  global  cluster_interconnect
eth0  192.168.56.0  global  public
5 LINESTEXT / UTF-8

Now we can modify cluster resources:

ora600@lab ~ / text#06
[root@lodzio ~]# srvctl modify network -S 192.168.56.0/255.255.255.0/eth0
[root@lodzio ~]# srvctl modify nodeapps -n lodzio -A lodzio-vip/255.255.255.0/eth0
[root@lodzio ~]# srvctl modify nodeapps -n miodzio -A miodzio-vip/255.255.255.0/eth0 
[root@lodzio ~]# srvctl modify scan -n scan.racdomain
[root@lodzio ~]# srvctl config nodeapps
Network exists: 1/192.168.56.0/255.255.255.0/eth0, type static
VIP exists: /lodzio-vip/192.168.56.31/192.168.56.0/255.255.255.0/eth0, hosting node lodzio
VIP exists: /miodzio-vip/192.168.56.32/192.168.56.0/255.255.255.0/eth0, hosting node miodzio
GSD exists
ONS exists: Local port 6100, remote port 6200, EM port 2016
[root@lodzio ~]# srvctl config scan
SCAN name: scan.racdomain, Network: 1/192.168.56.0/255.255.255.0/eth0
SCAN VIP name: scan1, IP: /scan.racdomain/192.168.56.41
SCAN VIP name: scan2, IP: /scan.racdomain/192.168.56.42
SCAN VIP name: scan3, IP: /scan.racdomain/192.168.56.43
16 LINESTEXT / UTF-8

And start cluster resources:

ora600@lab ~ / text#07
[oracle@lodzio ~]$ crsctl start res -all
2 LINESTEXT / UTF-8
END OF FIELD NOTE / 2015-04-17

Keep asking why. Keep looking deeper.

← Back to the blog