1. Find the existing configuration
srvctl config nodeapps -a
[grid@sbldcdb01 ~]$ srvctl config nodeapps -a
Network exists: 1/172.31.36.0/255.255.255.128/eth0, type static
VIP exists: /sbldcdb01-vip/172.31.36.26/172.31.36.0/255.255.255.128/eth0, hosting node sbldcdb01
VIP exists: /sbldcdb02-vip/172.31.36.27/172.31.36.0/255.255.255.128/eth0, hosting node sbldcdb02
[grid@sbldcdb01 ~]$
2. Stop VIP Service
srvctl stop vip -n sbldcdb01 -f
srvctl stop instance -d sblcbs -n sbldcdb01 (Optional)
[grid@sbldcdb01 ~]$ srvctl stop vip -n sbldcdb01
PRCR-1014 : Failed to stop resource ora.sbldcdb01.vip
PRCR-1065 : Failed to stop resource ora.sbldcdb01.vip
CRS-2529: Unable to act on 'ora.sbldcdb01.vip' because that would require stopping or relocating 'ora.LISTENER.lsnr', but the force option was not specified
[grid@sbldcdb01 ~]$
[grid@sbldcdb01 ~]$ srvctl stop vip -n sbldcdb01 -f
[grid@sbldcdb01 ~]$ srvctl stop instance -d sblcbs -n sbldcdb01
[IF problem found in above statement srvctl stop vip -n sbldcdb01 -f]
3. Modify the VIP
srvctl modify nodeapps -n sbldcdb01 -A 172.31.36.8/255.255.255.0/eth0
srvctl modify network -k 1 -S 110.11.70.0/255.255.255.0/eth2 [If want to change the network]
4. Changes into /etc/hosts
5. Verify the new VIP
/sbin/ifconfig -a | egrep '(eth0|Mask)'
[grid@sbldcdb01 ~]$ /sbin/ifconfig -a | egrep '(eth0|Mask)'
eth0 Link encap:Ethernet HWaddr 00:50:56:9E:B5:3E
inet addr:172.31.36.18 Bcast:172.31.36.127 Mask:255.255.255.128
eth0:1 Link encap:Ethernet HWaddr 00:50:56:9E:B5:3E
inet addr:172.31.36.24 Bcast:172.31.36.127 Mask:255.255.255.128
eth0:3 Link encap:Ethernet HWaddr 00:50:56:9E:B5:3E
inet addr:172.31.36.8 Bcast:172.31.36.127 Mask:255.255.255.128
inet addr:172.31.36.162 Bcast:172.31.36.191 Mask:255.255.255.192
inet addr:169.254.233.149 Bcast:169.254.255.255 Mask:255.255.0.0
inet addr:127.0.0.1 Mask:255.0.0.0
[grid@sbldcdb01 ~]$
6. Start VIP
srvctl stop vip -n node1
srvctl config nodeapps -a
[grid@sbldcdb01 ~]$ srvctl config nodeapps -a
Network exists: 1/172.31.36.0/255.255.255.128/eth0, type static
VIP exists: /sbldcdb01-vip/172.31.36.26/172.31.36.0/255.255.255.128/eth0, hosting node sbldcdb01
VIP exists: /sbldcdb02-vip/172.31.36.27/172.31.36.0/255.255.255.128/eth0, hosting node sbldcdb02
[grid@sbldcdb01 ~]$
2. Stop VIP Service
srvctl stop vip -n sbldcdb01 -f
srvctl stop instance -d sblcbs -n sbldcdb01 (Optional)
[grid@sbldcdb01 ~]$ srvctl stop vip -n sbldcdb01
PRCR-1014 : Failed to stop resource ora.sbldcdb01.vip
PRCR-1065 : Failed to stop resource ora.sbldcdb01.vip
CRS-2529: Unable to act on 'ora.sbldcdb01.vip' because that would require stopping or relocating 'ora.LISTENER.lsnr', but the force option was not specified
[grid@sbldcdb01 ~]$
[grid@sbldcdb01 ~]$ srvctl stop vip -n sbldcdb01 -f
[grid@sbldcdb01 ~]$ srvctl stop instance -d sblcbs -n sbldcdb01
[IF problem found in above statement srvctl stop vip -n sbldcdb01 -f]
3. Modify the VIP
srvctl modify nodeapps -n sbldcdb01 -A 172.31.36.8/255.255.255.0/eth0
srvctl modify network -k 1 -S 110.11.70.0/255.255.255.0/eth2 [If want to change the network]
4. Changes into /etc/hosts
5. Verify the new VIP
/sbin/ifconfig -a | egrep '(eth0|Mask)'
[grid@sbldcdb01 ~]$ /sbin/ifconfig -a | egrep '(eth0|Mask)'
eth0 Link encap:Ethernet HWaddr 00:50:56:9E:B5:3E
inet addr:172.31.36.18 Bcast:172.31.36.127 Mask:255.255.255.128
eth0:1 Link encap:Ethernet HWaddr 00:50:56:9E:B5:3E
inet addr:172.31.36.24 Bcast:172.31.36.127 Mask:255.255.255.128
eth0:3 Link encap:Ethernet HWaddr 00:50:56:9E:B5:3E
inet addr:172.31.36.8 Bcast:172.31.36.127 Mask:255.255.255.128
inet addr:172.31.36.162 Bcast:172.31.36.191 Mask:255.255.255.192
inet addr:169.254.233.149 Bcast:169.254.255.255 Mask:255.255.0.0
inet addr:127.0.0.1 Mask:255.0.0.0
[grid@sbldcdb01 ~]$
6. Start VIP
srvctl stop vip -n node1
No comments:
Post a Comment