1. Host Name Planning:
-- Before modification:
# Public Network-(eth0)
192.168.10.11 rac1
192.168.10.12 rac2
# Private Interconnect-(eth1)
10.10.10.11 rac1priv
10.10.10.12 rac2priv
# Public Virtual IP (VIP) addresses-(eth0)
192.168.10.21 rac1vip
192.168.10.22 rac2vip
-- After modification:
# Public Network-(eth0)
192.168.110.11 rac1
192.168.110.12 rac2
# Private Interconnect-(eth1)
10.10.10.11 rac1priv
10.10.10.12 rac2priv
# Public Virtual IP (VIP) addresses-(eth0)
192.168.110.21 rac1vip
192.168.110.22 rac2vip
2. Stop CRS and other services, change the Host IP address and route, and restart the service.
3. Change the VIP address
Use oifcfg to change public/private ip addresses
View Current Use
Oifcfg getif
[Oracle @ rac1 ~] $ Oifcfg getif
Eth0 192.168.10.0 global public
Eth1 10.10.10.0 global cluster_interconnect
Delete current
Oifcfg delif-global eth0
Add again
> Oifcfg setif-global eth0/192.168.110.0: public
> Oifcfg setif-global eth1/10.10.10.0: cluster_interconnect
The retrieval status is as follows:
[Oracle @ rac1 ~] $ Oifcfg getif
Eth0 192.168.110.0 global public
Eth1 10.10.10.0 global cluster_interconnect
4. Update the vip configuration registered to OCR (root User)
Crs_register-update ora. rac1.vip-o I = eth0, ov = 192.168.110.21, on = 255.255.255.0
Crs_register-update ora. rac2.vip-o I = eth0, ov = 192.168.110.22, on = 255.255.255.0
Or use (root User)
[Root @ td1 ~] # Srvctl modify nodeapps-n td1-A 10.194.128.147/255.255.255.0/eth0
[Root @ td1 ~] # Srvctl modify nodeapps-n td2-A 10.194.128.148/255.255.255.0/eth0
If you use ocfs, modify the ocfs configuration file (/etc/ocfs/cluster. conf) to verify whether the modified file is available.
5. Modify the listener Configuration File.
6. Start and verify the resources of each node in the cluster.