免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2696 | 回复: 4
打印 上一主题 下一主题

关于RHCS心跳的讨论贴 [复制链接]

论坛徽章:
1
数据库技术版块每日发帖之星
日期:2016-03-10 06:20:00
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2009-03-09 18:47 |只看该作者 |倒序浏览
# What's the "right" way to get cman to use a different NIC, say, eth2

rather than eth0?

There are several reasons for doing this. You may want to do this in cases

where you want the cman heartbeat messages to be on a dedicated network so

that a heavily used network doesn't cause heartbeat messages to be missed

(and nodes in your cluster to be fenced). Second, you may have security

reasons for wanting to keep these messages off of an Internet-facing

network.

First, you want to configure your alternate NIC to have its own IP address,

and the settings that go with that (subnet, etc).

Next, add an entry into /etc/hosts (on all nodes) for the ip address

associated with the NIC you want to use. In this case, eth2. One way to do

this is to append a suffix to the original host name. For example, if your

node is "node-01" you could give it the name "node-01-p" (-p for private

network). For example, your /etc/hosts file might look like this:
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost.localdomain localhost
::1 localhost6.localdomain6 localhost6
10.0.0.1 node-01
192.168.0.1 node-01-p

If you're using RHEL4.4 or above, or 5.1 or above, that's all you need to

do. There is code in cman to look at all the active network interfaces on

the node and find the one that corresponds to the entry in cluster.conf.

Note that this only works on ipv4 interfaces.



个人从上面的字面翻译得出一个论点:
cman会从cluster.conf里登记的节点上来寻找所有激活的网络接口进行通讯,默认采用eth0来做心跳通讯,进行mcast多点组播。

如果网卡做bonding,它会优先从哪个网络通讯呢?
呵呵。。。。

论坛徽章:
0
2 [报告]
发表于 2009-03-09 22:15 |只看该作者

回复 #1 hbwangting 的帖子

bonding 默认的也是eth0 失效使用eth1

论坛徽章:
0
3 [报告]
发表于 2009-03-09 23:24 |只看该作者
原帖由 hbwangting 于 2009-3-9 18:47 发表
# What's the "right" way to get cman to use a different NIC, say, eth2

rather than eth0?

There are several reasons for doing this. You may want to do this in cases

where you want the c ...


如果bonding是主备模式,哪个网卡是ACTIVE就走哪个呗。

论坛徽章:
0
4 [报告]
发表于 2009-03-10 09:23 |只看该作者
明白了。bonding要确认时什么mode,bonding时最好有交换机,关于心跳的网络问题,记得以前有个帖子讨论过。

论坛徽章:
1
数据库技术版块每日发帖之星
日期:2016-03-10 06:20:00
5 [报告]
发表于 2009-03-10 11:09 |只看该作者
看来做bonding还得指定下primary=eth0参数才好,呵呵
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP