首先要修改public IP(在所有节点执行)
oifcfg delif -global eth0/192.168.0.0
oifcfg setif -global eth0/100.10.0.0:public
oifcfg delif -global eth0/192.168.0.0
oifcfg setif -global eth0/100.10.0.0:public
在OS层面修改
vi /etc/sysconfig/network-scripts/ifcfg-eth0
service network restart
1,确定用于支持VIP 的接口:
$ srvctl config nodeapps -a
$ ifconfig -a
$ crsctl stat res -t
2,停止依赖VIP 的所有资源:
$ srvctl stop instance -d <db_name> -n <node_name> (optional)
$ srvctl stop vip -n <node_name> -f
3,验证VIP 不再处于运行状态:
$ ifconfig -a
$ crs_stat -t / $ crsctl stat res -t
4,更改/etc/hosts 中的IP 和DNS。
5,使用srvctl 修改VIP 地址,注意使用root用户:
cd /u01/app/11.2.0/grid/bin
./srvctl modify nodeapps -n rac1 -A 100.10.0.11/255.255.255.0/eth0
./srvctl modify nodeapps -n rac2 -A 100.10.0.12/255.255.255.0/eth0
6,验证修改结果
$ srvctl config nodeapps -a
6,启动nodeapps 及依赖它的所有资源:
$ srvctl start vip -n <node_name>
$ srvctl start listener -n <node_name>
$ srvctl start instance -d <db_name> -n <node_name> (optional)
7,对下一节点重复执行从步骤1 开始的步骤。
最后修改时间:2020-05-22 09:08:07
「喜欢这篇文章,您的关注和赞赏是给作者最好的鼓励」
关注作者
【版权声明】本文为墨天轮用户原创内容,转载时必须标注文章的来源(墨天轮),文章链接,文章作者等基本信息,否则作者和墨天轮有权追究责任。如果您发现墨天轮中有涉嫌抄袭或者侵权的内容,欢迎发送邮件至:contact@modb.pro进行举报,并提供相关证据,一经查实,墨天轮将立刻删除相关内容。




