11gr2 RAC SCAN添加IP失败【已解决】
本帖最后由 Fung920 于 2014-3-25 11:11 编辑问题描述:
原来scan为hosts解析,改为DNS并且添加至三个SCAN VIPs,但是后面添加的IP无法添加进SCAN里面,步骤如下:
1.DNS正反向解析:
$ host racdb-scan
racdb-scan.oraclema.com has address 192.168.56.112
racdb-scan.oraclema.com has address 192.168.56.110
racdb-scan.oraclema.com has address 192.168.56.111
$ nslookup racdb-scan
Server: 192.168.56.101
Address: 192.168.56.101#53
Name: racdb-scan.oraclema.com
Address: 192.168.56.111
Name: racdb-scan.oraclema.com
Address: 192.168.56.112
Name: racdb-scan.oraclema.com
Address: 192.168.56.110
$ nslookup 192.168.56.112
Server: 192.168.56.101
Address: 192.168.56.101#53
112.56.168.192.in-addr.arpa name = racdb-scan.oraclema.com.
112.56.168.192.in-addr.arpa name = racdb-scan.
2.现有SCAN及SCAN监听配置:
$ srvctl config scan
SCAN name: racdb-scan, Network: 1/192.168.56.0/255.255.255.0/eth0
SCAN VIP name: scan1, IP: /racdb-scan/192.168.56.110
$ srvctl config scan_listener
SCAN Listener LISTENER_SCAN1 exists. Port: TCP:1521
3.根据MOS ID 952903.1修改SCAN信息:
$ srvctl stop scan_listener
$ srvctl stop scan
$ which srvctl
/u01/app/11gr2/grid/bin/srvctl
# /u01/app/11gr2/grid/bin/srvctl modify scan -n racdb-scan
# /u01/app/11gr2/grid/bin/srvctl modify scan_listener -u
4.修改完后查看SCAN配置信息,发现仍然没有改变:
$ srvctl config scan
SCAN name: racdb-scan, Network: 1/192.168.56.0/255.255.255.0/eth0
SCAN VIP name: scan1, IP: /racdb-scan/192.168.56.110
$ srvctl config scan_listener
SCAN Listener LISTENER_SCAN1 exists. Port: TCP:1521
$ srvctl status scan
SCAN VIP scan1 is enabled
SCAN VIP scan1 is running on node node1
依然是只有一个IP,只有一个SCAN监听,有解吗?
你的host 文件没改吧 。把scan ip信息去掉
1、查看当前配置
$ srvctl status scan
SCAN VIP scan1 is enabled
SCAN VIP scan1 is running on node rac2
$ srvctl status scan_listener
SCAN Listener LISTENER_SCAN1 is enabled
SCAN listener LISTENER_SCAN1 is running on node rac2
$ srvctl config scan
SCAN name: rac-scan, Network: 1/192.168.2.0/255.255.255.0/eth0
SCAN VIP name: scan1, IP: /rac-scan.localdomain/192.168.2.201
$ srvctl config scan_listener
SCAN Listener LISTENER_SCAN1 exists. Port: TCP:1521
--host文件
$ more /etc/hosts
# Public
192.168.2.101 rac1.localdomain rac1
192.168.2.102 rac2.localdomain rac2
# Private
192.168.0.101 rac1-priv.localdomain rac1-priv
192.168.0.102 rac2-priv.localdomain rac2-priv
# Virtual
192.168.2.111 rac1-vip.localdomain rac1-vip
192.168.2.112 rac2-vip.localdomain rac2-vip
# SCAN
192.168.2.201 rac-scan.localdomain rac-scan
$
Validating SCAN on second Node
$ srvctl status scan
SCAN VIP scan1 is enabled
SCAN VIP scan1 is running on node rac2
$ srvctl status scan_listener
SCAN Listener LISTENER_SCAN1 is enabled
SCAN listener LISTENER_SCAN1 is running on node rac2
$ srvctl config scan
SCAN name: rac-scan, Network: 1/192.168.2.0/255.255.255.0/eth0
SCAN VIP name: scan1, IP: /rac-scan.localdomain/192.168.2.201
$ srvctl config scan_listener
SCAN Listener LISTENER_SCAN1 exists. Port: TCP:1521
2、停止scan
$ srvctl stop scan_listener
$ srvctl stop scan
$ srvctl status scan
SCAN VIP scan1 is enabled
SCAN VIP scan1 is not running
$ srvctl status scan_listener
SCAN Listener LISTENER_SCAN1 is enabled
SCAN listener LISTENER_SCAN1 is not running
$ srvctl config scan
SCAN name: rac-scan, Network: 1/192.168.2.0/255.255.255.0/eth0
SCAN VIP name: scan1, IP: /rac-scan.localdomain/192.168.2.201
$ srvctl config scan_listener
SCAN Listener LISTENER_SCAN1 exists. Port: TCP:1521
$
3、修改host 文件和dns 解析
4、修改
# srvctl modify scan -n rac-scan
# srvctl config scan
SCAN name: rac-scan, Network: 1/192.168.2.0/255.255.255.0/eth0
SCAN VIP name: scan1, IP: /rac-scan.localdomain/192.168.2.121
SCAN VIP name: scan2, IP: /rac-scan.localdomain/192.168.2.122
SCAN VIP name: scan3, IP: /rac-scan.localdomain/192.168.2.123
# srvctl modify scan_listener –u
# srvctl config scan_listener
SCAN Listener LISTENER_SCAN1 exists. Port: TCP:1521
SCAN Listener LISTENER_SCAN2 exists. Port: TCP:1521
SCAN Listener LISTENER_SCAN3 exists. Port: TCP:1521
5、启动
# srvctl start scan
# srvctl start scan_listener
6、检查
# srvctl status scan
SCAN VIP scan1 is enabled
SCAN VIP scan1 is running on node rac2
SCAN VIP scan2 is enabled
SCAN VIP scan2 is running on node rac1
SCAN VIP scan3 is enabled
SCAN VIP scan3 is running on node rac1
# srvctl status scan_listener
SCAN Listener LISTENER_SCAN1 is enabled
SCAN listener LISTENER_SCAN1 is running on node rac2
SCAN Listener LISTENER_SCAN2 is enabled
SCAN listener LISTENER_SCAN2 is running on node rac1
SCAN Listener LISTENER_SCAN3 is enabled
SCAN listener LISTENER_SCAN3 is running on node rac1
travel.liu 发表于 2014-3-25 11:07
你的host 文件没改吧 。把scan ip信息去掉
正是,忘记屏蔽掉原有信息了,:sleepy:
页:
[1]