免费注册 查看新帖 |

Chinaunix

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

cman与openais [复制链接]

论坛徽章:
1
数据库技术版块每日发帖之星
日期:2016-03-10 06:20:00
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2009-03-06 11:20 |显示全部楼层 |倒序浏览
我在网上搜到有些文章在配置RHCS时,在openaic.conf里指定bindnetaddr参数为接私网的网卡IP网段。

但是在http://sources.redhat.com/cluster/wiki/HomePage?action=AttachFile&do=get&target=aiscman.pdf里面看到的确实cman根本就不会使用openais.conf,它是从CCS内置的openais数据结构读取参数值,并映射进openais.conf文件,因此,你可以在CCS里的<totem>部份添加条目并使用这个标志,查阅openais.conf man手册来获得详细的配置方法。
所以,有些人喜欢这样子来设置心跳,适合一些人来熟悉新的想法和新的CCS特性。

原文如下:
openais.conf
cman does not use the openais.conf file at all. What it does do is load the values from CCS into
internal OpenAIS data structures that map onto the entries to openais.conf. So that's why you
can add an entry in a <totem> section in CCS and it will be used by totem. Refer to the
openais.conf(5) man page for the openaisspecific
configuration keys.
So, those people who like to tweak heartbeat settings and suchlike, have some new concepts and
new CCS keys to learn!

我e文差劲,没弄懂这个openais.conf到底对设置心跳网络有没有帮助?

欢迎跟帖讨论

论坛徽章:
1
数据库技术版块每日发帖之星
日期:2016-03-10 06:20:00
2 [报告]
发表于 2009-03-08 13:11 |显示全部楼层

回复 #3 rainbow 的帖子

我在搜仲裁盘的时候看到如下描述:

RHEL2.1使用共享磁盘分区来协调集群状态,IP网络作为备份
RHEL3使用IP网络作为主要协调集群状态而共享磁盘分区作为备份
RHEL4和5结合了GFS(全局文件系统)使用IP网络作为协调机制,不再需要Quorum分区

个人对仲裁盘和心跳的理解:
1、rhel5根据现场环境,可以使用仲裁盘来作为备份手段防止脑裂现象发生。
2、心跳线是接在交换机或HUB上,采用默认的Multicast多播地址以广播的形式在集群节点间进行通讯,一旦节点探测失效,探测次数达到临界点,将被健康节点发送fence命令强行重启,释放资源,保证资源的完整性。
3、cluster.conf里的节点名称,必须是运行hostname命令所得到的主机名,那么ccs_tool来做群集节点间的通讯和信息交换是否是依赖于hosts文件里所设置的主机名和对应的IP呢?如果是,那么心跳信息不是全部从public网络走了嘛?集群管理手册里硬件部份所需要的private网络仅仅是为了接Power switch?

发帖子的目的就是想弄明白,RHCS5的心跳到底从哪个网络走,我的客户2个网卡做bonding提供publice networking ,另2个网卡做bonding提供private networking,fence设备是用HP的ilo设备,集群也做成功了,就是不太明白这个private networking是否是必须的,quorum 机制在2节点的集群用的人多不多?

论坛徽章:
1
数据库技术版块每日发帖之星
日期:2016-03-10 06:20:00
3 [报告]
发表于 2009-03-09 09:39 |显示全部楼层

回复 #6 jerrywjl 的帖子

在A description of networking in Red Hat Cluster (http://sources.redhat.com/cluste ... et=CSNetworking.pdf)一文中提到:
cman tries hard to match the local host name(s) to those mentioned in cluster.conf. Here's how it does
it:
1. It looks up $HOSTNAME in cluster.conf
2. If this fails it strips the domain name from $HOSTNAME and looks up that in cluster.conf
3. If this fails it looks in cluster.conf for a fully-qualified name whose short version matches the
short version of $HOSTNAME
4. If all this fails then it will search the interfaces list for an (ipv4 only) address that matches a
name in cluster.conf
cman will then bind to the address that it has matched.

翻译过来的话,cman_tool确实是依靠$HOSTNAME命令得出的结果去寻找集群节点与之通讯,可以是带域名后缀的全称,或者去掉域名后缀

论坛徽章:
1
数据库技术版块每日发帖之星
日期:2016-03-10 06:20:00
4 [报告]
发表于 2009-03-09 13:46 |显示全部楼层

回复 #8 jerrywjl 的帖子

hostname命令得出的主机名,和/etc/hosts文件里的主机名肯定是一样的啦

晕死。。。

论坛徽章:
1
数据库技术版块每日发帖之星
日期:2016-03-10 06:20:00
5 [报告]
发表于 2009-03-09 17:59 |显示全部楼层

回复 #11 jerrywjl 的帖子

The /etc/cluster/cluster.conf uses /etc/hosts for node-name look-up.

The cluster node name needs to match the output of uname -n or the value of HOSTNAME in /etc/sysconfig/network. The cluster node names need to be the fully qualified domain name.

[ 本帖最后由 hbwangting 于 2009-3-9 18:04 编辑 ]
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP