更改前:
#eth0 - Public IP
192.168.21.201 rac1
192.168.21.202 rac2
#eth1 - Private IP
10.10.10.201 rac1-priv
10.10.10.202 rac2-priv
#VIP
192.168.21.211 rac1-vip
192.168.21.212 rac2-vip
#SCAN
192.168.21.204 rac-cluster-scan
更改后:
#eth0 - Public IP
192.168.21.151 rac1
192.168.21.152 rac2
#eth1 - Private IP
10.10.10.151 rac1-priv
10.10.10.152 rac2-priv
#VIP
192.168.21.153 rac1-vip
192.168.21.154 rac2-vip
#SCAN
192.168.21.155 rac-cluster-scan
1.更改Public IP和Private IP
$ oifcfg getif
eth0 168.168.21.0 global public
eth1 10.10.10.0 global cluster_interconnect
$ oifcfg delif -global eth0
$ oifcfg setif -global eth0/168.168.21.0:public
./oifcfg delif -global eth1
./oifcfg setif -global eth1/10.10.10.0:cluster_interconnect
#######我这里无需修改
2.修改VIP
su root
#srvctl modify nodeapps -n rac1 -A 192.168.21.153/255.255.0.0/eth0
#srvctl modify nodeapps -n rac2 -A 192.168.21.154/255.255.0.0/eth0
3.修改scan IP
[grid@rac1 ~]$ srvctl config scan
SCAN 名称: rac-cluster-scan, 网络: 1/192.168.21.0/255.255.255.0/eth0
SCAN VIP 名称: scan1, IP: /rac-cluster-scan/192.168.21.155
[grid@rac1 ~]$
停止服务
$srvctl stop scan_listener
$srvctl stop scan
$srvctl status scan
$su root
#vi /etc/hosts
# SCAN
192.168.21.204 rac-cluster-scan
改为:
# SCAN
192.168.21.155 rac-cluster-scan
#srvctl modify scan -n rac-cluster-scan
检查修改结果:
#srvctl config scan
启动scan:
$srvctl start scan
$srvctl start scan_listener
4.修改/etc/hosts和OS的IP
5.重启服务器