关于oracle RAC心跳线采用直连 还是交换机连接的建议

 

首先说说心跳线的作用:

oracle RAC不得不提的概念:健忘 和 脑裂

健忘=》OCR

脑裂=》VOTE

下面谈谈直连的方式:

在oracle9i rac的时侯采用直连的要比走交换机的要多。

走交换机的优点是如果其中rac其中的一台掉电
此时好的那台的网卡还是有信号的
这样oracle会很容易的取舍,不会影响到好的节点

其实直连也只是在掉电这样的情况下才会让oracle有些迷惑
这种情况下是否会影响好的结点我没测过,条件允许你可以测一下
一般情况不会有问题
如有硬件这样计划停机的情况,可以手动的把相应结点的crs等服务停掉,这样也不会有什么影响

总之,条件充许最好走交换机,最好配置etherchannel 或是apa这样的网卡绑定
直连的方式在实际使用中也只是有一点小问题,用也没事。


如果心跳网络断掉了,oracle的集群就会分裂成若干个小的自己群,我们叫cohort(你可以在ocssd.log)里面找到。
oracle会根据每个cohort包含的节点数量决定哪个子集群离开,基本的原则是:
1. 节点数多的子集群留下,节点数少的被驱逐。
2. 如果每个子集群的节点数
相同,那么包含了最小节点编号的节点会被保留。

这就是为什么你看到两个节点的集群,如果心跳网络出现问题,一定是节点2被重启的原因。

另外:
节点的驱逐和VF(就是很多人说的voting disk)没关系。
主要的原因是很多人把数据库层面的实例驱逐和集群层面的界定啊驱逐概念搞混了。

所以才有了这种错误的认识。

如果是数据库实例层面的驱逐,的确是和控制文件相关的,因为在数据库层面控制文件起到了VF的作用.

Is crossover cable supported as an interconnect with RAC on any platform. ?

NO. CROSS OVER CABLES ARE NOT SUPPORTED. The requirement is to use a switch: 

Detailed Reasons:

1) cross-cabling limits the expansion of RAC to two nodes 

2) cross-cabling is unstable:

a) Some NIC cards do not work properly with it. They are not able to negotiate the DTE/DCE clocking, and will thus not function. These NICS were made cheaper by assuming that the switch was going to have the clock. Unfortunately there is no way to know which NICs do not have that clock.

b) Media sense behaviour on various OS's (most notably Windows) will bring a NIC down when a cable is disconnected. Either of these issues can lead to cluster instability and lead to ORA-29740 errors (node evictions).

Due to the benefits and stability provided by a switch, and their afforability ($200 for a simple 16 port GigE switch), and the expense and time related to dealing with issues when one does not exist, this is the only supported configuration.

From a purely technology point of view Oracle does not care if the customer uses cross over cable or router or switches to deliver a message. However, we know from experience that a lot of adapters misbehave when used in a crossover configuration and cause a lot of problems for RAC. Hence we have stated on certify that we do not support crossover cables to avoid false bugs and finger pointing amongst the various parties: Oracle, Hardware vendors, Os vendors etc...

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值