这次帮客户搭建了一套oracle 11gR2 rac for aix环境,scan vip因为网络调整需要,需要更改以前设置好的scan
vip,是采用/etc/hosts的方式,比如将scan vip 192.168.128.100改为1.7.3.1
下面是具体步骤:
1.crs集群是打开的
2.修改两边/etc/hosts 将192.168.128.100改为1.7.3.1
3.srvctl config scan 查看当前vip设置
p570a@root#./srvctl config scan
SCAN name: 192.168.128.100, Network: 1/192.168.128.0/255.255.255.0/en0
SCAN VIP name: scan1, IP: /scan-vip/192.168.128.100
4.用root用户停止scan_listener 和sacn vip
$GRID_HOME/bin/srvctl stop scan_listener
$GRID_HOME/bin/srvctl stop scan
$GRID_HOME/bin/srvctl status scan
SCAN VIP scan1 is enabled
SCAN VIP scan1 is not running
$GRID_HOME/bin/srvctl status scan_listener
SCAN Listener LISTENER_SCAN1 is enabled
SCAN listener LISTENER_SCAN1 is not running
5.用root用户修改scan vip
$GRID_HOME/bin/srvctl modify scan -n 1.7.3.1
6.检查是否修改成功
p570a@root#./srvctl config scan
SCAN name: 10.76.31.111 , Network: 1/10.76.31.0/255.255.255.0/en0
SCAN VIP name: scan1, IP: /scan-vip/1.7.3.1
7.启动scan和scan_listener
$GRID_HOME/bin/srvctl start scan
$GRID_HOME/bin/srvctl start scan_listener
修改成功