免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
楼主: archangle
打印 上一主题 下一主题

hearbeat 2.0中如何让2个资源不同时运行在同一个node上? [复制链接]

论坛徽章:
0
21 [报告]
发表于 2005-09-02 09:01 |只看该作者

hearbeat 2.0中如何让2个资源不同时运行在同一个node上?

cvs下载的目录结构里是用./ConfigureMe来编译安装吗?
第一次用cvs版本的东西。

论坛徽章:
0
22 [报告]
发表于 2005-09-02 11:32 |只看该作者

hearbeat 2.0中如何让2个资源不同时运行在同一个node上?

./ConfigureMe bootstrap --enable-crm --enable-pretty --enable-ansi --disable-swig

这个是我用的配置,如果用gcc4, 再加上--disable-fatal-warnings

论坛徽章:
0
23 [报告]
发表于 2005-09-02 11:56 |只看该作者

hearbeat 2.0中如何让2个资源不同时运行在同一个node上?

我是用的默认配置。加上这几个参数有别的优点吗?

论坛徽章:
0
24 [报告]
发表于 2005-09-02 13:28 |只看该作者

hearbeat 2.0中如何让2个资源不同时运行在同一个node上?

早期的时候,不加--enable-crm就会编出1.2.x来,--enable-pretty能美化编译的输出,--enable-ansi, 便于查出不符合ansi C标准的地方,--disable-swig, 如果没装swig的话,也可以编

论坛徽章:
0
25 [报告]
发表于 2005-09-02 13:40 |只看该作者

hearbeat 2.0中如何让2个资源不同时运行在同一个node上?

噢,明白了。
另外我不知道这个算不算bug.就是用那个perl脚本吧haresourse转换成cib.xml的时候。这样的格式不能正确处理。
m2  IPaddr2::192.168.0.1/24/eth1
还有就是当服务不正常运行,但是这时要停止服务的话,停止的时间会非常的慢。

论坛徽章:
0
26 [报告]
发表于 2005-09-02 13:48 |只看该作者

hearbeat 2.0中如何让2个资源不同时运行在同一个node上?

原帖由 "archangle" 发表:
噢,明白了。
另外我不知道这个算不算bug.就是用那个perl脚本吧haresourse转换成cib.xml的时候。这样的格式不能正确处理。
m2  IPaddr2::192.168.0.1/24/eth1
还有就是当服务不正常运行,但是这时要停止服务的话?.........


这个问题我也碰到过,杀进程快点

论坛徽章:
0
27 [报告]
发表于 2005-09-02 14:17 |只看该作者

hearbeat 2.0中如何让2个资源不同时运行在同一个node上?

但是有进程居然是僵尸进程,根本杀不掉。

论坛徽章:
0
28 [报告]
发表于 2005-09-02 14:30 |只看该作者

hearbeat 2.0中如何让2个资源不同时运行在同一个node上?

这个是我的cib.xml里的内容,但是还是不能起到不让两个资源在一个节点同时运行的作用。
                 <constraints>;
                        <rsc_colocation id="production_testing_not_same12" from="IPaddr_1"
                                        to="IPaddr2" score="-INFINITY"/>;
                        <rsc_colocation id="production_testing_not_same13" from="IPaddr_1"
                                        to="IPaddr3" score="-INFINITY"/>;
                        <rsc_colocation id="production_testing_not_same23" from="IPaddr_2"
                                        to="IPaddr3" score="-INFINITY"/>;

                        <rsc_location id="rsc_location_IPaddr_1" rsc="IPaddr_1">;
                                <rule id="prefered_location_IPaddr_1" score="100">;
                                        <expression attribute="#uname" operation="eq" value="m2"/>;
                                </rule>;
                                <rule id="bprefered_location_IPaddr_1" score="50">;
                                        <expression attribute="#uname" operation="eq" value="m7"/>;
                                </rule>;
                        </rsc_location>;
                        <rsc_location id="rsc_location_IPaddr_2" rsc="IPaddr_2">;
                                <rule id="prefered_location_IPaddr_2" score="100">;
                                        <expression attribute="#uname" operation="eq" value="m3"/>;
                                </rule>;
                                <rule id="bprefered_location_IPaddr_2" score="50">;
                                        <expression attribute="#uname" operation="eq" value="m7"/>;
                                </rule>;
                        </rsc_location>;
                        <rsc_location id="rsc_location_IPaddr_3" rsc="IPaddr_3">;
                                <rule id="prefered_location_IPaddr_3" score="100">;
                                        <expression attribute="#uname" operation="eq" value="m5"/>;
                                </rule>;
                                <rule id="bprefered_location_IPaddr_3" score="50">;
                                        <expression attribute="#uname" operation="eq" value="m7"/>;
                                </rule>;
                        </rsc_location>;
                </constraints>;

论坛徽章:
0
29 [报告]
发表于 2005-09-02 15:53 |只看该作者

hearbeat 2.0中如何让2个资源不同时运行在同一个node上?

今天晚上出2.0.1

论坛徽章:
0
30 [报告]
发表于 2005-09-02 16:41 |只看该作者

hearbeat 2.0中如何让2个资源不同时运行在同一个node上?

还好还好,我等着米下锅呢:)
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP