Heartbeat报错 attempted replay attack

线上将两台lvs服务器做heartbeat热备,但是配置启动后,发现报错:

Jan 28 15:50:22 usvr-211 heartbeat: [2266]: ERROR: should_drop_message: attempted replay attack [usvr-210]? [gen = 1418354318, curgen = 1418354319]
Jan 28 15:50:24 usvr-211 heartbeat: [2266]: WARN: nodename usvr-210 uuid changed to usvr-211
Jan 28 15:50:24 usvr-211 heartbeat: [2266]: WARN: nodename usvr-211 uuid changed to usvr-210
Jan 28 15:50:24 usvr-211 heartbeat: [2266]: ERROR: should_drop_message: attempted replay attack [usvr-210]? [gen = 1418354318, curgen = 1418354319]
Jan 28 15:50:26 usvr-211 heartbeat: [2266]: WARN: nodename usvr-210 uuid changed to usvr-211
Jan 28 15:50:26 usvr-211 heartbeat: [2266]: WARN: nodename usvr-211 uuid changed to usvr-210
Jan 28 15:50:26 usvr-211 heartbeat: [2266]: ERROR: should_drop_message: attempted replay attack [usvr-210]? [gen = 1418354318, curgen = 1418354319]
Jan 28 15:50:28 usvr-211 heartbeat: [2266]: WARN: nodename usvr-210 uuid changed to usvr-211
Jan 28 15:50:28 usvr-211 heartbeat: [2266]: WARN: nodename usvr-211 uuid changed to usvr-210
Jan 28 15:50:28 usvr-211 heartbeat: [2266]: ERROR: should_drop_message: attempted replay attack [usvr-210]? [gen = 1418354318, curgen = 1418354319]
Jan 28 15:50:30 usvr-211 heartbeat: [2266]: WARN: nodename usvr-210 uuid changed to usvr-211
Jan 28 15:50:30 usvr-211 heartbeat: [2266]: WARN: nodename usvr-211 uuid changed to usvr-210
Jan 28 15:50:30 usvr-211 heartbeat: [2266]: ERROR: should_drop_message: attempted replay attack [usvr-210]? [gen = 1418354318, curgen = 1418354319]
Jan 28 15:50:32 usvr-211 heartbeat: [2266]: WARN: nodename usvr-210 uuid changed to usvr-211
Jan 28 15:50:32 usvr-211 heartbeat: [2266]: WARN: nodename usvr-211 uuid changed to usvr-210
Jan 28 15:50:32 usvr-211 heartbeat: [2266]: ERROR: should_drop_message: attempted replay attack [usvr-210]? [gen = 1418354318, curgen = 1418354319]
Jan 28 15:50:34 usvr-211 heartbeat: [2266]: WARN: nodename usvr-210 uuid changed to usvr-211
Jan 28 15:50:34 usvr-211 heartbeat: [2266]: WARN: nodename usvr-211 uuid changed to usvr-210

原因:由于usvr-211是通过vmware克隆复制usvr-210得到的,因此这两台设备完全一样。

而有人说是由于这两台机器的uuid不同导致,需让uuid重新生成。而uuid这个文件默认安装在/var/lib/heartbeat下,卸载并不被删除,如果不手动删除,重新安装仍会使用原来的

的uuid,因此删除后再重新安装果然ok。

--------------------------------------分割线 --------------------------------------

基于Heartbeat V1实现Web服务双机热备

Heartbeat实现Web服务的高可用群集

Heartbeat+LVS+Ldirectord高可用负载均衡解决方案

DRBD+Heartbeat+NFS高可用性配置笔记

Heartbeat基于CRM使用NFS对MySQL高可用

Heartbeat高可用httpd基于Resources简单配置

--------------------------------------分割线 --------------------------------------

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:https://www.heiqu.com/42fb33f18a955864ab6bac9144797255.html