免费注册 查看新帖 |

Chinaunix

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

hearbeat问题,服务无效? [复制链接]

论坛徽章:
0
11 [报告]
发表于 2007-07-30 17:31 |只看该作者
重装第三遍,
rpm 包安装终于出现曙光了,可以了

论坛徽章:
0
12 [报告]
发表于 2007-07-30 19:38 |只看该作者
好,不错,先前的原因还有一个可能我给忽略了。就是配置文件中没给httpd脚本加启动参数
以下还是摘自HA官网资料
Note:  httpd and smb are the name of startup scripts for Apache and Samba, respectively.  Heartbeat will look for startup scripts of the same name in the following paths:
/etc/ha.d/resource.d
/etc/init.d

These scripts must start services via "scriptname start" and stop them via "scriptname stop". So you can use any services as long as they conform to the above standard.
Should you need to pass arguments to a custom script, the format would be:
scriptname::argument
So, if we added a service "maid" which needed the argument "vacuum", our haresources line would modify to the following:
linuxha1 192.168.85.3 httpd smb maid::vacuum

按你的先前的情况,httpd不能自动启动,但可以通过service httpd start启动,所以考虑可以这样配置解决问题。但还是要看
/etc/inin.d/目录下有没有httpd这个文件,有的话这样应该就可以。
linuxha1 192.168.85.3 httpd::start

论坛徽章:
0
13 [报告]
发表于 2007-07-31 10:04 |只看该作者
天使真是热心,我尝试一下。
MM好漂亮啊

论坛徽章:
0
14 [报告]
发表于 2007-09-16 22:25 |只看该作者
提示: 作者被禁止或删除 内容自动屏蔽

论坛徽章:
0
15 [报告]
发表于 2007-09-16 22:39 |只看该作者
heartbeat 的apache要配置,cib.xml大概如下就可以

         <primitive class="ocf" id="apache_3" provider="heartbeat" type="apache">
           <operations>
             <op id="apache_3_mon" interval="120s" name="monitor" timeout="60s" start_delay="0" disabled="false" role="Started"/>
           </operations>
           <instance_attributes id="apache_3_inst_attr">
             <attributes>
               <nvpair id="apache_3_attr_0" name="configfile" value="/etc/httpd/conf/httpd.conf"/>
               <nvpair id="apache_3_target_role" name="target_role" value="started"/>
               <nvpair id="49629d75-ce48-4fbb-9c1e-5be44a4a1d46" name="testregex" value="body"/>
             </attributes>
           </instance_attributes>
         </primitive>

用hb_gui添加三个参数就可以了,另外/var/www/html里面最好放一个index.html(带<body>的标识)

论坛徽章:
0
16 [报告]
发表于 2007-09-17 18:53 |只看该作者
hi 楼主 我最近也在弄ha 我想问一下 你的/usr/lib/heartbeat/BasicSanityCheck
输出的信息是什么 能告诉我么
我的怎么老是报crm错误
折腾了好长时间也不知道该怎么办??
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP