RAC配置2个私网网卡使用HAIP服务
如果是在oracle 10gRAC, 私网网卡冗余保护只能使用操作系统网卡绑定方式,但是到了oracle 11g,如果担心一个私网网卡故障导致rac节点驱逐,可以使用2个私网网卡,Oracle将自动使用HAIP服务冗余私网网卡。
HAIP之后,无需使用网卡绑定就可以实现私网网卡的冗余。
如下测试环境rac 2节点,linux redhat6.9
1.配置
#/etc/hosts
10.0.0.11 wsgwa1
10.0.0.12 wsgwa2
192.168.53.11 wsgwa1-priv1
192.168.54.11 wsgwa1-priv2
192.168.53.12 wsgwa2-priv1
192.168.54.12 wsgwa2-priv2
10.0.0.13 wsgwa1-vip
10.0.0.14 wsgwa2-vip
10.0.0.15 wsgwa-scan # cd /etc/sysconfig/network-scripts/
[root@wsgwa2 network-scripts]# cat ifcfg-eth1
DEVICE=eth1
IPADDR=192.168.53.12
BOOTPROTO=static
ONBOOT=yes
[root@wsgwa2 network-scripts]# cat ifcfg-eth2
DEVICE=eth2
IPADDR=192.168.54.12
BOOTPROTO=static
ONBOOT=yes
HWADDR=:0C::3F:A5:
2.测试,down一个私网网卡,如果rac只有一块私网网卡, 假设rac 2节点,将导致节点2被驱逐。
[grid@wsgwa2 ~]$ crsctl stat res -t -init
--------------------------------------------------------------------------------
NAME TARGET STATE SERVER STATE_DETAILS
--------------------------------------------------------------------------------
Cluster Resources
--------------------------------------------------------------------------------
ora.cluster_interconnect.haip
ONLINE ONLINE wsgwa2
[grid@wsgwa2 ~]$ ifconfig -a
eth1 Link encap:Ethernet HWaddr :0C::3F:A5:
inet addr:192.168.53.12 Bcast:192.168.53.255 Mask:255.255.255.0
inet6 addr: fe80::20c:29ff:fe3f:a584/ Scope:Link
UP BROADCAST RUNNING MULTICAST MTU: Metric:
RX packets: errors: dropped: overruns: frame:
TX packets: errors: dropped: overruns: carrier:
collisions: txqueuelen:
RX bytes: (53.5 MiB) TX bytes: (90.0 MiB) eth1: Link encap:Ethernet HWaddr :0C::3F:A5:
inet addr:169.254.109.141 Bcast:169.254.127.255 Mask:255.255.128.0
UP BROADCAST RUNNING MULTICAST MTU: Metric:
eth2 Link encap:Ethernet HWaddr :0C::3F:A5:
inet addr:192.168.54.12 Bcast:192.168.54.255 Mask:255.255.255.0
inet6 addr: fe80::20c:29ff:fe3f:a598/ Scope:Link
UP BROADCAST RUNNING MULTICAST MTU: Metric:
RX packets: errors: dropped: overruns: frame:
TX packets: errors: dropped: overruns: carrier:
collisions: txqueuelen:
RX bytes: (68.8 MiB) TX bytes: (97.5 MiB) eth2: Link encap:Ethernet HWaddr :0C::3F:A5:
inet addr:169.254.174.33 Bcast:169.254.255.255 Mask:255.255.128.0
UP BROADCAST RUNNING MULTICAST MTU: Metric: [grid@wsgwa2 ~]$ oifcfg iflist
eth1 192.168.53.0
eth1 169.254.0.0
eth2 192.168.54.0
eth2 169.254.128.0
bond0 10.0.0.0 [grid@wsgwa2 ~]$ oifcfg getif
eth2 192.168.54.0 global cluster_interconnect
eth1 192.168.53.0 global cluster_interconnect
bond0 10.0.0.0 global public SQL> select * from gv$cluster_interconnects;
INST_ID NAME IP_ADDRESS IS_ SOURCE
---------- --------------- ---------------- --- -------------------------------
eth1: 169.254.109.141 NO
eth2: 169.254.174.33 NO
eth1: 169.254.22.31 NO
eth2: 169.254.202.196 NO [root@wsgwa2 ~]# ifconfig eth1 down grid_alert
Sun May ::
SKGXP: ospid : network interface with IP address 169.254.109.141 no longer running (check cable)
SKGXP: ospid : network interface with IP address 169.254.109.141 is DOWN Sun May ::
SKGXP: ospid : network interface with IP address 169.254.109.141 is now running
SKGXP: ospid : network interface with IP address 169.254.109.141 is now UP
#ifconfig -a ip 169.254..141移动到存活的eth2网卡上
eth1 Link encap:Ethernet HWaddr :0C::3F:A5:
inet addr:192.168.53.12 Bcast:192.168.53.255 Mask:255.255.255.0
BROADCAST MULTICAST MTU: Metric:
RX packets: errors: dropped: overruns: frame:
TX packets: errors: dropped: overruns: carrier:
collisions: txqueuelen:
RX bytes: (55.8 MiB) TX bytes: (94.0 MiB) eth2 Link encap:Ethernet HWaddr :0C::3F:A5:
inet addr:192.168.54.12 Bcast:192.168.54.255 Mask:255.255.255.0
inet6 addr: fe80::20c:29ff:fe3f:a598/ Scope:Link
UP BROADCAST RUNNING MULTICAST MTU: Metric:
RX packets: errors: dropped: overruns: frame:
TX packets: errors: dropped: overruns: carrier:
collisions: txqueuelen:
RX bytes: (72.9 MiB) TX bytes: (102.7 MiB) eth2: Link encap:Ethernet HWaddr :0C::3F:A5:
inet addr:169.254.174.33 Bcast:169.254.255.255 Mask:255.255.128.0
UP BROADCAST RUNNING MULTICAST MTU: Metric: eth2: Link encap:Ethernet HWaddr :0C::3F:A5:
inet addr:169.254.109.141 Bcast:169.254.127.255 Mask:255.255.128.0
UP BROADCAST RUNNING MULTICAST MTU: Metric: 启动恢复
[root@wsgwa2 ~]# ifconfig eth1 up
eth1 Link encap:Ethernet HWaddr :0C::3F:A5:
inet addr:192.168.53.12 Bcast:192.168.53.255 Mask:255.255.255.0
inet6 addr: fe80::20c:29ff:fe3f:a584/ Scope:Link
UP BROADCAST RUNNING MULTICAST MTU: Metric:
RX packets: errors: dropped: overruns: frame:
TX packets: errors: dropped: overruns: carrier:
collisions: txqueuelen:
RX bytes: (56.0 MiB) TX bytes: (94.1 MiB) eth1: Link encap:Ethernet HWaddr :0C::3F:A5:
inet addr:169.254.109.141 Bcast:169.254.127.255 Mask:255.255.128.0
UP BROADCAST RUNNING MULTICAST MTU: Metric: eth2 Link encap:Ethernet HWaddr :0C::3F:A5:
inet addr:192.168.54.12 Bcast:192.168.54.255 Mask:255.255.255.0
inet6 addr: fe80::20c:29ff:fe3f:a598/ Scope:Link
UP BROADCAST RUNNING MULTICAST MTU: Metric:
RX packets: errors: dropped: overruns: frame:
TX packets: errors: dropped: overruns: carrier:
collisions: txqueuelen:
RX bytes: (75.6 MiB) TX bytes: (106.6 MiB) eth2: Link encap:Ethernet HWaddr :0C::3F:A5:
inet addr:169.254.174.33 Bcast:169.254.255.255 Mask:255.255.128.0
UP BROADCAST RUNNING MULTICAST MTU: Metric:
RAC配置2个私网网卡使用HAIP服务的更多相关文章
- Ubuntu16.04双网卡配置,内网外网同时访问
Ubuntu16.04双网卡配置,内网外网同时访问 配置:vim/etc/network/interface auto lo iface lo inet loopback auto eno1 ifac ...
- 配置redis外网可访问
redis采用的安全策略,默认会只准许本地访问 通过简单配置,完成允许外网访问 [root@cache01 conf]# egrep "(^bind|#bind|# bind)" ...
- 配置 redis 外网访问
redis采用的安全策略,默认会只准许本地访问 1 2 3 4 5 6 7 8 9 10 通过简单配置,完成允许外网访问 [root@cache01 conf]# egrep "(^bind ...
- Hyper-V 配置虚拟机内网及外网环境
一.为Hyper-V虚拟机准备内外网环境 1.内网环境——虚拟机与虚拟机及主机可以互通
- 【转】CentOS5.6下配置rsync内网同步数据到外网
[转]CentOS5.6下配置rsync内网同步数据到外网 本文转自:http://www.linuxidc.com/Linux/2012-06/64070.htm 一.需求 卫士那边有一个需求,就是 ...
- RAC配置、安装
RAC 配置及安装 2012年12月30日 星期日 21:49 ******************************************************************* ...
- Linux防火墙配置—访问外网WEB
一.实验目标 1.本次实验在"Linux基础网络搭建实验"的基础上,在外网虚拟机上搭建WEB服务,并分别配置外网和网关的防火墙规则,使内网能够访问WEB服务 2.Linux基础网络 ...
- Oracle rac配置Weblogic数据源(实例名及URL的选择)
这几天,应用程序后台一直报无法取得连数据库接池.但之前从来没有这个问题,迁移到Weblogic后才发生. 之后据了解,我们服务器上的Oracle 10G 是 RAC 的,即有两个节点. 两个节点 IP ...
- Oracle rac 配置Weblogic数据源时 实例名及URL的选择
Oracle 10G 是 RAC 的,即有两个节点.两个节点 IP及实例名分别为:10.1.43.11 stnic110.1.43.21 stnic2配置数据源时 一直使用的是第一个 URL 及 实例 ...
随机推荐
- stl的stack在开发中的应用
栈有后进先出特点,我们可以用它来暂时保存数据,在画板开发中,我用到了栈来保存用户的每一步操作,当用户点击撤销时可以把图像从栈里面取出,然后恢复.浏览器的前进和后退也是这个原理,只是它保存的是网页罢了. ...
- Android FrameWork学习(二)Android系统源码调试
通过上一篇 Android FrameWork学习(一)Android 7.0系统源码下载\编译 我们了解了如何进行系统源码的下载和编译工作. 为了更进一步地学习跟研究 Android 系统源码,今天 ...
- #Week5 Regularization
一.The Problem of Overfitting 欠拟合(high bias):模型不能很好地适应训练集: 过拟合(high variance):模型过于强调拟合原始数据,测试时效果会比较差. ...
- 基于tp3开发的cms-前台代码执行
内核 thinkphp PbootCMS-V1.2.1 ├─ apps 应用程序 │ ├─ admin 后台模块 │ ├─ api api模块 │ ├ ...
- Java——TCP/IP超详细总结
网络的基础知识 一.协议 1.简介: 在计算机网络与信息通信领域里,人们经常提及“协议”一词.互联网中常用的具有代表性的协议有IP.TCP.HTTP等.而LAN(局域网)中常用的协议有IPX/SPX” ...
- Codeforces Round #575 (Div. 3) 昨天的div3 补题
Codeforces Round #575 (Div. 3) 这个div3打的太差了,心态都崩了. B. Odd Sum Segments B 题我就想了很久,这个题目我是找的奇数的个数,因为奇数想分 ...
- H - Food HDU - 4292 网络流
题目 You, a part-time dining service worker in your college’s dining hall, are now confused with a n ...
- 简单ajax跨域请求
最近遇到需要ajax跨域的需求 首先看下不做任何处理特别处理的ajax跨域请求会出现什么样的错误 客户端代码: <script type="text/javascript"& ...
- react-redux的理解
react-redux是辅助redux的,我们正常使用redux是很麻烦的,需要在每个组件中去监听数据变化,执行数据更新等 但是通过react-redux,我们可以简化组件使用公共数据的操作, rea ...
- Android(H5)互相调用方法
记录一下前面混合开发时很重要的java与js互调方法进行数据交互. 混合开发就需要webview这个控件了 这就很玄学了,哈哈哈 这篇文章https://www.jianshu.com/p/3d9a9 ...