实验环境:oracle 11g
操作系统:redhat-6.4
一、修改priv地址
原priv地址为80.16.16.1与80.16.16.2
新priv地址为192.100.1.1与192.100.1.2
方法:使用oifcfg命令添加新的心跳地址,重启集群后,删除旧心跳地址
1、 检查当前ocr中注册的信息
[grid@szrs1 ~]$ oifcfg getif
eth2 80.16.16.0 global cluster_interconnect
eth1 80.16.52.0 global public
2、 检查当前操作系统ip信息
[grid@szrs1 ~]$ oifcfg iflist
eth2 80.16.16.0
eth2 169.254.0.0
eth1 80.16.52.0
3、 添加新的心跳地址(必须在各节点集群运行状态添加)
oifcfg setif -global <interface>/<subnet>:cluster_interconnect
本次实验
/u01/app/grid/crs_1/bin/oifcfg setif -global eth2/192.100.1.0:cluster_interconnect
4、 停止集群,并关闭自启动模式
# /u01/app/grid/crs_1/bin/crsctl stop crs
# /u01/app/grid/crs_1/bin/crsctl disable crs
5、 更改操作系统层的网卡配置(各节点) 并修改/etc/hosts信息
vi /etc/sysconfig/network-scripts/ifcfg-eth2
vi /etc/hosts
192.100.1.100 szrs1-priv
192.100.1.101 szrs2-priv
更改后检查双边新的心跳地址是否互通
6、 检查互通后,启动集群,并开启自启动
/u01/app/grid/crs_1/bin/crsctl start crs
/u01/app/grid/crs_1/bin/crsctl enable crs
7、 检查当前ocr中配置
[grid@szrs1 ~]$ oifcfg getif
eth2 80.16.16.0 global cluster_interconnect
eth2 192.100.1.0 global cluster_interconnect
eth1 80.16.52.0 global public
可发现新的心跳地址信息
8、删除旧的心跳地址
oifcfg delif -global <if_name>[/<subnet>]
本次实验:
/u01/app/grid/crs_1/bin/oifcfg delif -global eth2/80.16.16.0
二、修改scan-ip
1、 检查当前使用的scan-ip
[grid@hca1 ~]$ srvctl config scan
SCAN name: hca-scan, Network: 1/192.168.56.0/255.255.255.0/
SCAN VIP name: scan1, IP: /hca-scan/192.168.56.110
2、 停止scan相关的服务,包括scan监听
$GRID_HOME/bin/srvctl stop scan_listener
$GRID_HOME/bin/srvctl stop scan
检查scan以及scan监听状态是否关闭
$ORACLE_HOME/bin/srvctl status scan
SCAN VIP scan1 is enabled
SCAN VIP scan1 is not running
$ORACLE_HOME/bin/srvctl status scan_listener
SCAN Listener LISTENER_SCAN1 is enabled
SCAN listener LISTENER_SCAN1 is not running
3、 修改/etc/hosts中scan-ip对应的地址
Vi /etc/hosts
192.168.56.112 hca-scan
4、 使用root用户重新注册scan
#/u01/app/11.2.0/grid/bin/srvctl modify scan -n scan-ip
5、 确认修改后的scan ip
6、 [grid@hca1 ~]$ srvctl config scan
SCAN name: hca-scan, Network: 1/192.168.56.0/255.255.255.0/
SCAN VIP name: scan1, IP: /hca-scan/192.168.56.112
7、 启动scan以及scan监听
$GRID_HOME/bin/srvctl start scan
$GRID_HOME/bin/srvctl start scan_listener
详细信息可参考mos文档,修改vip:276434.1 修改scan:952903.1 修改priv:283684.1
Related posts
- ESXi 5 OEL5.5 64bit 安装Oracle RAC 10.2.0 小记
- little about 11g rac ocr voting
- TTS from Single to RAC
- RAC学习笔记1
- Oracle Cluster Health Monitor (CHM)
no comment untill now