IP’s reconfiguration in Oracle10g RAC

Oracle10g R2 RAC 2 Node Environment

—Backup Prerequisites

I. OCR and VOTING DISK Backup

II. Logical and Physical Database Backup

The recommended OS command for backup of Voting/OCR disk files that are placed on raw storage device is “dd”.
Eg. dd  if=voting_disk_name  of=backup_file_name

Example for backup OCR and Voting disks

bash-3.1$ ocrcheck|grep -i file
Device/File Name : /dev/rdsk/c4t600A0B800067E686000003B54C2841D4d0s0

bash-3.1$ crsctl query css votedisk
/dev/rdsk/c4t600A0B800067E686000003B74C2843F3d0s0
located 1 votedisk(s).

dd if=/dev/rdsk/c4t600A0B800067E686000003B54C2841D4d0s0 of=/u02/source/ocr030810.bak
dd if=/dev/rdsk/c4t600A0B800067E686000003B74C2843F3d0s0 of=/u02/source/vote030810.bak

 

——————————————————————————————————————–

RAC, IP’s reconfiguration example

1. Get new IP’s from System Administrator
2. Stop all components
3. Check Actual Configuration
4. Delete previous RAC Public Configuration
5. Redefine Private IP
6. Redefine VIP
7. Stop CRS
8. Ask Systems to change IP to the new set and reboot
9. Check with check crs
1.) Get new IP’s from System Administrator

Before Starting get the new IP from system administrator.
The RAC IP change must be executed before the Server IP Change.
Once RAC is reconfigured. The Server IP is changed and RAC is restarted

2.)  Stop all components

–Check the Status of RAC
crs_stat -t

–Stop the Instances/Databases
export ORACLE_SID=orcl
srvctl stop instance -d orcl -i orcl1
srvctl stop instance -d orcl -i orcl2
#srvctl stop database -d orcl

–Stop the ASM Instance
srvctl stop asm -n dbnode1
srvctl stop asm -n dbnode2

–Stop the Apps(node applications (Virtual IP, GSD, TNS Listener, and ONS))
srvctl stop nodeapps -n dbnode1
srvctl stop nodeapps -n dbnode1
——————————————-not used separatelly————————–
–Stop the Listener
srvctl stop listener -n dbnode1
srvctl stop listener -n dbnode2
—————————————————————————————–
Check CRS
crsctl check crs

Stop CRS(as root)
crsctl stop crs -10gR2
At this point all RAC processes are down, only CRS, that is Oracle Clusterware is up.

3. ) Check Actual Configuration

which oifcfg
bash-3.00$ which oifcfg
/u02/app/crs/bin/oifcfg

> su –
Password:
bash-3.00$ /u02/app/crs/bin/oifcfg getif
e1000g0  180.149.40.48  global  public
e1000g2  10.0.0.0    global  cluster_interconnect

4. ) Delete previous RAC Public Configuration

/u02/app/crs/bin/oifcfg getif
e1000g0  180.149.40.48  global  public
e1000g2  10.0.0.0  global  cluster_interconnect

/u02/app/crs/bin/oifcfg  delif -global e1000g0

###Conform with  Network Admin Team.

5.)  Redefine Public IP
/u02/app/crs/bin/oifcfg  setif -global e1000g0/10.216.255.0:public

/u02/app/crs/bin/oifcfg getif
e1000g0  10.216.255.0  global  public
e1000g2  10.0.0.0  global  cluster_interconnect

——————————————————————————————
6.)  Redefine VIP

check current VIP Details
—————————
srvctl config nodeapps -n nr-del-racdb1-mts -a
VIP exists.: /dbnode1-vip/180.xxx.xx.62/255.255.255.240/e1000g0

srvctl config nodeapps -n nr-del-racdb2-mts -a
VIP exists.: /dbnode2-vip/180.xxx.xx.51/255.255.255.240/e1000g0

bash-3.00$ which srvctl
/u02/app/crs/bin/srvctl

> su –
Password:

# /u02/app/crs/bin/srvctl modify nodeapps -n dbnode1 -A 10.xxx.xxx.12/255.0.0.0/e1000g0
# /u02/app/crs/bin/srvctl modify nodeapps -n dbnode2 -A 10.xxx.xxx.13/255.0.0.0/e1000g0

bash-3.00$ srvctl config nodeapps -n dbnode1
VIP exists.: /10.xxx.xxx.12/10.xxx.xxx.12/255.0.0.0/e1000g0

bash-3.00$ srvctl config nodeapps -n dbnode2
VIP exists.: /10.xxx.xxx.13/10.xxx.xxx.13/255.0.0.0/e1000g0

======================
=================
7. ) Stop CRS
# cd /etc/rc3.d/
# ./S96init.crs stop

========================================================================================================
Note

if the listener is using any IP address, it also needs to be changed.
if the tnsnames.ora is using any IP address, it also needs to be changed.
—————————————————————————————————————-
Change the IP Address’es on the known_hosts ssh config files for oracle user
$ su – oracle
$ cd .ssh
$ cp known_hosts known_hosts.bak
$ modify the old IP’s to the new IP’s

——————————————————————————————————————-
—-—change OS IP settings
Ask Systems to change IP to the new set and reboot
/etc/hosts and any other files
——————————————————————————————

8.) Ask Systems to change IP to the new set and reboot 

At this point when everything was changed on RAC, systems need to change the server IP.
They can reboot also the servers.
RAC should come up automatically.

9.) Check the status of RAC
crs_stat -t

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.