- 论坛徽章:
- 1
|
[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 |
|