Experience: is what you get soon after you need it.

Experience: is what you get soon after you need it.

Rasul Allah (sal Allahu alaihi wa sallam) said: "Restore the trusts of those who trust you, and deal not falsely with him who deals falsely with you." [Abu Dawud, Tirmidhi]

Search This Blog

Tuesday, September 11, 2012

How to change SCAN VIPs in 11gR2


Below process is testing and worked when the SCAN vips are configured via the DNS.

Backup:
Hosts file
ocrconfig -manualbackup
 voting disks using "dd"

following command can be used:
$ nslookup dbhost-sv1

Name:   dbhost-sv1.mydomain.com
Address: 10.ns.ip.133
Name:   dbhost-sv1.mydomain.com
Address: 10.ns.ip.135
Name:   dbhost-sv1.mydomain.com
Address: 10.ns.ip.134


Stop the scan resources:

# $GRID_HOME/bin/srvctl stop scan_listener
# $GRID_HOME/bin/srvctl stop scan
# $GRID_HOME/bin/srvctl status scan
>srvctl status scan
SCAN VIP scan1 is enabled
SCAN VIP scan1 is running on node dbhostdb02
SCAN VIP scan2 is enabled
SCAN VIP scan2 is running on node dbhostdb01
SCAN VIP scan3 is enabled
SCAN VIP scan3 is running on node dbhostdb01



Confirm whether they are really down:


Make the change in the DNS:
# nslookup dbhost-sv1  << should be new IPs
>/usr/sbin/nslookup dbhostdb01-sv1


Name:   dbhostdb01-sv1.mydomain.com
Address: 10.ip.ip.156
Name:   dbhostdb01-sv1.mydomain.com
Address: 10.ip.ip.158
Name:   dbhostdb01-sv1.mydomain.com
Address: 10.ip.ip.157

Now tell CRS to update the SCAN VIP resources:
# $GRID_HOME/bin/srvctl modify scan –n dbhost-sv1  ( This will refresh the new IPs for SCAN)
# $GRID_HOME/bin/srvctl config scan ( verify the new IP's are reflected. )
>srvctl config scan
SCAN name: dbhostdb01-sv1, Network: 1/10.ip.ip.0/255.255.255.0/bge0
SCAN VIP name: scan1, IP: /dbhostdb01-sv1.mydomain.com/10.ip.ip.156
SCAN VIP name: scan2, IP: /dbhostdb01-sv1.mydomain.com/10.ip.ip.158
SCAN VIP name: scan3, IP: /dbhostdb01-sv1.mydomain.com/10.ip.ip.157



# $GRID_HOME/bin/srvctl status scan
>srvctl status scan
SCAN VIP scan1 is enabled
SCAN VIP scan1 is running on node dbhostdb02
SCAN VIP scan2 is enabled
SCAN VIP scan2 is running on node dbhostdb01
SCAN VIP scan3 is enabled
SCAN VIP scan3 is running on node dbhostdb01


# $GRID_HOME/bin/srvctl start scan
# $GRID_HOME/bin/srvctl start scan_listener

Reference:952903.1

No comments: