Oracle RAC更改VIP IP地址
1、主机名规划:
--更改前:
#Public Network - (eth0)
192.168.10.11?? rac1
192.168.10.12?? rac2
#Private Interconnect - (eth1)
10.10.10.11???? rac1priv
10.10.10.12???? rac2priv
#Public Virtual IP (VIP) addresses - (eth0)
192.168.10.21?? rac1vip
192.168.10.22?? rac2vip
--更改后:
#Public Network - (eth0)
192.168.110.11?? rac1
192.168.110.12?? rac2
#Private Interconnect - (eth1)
10.10.10.11???? rac1priv
10.10.10.12???? rac2priv
#Public Virtual IP (VIP) addresses - (eth0)
192.168.110.21?? rac1vip
192.168.110.22?? rac2vip
2、停止CRS等服务,更改主机IP,路由等,并重启服务。
3、更改VIP地址
利用oifcfg更改public/private ip
查看当前使用
> oifcfg getif
[oracle@rac1 ~]$ oifcfg getif
eth0? 192.168.10.0? global? public
eth1? 10.10.10.0? global? cluster_interconnect
删除当前
oifcfg delif -global eth0
oifcfg delif -global eth1
重新添加
> oifcfg setif -global eth0/192.168.110.0:public
> oifcfg setif -global eth1/10.10.10.0:cluster_interconnect
获取状态如下:
[oracle@rac1 ~]$ oifcfg getif
eth0? 192.168.110.0? global? public
eth1? 10.10.10.0? global? cluster_interconnect
4、更新注册到OCR中的vip配置(root 用户)
crs_register -update ora.rac1.vip -o i=eth0,ov=192.168.110.21,on=255.255.255.0
crs_register -update ora.rac2.vip -o i=eth0,ov=192.168.110.22,on=255.255.255.0
或者使用(root 用户)
[root@td1 ~]# srvctl modify nodeapps -n td1 -A 10.194.128.147/255.255.255.0/eth0
[root@td1 ~]# srvctl modify nodeapps -n td2 -A 10.194.128.148/255.255.255.0/eth0
如果你使用了ocfs,修改ocfs配置文件(/etc/ocfs/cluster.conf),验证修改后是否可用。
5、修改监听listener 配置文件
6、启动集群各节点资源并验证
验证后,正常使用
「喜欢这篇文章,您的关注和赞赏是给作者最好的鼓励」
关注作者
【版权声明】本文为墨天轮用户原创内容,转载时必须标注文章的来源(墨天轮),文章链接,文章作者等基本信息,否则作者和墨天轮有权追究责任。如果您发现墨天轮中有涉嫌抄袭或者侵权的内容,欢迎发送邮件至:contact@modb.pro进行举报,并提供相关证据,一经查实,墨天轮将立刻删除相关内容。




