免费注册 查看新帖 |

Chinaunix

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

[服务应用] 部署heartbeat出现的问题 [复制链接]

论坛徽章:
1
2015亚冠之本尤德科
日期:2015-06-05 17:25:48
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2012-07-27 13:31 |只看该作者 |倒序浏览
[root@mysql-m1 ~]# tail -f /var/log/ha-log
heartbeat[2292]: 2012/07/27_13:27:54 ERROR: MSG: Dumping message with 12 fields
heartbeat[2292]: 2012/07/27_13:27:54 ERROR: MSG[0] : [t=status]
heartbeat[2292]: 2012/07/27_13:27:54 ERROR: MSG[1] : [st=active]
heartbeat[2292]: 2012/07/27_13:27:54 ERROR: MSG[2] : [dt=7530]
heartbeat[2292]: 2012/07/27_13:27:54 ERROR: MSG[3] : [protocol=1]
heartbeat[2292]: 2012/07/27_13:27:54 ERROR: MSG[4] : [src=ha-01]
heartbeat[2292]: 2012/07/27_13:27:54 ERROR: MSG[5] : [(1)srcuuid=0x560cbf8(36 27)]
heartbeat[2292]: 2012/07/27_13:27:54 ERROR: MSG[6] : [seq=25b9c]
heartbeat[2292]: 2012/07/27_13:27:54 ERROR: MSG[7] : [hg=4f38e0ae]
heartbeat[2292]: 2012/07/27_13:27:54 ERROR: MSG[8] : [ts=501226e6]
heartbeat[2292]: 2012/07/27_13:27:54 ERROR: MSG[9] : [ld=0.00 0.00 0.00 1/87 29987]
heartbeat[2292]: 2012/07/27_13:27:54 ERROR: MSG[10] : [ttl=3]
heartbeat[2292]: 2012/07/27_13:27:54 ERROR: MSG[11] : [auth=1 3c73d1a1]

[root@mysql-m1 ~]# tail -f /var/log/messages
Jul 27 13:20:40 mysql-m1 last message repeated 22 times
Jul 27 13:21:45 mysql-m1 last message repeated 28 times
Jul 27 13:22:51 mysql-m1 last message repeated 98 times
Jul 27 13:23:49 mysql-m1 last message repeated 64 times
Jul 27 13:23:51 mysql-m1 cib: [4387]: info: cib_stats: Processed 14 operations (2142.00us average, 0% utilization) in the last 10min
Jul 27 13:23:55 mysql-m1 avahi-daemon[2900]: Invalid query packet.
Jul 27 13:24:33 mysql-m1 last message repeated 17 times
Jul 27 13:26:16 mysql-m1 last message repeated 27 times
Jul 27 13:27:18 mysql-m1 last message repeated 63 times
Jul 27 13:28:21 mysql-m1 last message repeated 30 times
Jul 27 13:29:29 mysql-m1 last message repeated 17 times


两个日志都有些不正常:

以下是我heartbeat的配置文件,我认为配置文件上面倒是没有什么错误,早上的时候,测试还有vip,下午又测试不通了,很奇怪


[root@mysql-m1 ~]# cat /etc/ha.d/authkeys
auth 1
1 crc

[root@mysql-m1 ~]# cat /etc/ha.d/ha.cf
logfile /var/log/ha-log

keepalive 1
deadtime 30
warntime 5
initdead 120

ucast eth0 10.0.17.154

auto_failback on

node    mysql-m1
node    mysql-m2

crm on

[root@mysql-m1 ~]# cat /etc/ha.d/haresources
mysql-m1 IPaddr::10.0.17.158/22/eth0

[root@mysql-m1 ~]# cat /etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1               mysql-m1 localhost.localdomain localhost
::1             localhost6.localdomain6 localhost6
10.0.17.153     mysql-m1
10.0.17.154     mysql-m2

论坛徽章:
1
2015亚冠之本尤德科
日期:2015-06-05 17:25:48
2 [报告]
发表于 2012-07-27 14:55 |只看该作者
这个问题解决了,修改ha.cf里面的udpport的端口,由于使用默认端口的话,有人和你的会引起冲突导致了情况的发生。

论坛徽章:
1
2015亚冠之本尤德科
日期:2015-06-05 17:25:48
3 [报告]
发表于 2012-07-27 14:58 |只看该作者
但我的vip反倒是启动不起来了
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP