网站建设资讯

NEWS

网站建设资讯

RAC如何改VIP和SCANIP

这篇文章主要介绍RAC如何改VIP和SCAN IP,文中介绍的非常详细,具有一定的参考价值,感兴趣的小伙伴们一定要看完!

站在用户的角度思考问题,与客户深入沟通,找到延津网站设计与延津网站推广的解决方案,凭借多年的经验,让设计与互联网技术结合,创造个性化、用户体验好的作品,建站类型包括:网站制作、成都做网站、企业官网、英文网站、手机端网站、网站推广、主机域名、网页空间、企业邮箱。业务覆盖延津地区。

集群改不了计算机名,但是可以改IP,但是改IP的话最好不要改网段,改网段涉及到网络层的更改,网络层的命令为oifcfg


查看VIP的信息:
srvctl config vip -n node1
srvctl config vip -n node2
srvctl config nodeapps -a
[root@node1 ~]# srvctl config vip -n node1
VIP exists: /node1-vip/192.168.92.22/192.168.92.0/255.255.255.0/eth0, hosting node node1
[root@node1 ~]# srvctl config vip -n node2
VIP exists: /node2-vip/192.168.92.24/192.168.92.0/255.255.255.0/eth0, hosting node node2
[root@node1 ~]# srvctl config nodeapps -a
Network exists: 1/192.168.92.0/255.255.255.0/eth0, type static
VIP exists: /node1-vip/192.168.92.22/192.168.92.0/255.255.255.0/eth0, hosting node node1
VIP exists: /node2-vip/192.168.92.24/192.168.92.0/255.255.255.0/eth0, hosting node node2

修改node2的vip:(由24改为26)
/u01/app/11.2.0/grid/bin/srvctl stop listener -n node2
/u01/app/11.2.0/grid/bin/srvctl stop vip -n node2
修改两个节点的/etc/hosts,把node2的新的vip体现出来。
/u01/app/11.2.0/grid/bin/srvctl modify nodeapps -n node2 -A 192.168.92.26/255.255.255.0/eth0
/u01/app/11.2.0/grid/bin/srvctl start vip -n node2
/u01/app/11.2.0/grid/bin/srvctl start listener -n node2



查看SCAN IP的信息(node-scan是/etc/hosts中scan ip的别名)
srvctl config scan
srvctl status scan
[root@node1 ~]# srvctl status scan
SCAN VIP scan1 is enabled
SCAN VIP scan1 is running on node node1
[root@node1 ~]# srvctl config scan
SCAN name: node-scan, Network: 1/192.168.92.0/255.255.255.0/eth0
SCAN VIP name: scan1, IP: /node-scan/192.168.92.30

修改SCAN VIP
/u01/app/11.2.0/grid/bin/srvctl stop scan_listener
/u01/app/11.2.0/grid/bin/srvctl stop scan
修改/etc/hosts里的scan vip的地址
/u01/app/11.2.0/grid/bin/srvctl modify scan -n node-scan
/u01/app/11.2.0/grid/bin/srvctl start scan
/u01/app/11.2.0/grid/bin/srvctl config scan
/u01/app/11.2.0/grid/bin/srvctl modify scan_listener -u
/u01/app/11.2.0/grid/bin/srvctl start scan_listener

以上是“RAC如何改VIP和SCAN IP”这篇文章的所有内容,感谢各位的阅读!希望分享的内容对大家有帮助,更多相关知识,欢迎关注创新互联行业资讯频道!


当前名称:RAC如何改VIP和SCANIP
标题网址:http://cdweb.net/article/phodes.html