免费注册 查看新帖 |

Chinaunix

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

crm_mon有毛病吗,请各路大神帮忙啊,功德无量 [复制链接]

论坛徽章:
3
天秤座
日期:2014-10-29 11:37:572015元宵节徽章
日期:2015-03-06 15:50:39NBA常规赛纪念章
日期:2015-05-04 22:32:03
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2013-05-28 16:44 |只看该作者 |倒序浏览
本帖最后由 tomer 于 2013-05-28 16:49 编辑

Last updated: Tue May 28 16:43:01 2013
Current DC: intel-02 (35a1a9b4-58d6-4b74-aee2-81748c971be2)
2 Nodes configured.
1 Resources configured.
============

Node: intel-02 (35a1a9b4-58d6-4b74-aee2-81748c971be2): online
Node: intel-01 (0921b8a9-2628-4507-9f4f-525e49aa3329): OFFLINE

Resource Group: group_1
    IPaddr_192_168_7_189        (ocf::heartbeat:IPaddr):        Started intel-02
    httpd_2     (lsb:httpd):    Started intel-02


我service httpd stop了,为什么crm_mon显示httpd资源online呢


[root@Intel-02 log]# ps -ef|grep http
root     13762  7810  0 16:43 pts/1    00:00:00 grep http

论坛徽章:
3
天秤座
日期:2014-10-29 11:37:572015元宵节徽章
日期:2015-03-06 15:50:39NBA常规赛纪念章
日期:2015-05-04 22:32:03
2 [报告]
发表于 2013-05-30 10:44 |只看该作者
请本版版主开恩啊,帮看看这个是什么问题?

论坛徽章:
3
天秤座
日期:2014-10-29 11:37:572015元宵节徽章
日期:2015-03-06 15:50:39NBA常规赛纪念章
日期:2015-05-04 22:32:03
3 [报告]
发表于 2013-05-31 09:05 |只看该作者
    本版大牛都忙啥呢。出来看看吧

论坛徽章:
16
IT运维版块每日发帖之星
日期:2015-10-02 06:20:00IT运维版块每月发帖之星
日期:2015-09-11 19:30:52IT运维版块每周发帖之星
日期:2015-09-11 19:20:31IT运维版块每日发帖之星
日期:2015-08-26 06:20:00每日论坛发贴之星
日期:2015-08-20 06:20:00IT运维版块每日发帖之星
日期:2015-08-20 06:20:002015年辞旧岁徽章
日期:2015-03-03 16:54:15金牛座
日期:2014-05-04 16:58:09双子座
日期:2013-12-17 16:44:37辰龙
日期:2013-11-22 15:20:59狮子座
日期:2013-11-18 22:55:08射手座
日期:2013-11-12 10:54:26
4 [报告]
发表于 2013-05-31 09:11 |只看该作者
LVS+Heartbeat?

论坛徽章:
3
天秤座
日期:2014-10-29 11:37:572015元宵节徽章
日期:2015-03-06 15:50:39NBA常规赛纪念章
日期:2015-05-04 22:32:03
5 [报告]
发表于 2013-05-31 09:13 |只看该作者
不是,纯heartbeat 我配置的是crm on方式;


论坛徽章:
3
天秤座
日期:2014-10-29 11:37:572015元宵节徽章
日期:2015-03-06 15:50:39NBA常规赛纪念章
日期:2015-05-04 22:32:03
6 [报告]
发表于 2013-05-31 09:18 |只看该作者
回复 4# wenhq


    等一下,我取一下cib.xml,给你,帮我看看。配置有什么问题

