阿里云-云小站(无限量代金券发放中)
【腾讯云】云服务器、云数据库、COS、CDN、短信等热卖云产品特惠抢购

Heartbeat报错 attempted replay attack

204次阅读
没有评论

共计 2550 个字符,预计需要花费 7 分钟才能阅读完成。

线上将两台 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 服务双机热备 http://www.linuxidc.com/Linux/2014-04/100635.htm

Heartbeat 实现 Web 服务的高可用群集 http://www.linuxidc.com/Linux/2014-04/99503.htm

Heartbeat+LVS+Ldirectord 高可用负载均衡解决方案 http://www.linuxidc.com/Linux/2014-04/99502.htm

DRBD+Heartbeat+NFS 高可用性配置笔记 http://www.linuxidc.com/Linux/2014-04/99501.htm

Heartbeat 基于 CRM 使用 NFS 对 MySQL 高可用 http://www.linuxidc.com/Linux/2014-03/98674.htm

Heartbeat 高可用 httpd 基于 Resources 简单配置 http://www.linuxidc.com/Linux/2014-03/98672.htm

————————————– 分割线 ————————————–

正文完
星哥玩云-微信公众号
post-qrcode
 0
星锅
版权声明:本站原创文章,由 星锅 于2022-01-20发表,共计2550字。
转载说明:除特殊说明外本站文章皆由CC-4.0协议发布,转载请注明出处。
【腾讯云】推广者专属福利,新客户无门槛领取总价值高达2860元代金券,每种代金券限量500张,先到先得。
阿里云-最新活动爆款每日限量供应
评论(没有评论)
验证码
【腾讯云】云服务器、云数据库、COS、CDN、短信等云产品特惠热卖中