因现场应用需要,需要对新配置的oracle RAC环境增配2个scanIP地址,10.138.129.106以及10.138.129.107。
配置前情况:
[grid@db1 ~]$ srvctl config scan ----查看scan的配置信息
SCAN name: scan-ip, Network: 1/10.138.129.0/255.255.255.0/eth2
SCAN VIP name: scan1, IP: /scan-ip/10.138.129.105
[grid@db1 ~]$ srvctl status scan ----查看scan的状态以及scan ip所处节点
SCAN VIP scan1 is enabled
SCAN VIP scan1 is running on node db1
[grid@db1 ~]$ srvctl config scan_listener ----查看scan listener
SCAN Listener LISTENER_SCAN1 exists. Port: TCP:1521
默认情况下配置RAC 只有1个scan IP,1个 scan listener。
进入主题,开始增配scan ip
1、修改rac所有节点的/etc/hosts信息
[grid@db1 ~]$ cat /etc/hosts
127.0.0.1 localhost
10.138.129.101 db1
10.138.129.102