论坛徽章:
3
天秤座
日期:2014-10-29 11:37:572015元宵节徽章
日期:2015-03-06 15:50:39NBA常规赛纪念章
日期:2015-05-04 22:32:03
7 [报告]
发表于 2013-05-31 09:27 |只看该作者
回复 4# wenhq


  1. <cib admin_epoch="0" generated="true" have_quorum="true" ignore_dtd="false" num_peers="1" ccm_transition="3" cib_feature_revision="2.0" crm_feature_set="2.0" dc_uuid="0921b8a9-2628-4507-9f4f-525e49aa3329" epoch="12" num_updates="2" cib-last-written="Fri May 17 09:21:11 2013">
  2.    <configuration>
  3.      <crm_config>
  4.        <cluster_property_set id="cib-bootstrap-options">
  5.          <attributes>
  6.            <nvpair id="cib-bootstrap-options-symmetric-cluster" name="symmetric-cluster" value="true"/>
  7.            <nvpair id="cib-bootstrap-options-no-quorum-policy" name="no-quorum-policy" value="ignore"/>
  8.            <nvpair id="cib-bootstrap-options-default-resource-stickiness" name="default-resource-stickiness" value="0"/>
  9.            <nvpair id="cib-bootstrap-options-default-resource-failure-stickiness" name="default-resource-failure-stickiness" value="0"/>
  10.            <nvpair id="cib-bootstrap-options-stonith-enabled" name="stonith-enabled" value="false"/>
  11.            <nvpair id="cib-bootstrap-options-stonith-action" name="stonith-action" value="reboot"/>
  12.            <nvpair id="cib-bootstrap-options-startup-fencing" name="startup-fencing" value="true"/>
  13.            <nvpair id="cib-bootstrap-options-stop-orphan-resources" name="stop-orphan-resources" value="true"/>
  14.            <nvpair id="cib-bootstrap-options-stop-orphan-actions" name="stop-orphan-actions" value="true"/>
  15.            <nvpair id="cib-bootstrap-options-remove-after-stop" name="remove-after-stop" value="false"/>
  16.            <nvpair id="cib-bootstrap-options-short-resource-names" name="short-resource-names" value="true"/>
  17.            <nvpair id="cib-bootstrap-options-transition-idle-timeout" name="transition-idle-timeout" value="5min"/>
  18.            <nvpair id="cib-bootstrap-options-default-action-timeout" name="default-action-timeout" value="20s"/>
  19.            <nvpair id="cib-bootstrap-options-is-managed-default" name="is-managed-default" value="true"/>
  20.            <nvpair id="cib-bootstrap-options-cluster-delay" name="cluster-delay" value="60s"/>
  21.            <nvpair id="cib-bootstrap-options-pe-error-series-max" name="pe-error-series-max" value="-1"/>
  22.            <nvpair id="cib-bootstrap-options-pe-warn-series-max" name="pe-warn-series-max" value="-1"/>
  23.            <nvpair id="cib-bootstrap-options-pe-input-series-max" name="pe-input-series-max" value="-1"/>
  24.            <nvpair id="cib-bootstrap-options-dc-version" name="dc-version" value="2.1.4-node: aa909246edb386137b986c5773344b98c6969999"/>
  25.          </attributes>
  26.        </cluster_property_set>
  27.      </crm_config>
  28.      <nodes>
  29.        <node id="35a1a9b4-58d6-4b74-aee2-81748c971be2" uname="intel-02" type="normal"/>
  30.        <node id="0921b8a9-2628-4507-9f4f-525e49aa3329" uname="intel-01" type="normal"/>
  31.      </nodes>
  32.      <resources>
  33.        <group id="group_1">
  34.          <primitive class="ocf" id="IPaddr_192_168_7_189" provider="heartbeat" type="IPaddr">
  35.            <operations>
  36.              <op id="IPaddr_192_168_7_189_mon" interval="5s" name="monitor" timeout="5s" start_delay="0" disabled="false" role="Started"/>
  37.            </operations>
  38.            <instance_attributes id="IPaddr_192_168_7_189_inst_attr">
  39.              <attributes>
  40.                <nvpair id="IPaddr_192_168_7_189_attr_0" name="ip" value="192.168.7.189"/>
  41.              </attributes>
  42.            </instance_attributes>
  43.            <meta_attributes id="IPaddr_192_168_7_189_meta_attrs">
  44.              <attributes>
  45.                <nvpair id="IPaddr_192_168_7_189_metaattr_resource_stickiness" name="resource_stickiness" value="100"/>
  46.                <nvpair id="IPaddr_192_168_7_189_metaattr_resource_failure_stickiness" name="resource_failure_stickiness" value="-20"/>
  47.              </attributes>
  48.            </meta_attributes>
  49.          </primitive>
  50.          <primitive class="lsb" id="httpd_2" provider="heartbeat" type="httpd">
  51.            <operations>
  52.              <op id="httpd_2_mon"  name="monitor" timeout="60s" start_delay="0" disabled="false" role="Started"/>
  53.            </operations>
  54.            <instance_attributes id="httpd_2_meta_attrs">
  55.              <attributes>
  56.                <nvpair id="httpd_2-target-role" name="target-role" value="start"/>
  57.                <nvpair id="httpd_2_metaattr_resource_stickiness" name="resource_stickiness" value="100"/>
  58.                <nvpair id="httpd_2_metaattr_resource_failure_stickiness" name="resource_failure_stickiness" value="-20"/>
  59.              </attributes>
  60.            </instance_attributes>
  61.          </primitive>
  62.        </group>
  63.      </resources>
  64.      <constraints>
  65.        <rsc_location id="rsc_location_group_1" rsc="group_1">
  66.          <rule id="prefered_location_group_1" score="100">
  67.            <expression attribute="#uname" id="prefered_location_group_1_expr" operation="eq" value="Intel-01"/>
  68.          </rule>
  69.        </rsc_location>
  70.      </constraints>
  71.    </configuration>
  72. </cib>
复制代码

论坛徽章:
16
IT运维版块每日发帖之星
日期:2015-10-02 06:20:00IT运维版块每月发帖之星
日期:2015-09-11 19:30:52IT运维版块每周发帖之星
日期:2015-09-11 19:20:31IT运维版块每日发帖之星
日期:2015-08-26 06:20:00每日论坛发贴之星
日期:2015-08-20 06:20:00IT运维版块每日发帖之星
日期:2015-08-20 06:20:002015年辞旧岁徽章
日期:2015-03-03 16:54:15金牛座
日期:2014-05-04 16:58:09双子座
日期:2013-12-17 16:44:37辰龙
日期:2013-11-22 15:20:59狮子座
日期:2013-11-18 22:55:08射手座
日期:2013-11-12 10:54:26
8 [报告]
发表于 2013-05-31 09:57 |只看该作者

论坛徽章:
3
天秤座
日期:2014-10-29 11:37:572015元宵节徽章
日期:2015-03-06 15:50:39NBA常规赛纪念章
日期:2015-05-04 22:32:03
9 [报告]
发表于 2013-05-31 14:10 |只看该作者
这个链接都看了,就是测试不通过

我的的环境:
设置两个资源组1.IP 2.httpd

预想这样的结果:

1.两个资源正常启动,都启动在node1
2.当node1的httpd服务掉了,视图重启,正常启动就OK了,当多少启动失败后,两个资源都切换到node2上

论坛徽章:
3
天秤座
日期:2014-10-29 11:37:572015元宵节徽章
日期:2015-03-06 15:50:39NBA常规赛纪念章
日期:2015-05-04 22:32:03
10 [报告]
发表于 2013-05-31 14:24 |只看该作者
感觉写这个东西的人挺牛的,但是这东西感觉没有人维护,好多问题,没法解释。

刚才我又试了一下。把httpd杀掉,等一会集群自动把httpd拉了起来。再杀掉,就不起了。
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP