暂无图片
暂无图片
暂无图片
暂无图片
暂无图片
11gr2haip
559
9页
11次
2020-11-26
免费下载
11gR2 RAC 新特性之 Highly Available IP(HAIP)
付思明(Simon Fu)|Senior Support Engineer
Oracle Global Software Support
11g 之前的版本,为了使单块私网网卡的 NIC down 引起节点踢出的可能性最小化,通常要依赖与
OS 厂商的 bonding、trunking、teaming 等类似技术将冗余的网卡绑定在一起使用。从 11.2.0.2 版本开
始,Oracle Clusterware 提供了通过 ip 故障切换来保障内部连接冗余的一体化解决方案。
多个私网网卡可以在安装阶段定义,也可以在后来使用 oifcfg 更改。ora.cluster_interconnect.haip
资源将从“link-local”IP 范围(169.254.*.*)中为每个私网网卡选取一个高可用的虚 IP(HAIP)。默认
地,私网流量会在所有活动的内联网卡上进行负载均衡,如果一个私网网卡损坏或者无法通信,Oracle GI
软件会透明地将相应的 HAIP 地址移到其中一个剩余的在工作的网卡上面。相比于第三方网卡绑定技术,
在提供高可用性的同时又有效利用了带宽。
即使定义了更多的私网网卡,GI 软件最大能够激活的私网网卡数目为四个,而集群实际使用的 HAIP
地址数则取决于集群中最先启动的节点中激活的私网网卡数目。所以如果增加私网网卡,需要重启所有节
点的 clusterware 才会生效
以下通过示例演示:1、使用 HAIP 的好处;2、想让私网连接继续使用固定 ip 的情况下如何配置。
示例环境:
两节点 11.2.0.4 RAC,公网网卡 eth0(192.168.56.0)私网网卡 eth1(192.168.132.0)待加入私网
网卡 eth2(192.168.188.0)
[grid@cluster1 ~]$ oifcfg iflist -p -n
eth0 192.168.56.0 PRIVATE 255.255.255.0<===公网
eth1 192.168.132.0 PRIVATE 255.255.255.0<===私网
eth1 169.254.0.0 UNKNOWN 255.255.0.0<===HAIP
eth2 192.168.188.0 PRIVATE 255.255.255.0<===未用
[grid@cluster1 ~]$ oifcfg getif
eth0 192.168.56.0 global public
eth1 192.168.132.0 global cluster_interconnect
================================
示例 1:新增 HAIP
eth2 网卡加入 cluster_interconnect
[grid@cluster1 ~]$ oifcfg setif -global eth2/192.168.188.0:cluster_interconnect
[grid@cluster1 ~]$ oifcfg getif
eth0 192.168.56.0 global public
eth1 192.168.132.0 global cluster_interconnect
eth2 192.168.188.0 global cluster_interconnect
ifconfig 输出可以看到,现在并未在 eth2 分配相应的 haip:
[root@cluster1 ~]# ifconfig -a
eth1 Link encap:Ethernet HWaddr 08:00:27:E0:69:0D
inet addr:192.168.132.21 Bcast:192.168.132.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:69340 errors:0 dropped:0 overruns:0 frame:0
TX packets:68488 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:48254901 (46.0 MiB) TX bytes:44633200 (42.5 MiB)
eth1:1 Link encap:Ethernet HWaddr 08:00:27:E0:69:0D
inet addr:169.254.31.178 Bcast:169.254.255.255 Mask:255.255.0.0HAIP
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
eth2 Link encap:Ethernet HWaddr 08:00:27:64:5D:AA
inet addr:192.168.188.21 Bcast:192.168.188.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:219 errors:0 dropped:0 overruns:0 frame:0
TX packets:187 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:92054 (89.8 KiB) TX bytes:70836 (69.1 KiB)
lo Link encap:Local Loopback
只重启一个节点的 CRS,查看 HAIP 变化情况:
[root@cluster1 ~]# /grid/bin/crsctl stop cluster
[root@cluster1 ~]# /grid/bin/crsctl stat res -t -init
--------------------------------------------------------------------------------
NAME TARGET STATE SERVER STATE_DETAILS
--------------------------------------------------------------------------------
Cluster Resources
--------------------------------------------------------------------------------
ora.asm
1 ONLINE ONLINE cluster1 Started
ora.cluster_interconnect.haip
1 ONLINE ONLINE cluster1
[root@cluster1 ~]# ifconfig -a
eth1 Link encap:Ethernet HWaddr 08:00:27:E0:69:0D
inet addr:192.168.132.21 Bcast:192.168.132.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:77845 errors:0 dropped:0 overruns:0 frame:0
TX packets:75946 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:53536822 (51.0 MiB) TX bytes:48175928 (45.9 MiB)
eth1:1 Link encap:Ethernet HWaddr 08:00:27:E0:69:0D
inet addr:169.254.31.178 Bcast:169.254.255.255 Mask:255.255.0.0 <===HAIP
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
eth2 Link encap:Ethernet HWaddr 08:00:27:64:5D:AA
inet addr:192.168.188.21 Bcast:192.168.188.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1194 errors:0 dropped:0 overruns:0 frame:0
TX packets:989 errors:0 dropped:0 overruns:0 carrier:0
of 9
免费下载
【版权声明】本文为墨天轮用户原创内容,转载时必须标注文档的来源(墨天轮),文档链接,文档作者等基本信息,否则作者和墨天轮有权追究责任。如果您发现墨天轮中有涉嫌抄袭或者侵权的内容,欢迎发送邮件至:contact@modb.pro进行举报,并提供相关证据,一经查实,墨天轮将立刻删除相关内容。

评论

关注
最新上传
暂无内容,敬请期待...
下载排行榜
Top250 周榜 月榜