Saturday 14 February 2015

Changing VIPs in RAC


1. Stop all services running on existing VIPs

srvctl stop service -d grid -s serviceA,ServiceB -n node1

$ srvctl config vip -n existingvip
VIP exists.:stbdp03
VIP exists.: /node1-existingvip/192.168.2.20/255.255.255.0/eth0


Stop the existing VIP resource using the srvctl stop vip command:

$ srvctl stop vip -n node1


Verify that the VIP resource is no longer running by running the ifconfig -a


Make any changes necessary to the /etc/hosts files on all nodes and make any necessary DNS changes to associate the new IP address with the old host name.

To use a different subnet or NIC for the default network before you change any VIP resource, you must use the srvctl modify network -S subnet/netmask/interface command as root to change the network resource, where subnet is the new subnet address, netmask is the new netmask, and interface is the new interface.

Modify the node applications and provide the new VIP address using the following srvctl modify nodeapps syntax:

$ srvctl modify nodeapps -n node1 -A new_vip_address

srvctl modify nodeapps -n node -A 192.168.2.125/255.255.255.0/eth0

Start the node VIP by running the srvctl start vip command:

$ srvctl start vip -n node_name

Repeat the steps for each node in the cluster.

Verify new config for all nodes:

$ cluvfy comp nodecon -n all -verbose


No comments:

Post a Comment