Old IPs:
SCAN 10.100.10.235
10.100.10.236
10.100.10.237
Hosts: 10.100.10.231
10.100.10.232
VIPs: 10.100.10.233
10.100.10.234
New IPs:
SCAN 10.100.101.125
10.100.101.126
10.100.101.127
Hosts: 10.100.101.121
10.100.101.122
VIPs: 10.100.101.123
10.100.101.124
Step 1: As grid: (on first node only)
oifcfg delif -global eth0/10.100.10.0
oifcfg setif -global eth0/10.100.101.0:public
Step 2: As grid:
[grid@psdb1 ~]$ srvctl config nodeapps -a :verify the current config
Network 1 exists
Subnet IPv4: 10.100.10.0/255.255.255.0/eth0, static
Subnet IPv6:
VIP exists: network number 1, hosting node psdb1
VIP Name: psdb1-vip.lab.hsc.net.ou.edu
VIP IPv4 Address: 10.100.10.233
VIP IPv6 Address:
VIP exists: network number 1, hosting node psdb2
VIP Name: psdb2-vip.lab.hsc.net.ou.edu
VIP IPv4 Address: 10.100.10.234
VIP IPv6 Address:
srvctl stop vip -n psdb1 -f
srvctl relocate scan -scannumber 1 -node psdb2 (relocate scan to psdb2)
srvctl relocate scan -scannumber 2 -node psdb2 (relocate scan to psdb2)
srvctl relocate scan -scannumber 3 -node psdb2 (relocate scan to psdb2)
Step 3: as root:
vi /etc/sysconfig/network-scripts/ifcfg-eth0, change IP/GATEWAY
Go to VM console:
ifdown eth0
ifup eth0
Change NIC to the new VLAN
ssh to the new IP
change hostname/hostname-vip in DNS
srvctl modify network -k 1 -S 10.100.101.0/255.255.255.0/eth0 (on first node only)
srvctl modify nodeapps -n psdb1 -A psdb1-vip/255.255.255.0/eth0
srvctl config nodeapps -a : verify changes
Step 4: as grid:
srvctl start vip -n psdb1 (databases still up and servicing from psdb2)
step 5: as root: (on first node)
srvctl stop scan_listener
srvctl stop scan
srvctl status scan :verify scan is off
srvctl status scan_listener: verify scan_listener is off
change SCAN IPs in DNS
srvctl config scan: shows old SCAN IPs
srvctl modify scan -n psdb-scan
Step 6: Repeat Step 2 to Step 4 for the rest nodes in the cluster
Step 7: as root:
srvctl start scan
srvctl start scan_listener
step 8: Rolling bounce all databases
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment