Heartbeat报错 attempted replay attack

2022-07-04 10:28:08 浏览数 (1)

线上将两台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。

0 人点赞