RAC: change IPs on public network


17.04.2015
by Kamil Stawiarski

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

First we have to close all cluster resources

[oracle@lodzio ~]$ crsctl stop res -all

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:

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} */

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

[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'

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:

[root@lodzio ~]# oifcfg delif -global eth0/192.168.0.0

And add new public network definition

[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

Now we can modify cluster resources:

[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

And start cluster resources:

[oracle@lodzio ~]$ crsctl start res -all

Search:


Kontakt

Database Whisperers sp. z o. o. sp. k.
Al. Jerozolimskie 200
Wejście B, III piętro/ pokój 342
02-486 Warszawa
NIP: 5272744987
REGON:362524978
+48 508 943 051
+48 661 966 009
info@ora-600.pl

Newsletter zapisz się żeby być na bieżąco