一、配置好keepalived.conf文件后,启动keepalived,查看/var/log/message日志报错:

[root@push-- sbin]# tail -f /var/log/messages
Jun :: push-- Keepalived_vrrp[]: VRRP_Instance(VI_1) Dropping received VRRP packet...
Jun :: push-- Keepalived_vrrp[]: (VI_1): received an invalid passwd!
Jun :: push-- Keepalived_vrrp[]: bogus VRRP packet received on em1 !!!
Jun :: push-- Keepalived_vrrp[]: VRRP_Instance(VI_1) Dropping received VRRP packet...
Jun :: push-- Keepalived_vrrp[]: (VI_1): received an invalid passwd!
Jun :: push-- Keepalived_vrrp[]: bogus VRRP packet received on em1 !!!
Jun :: push-- Keepalived_vrrp[]: VRRP_Instance(VI_1) Dropping received VRRP packet...
Jun :: push-- Keepalived_vrrp[]: (VI_1): received an invalid passwd!
Jun :: push-- Keepalived_vrrp[]: bogus VRRP packet received on em1 !!!
Jun :: push-- Keepalived_vrrp[]: VRRP_Instance(VI_1) Dropping received VRRP packet...
Jun :: push-- Keepalived_vrrp[]: (VI_1): received an invalid passwd!
Jun :: push-- Keepalived_vrrp[]: bogus VRRP packet received on em1 !!!
Jun :: push-- Keepalived_vrrp[]: VRRP_Instance(VI_1) Dropping received VRRP packet...
Jun :: push-- Keepalived_vrrp[]: (VI_1): received an invalid passwd!
Jun :: push-- Keepalived_vrrp[]: bogus VRRP packet received on em1 !!!
Jun :: push-- Keepalived_vrrp[]: VRRP_Instance(VI_1) Dropping received VRRP packet...
Jun :: push-- Keepalived_vrrp[]: (VI_1): received an invalid passwd!
Jun :: push-- Keepalived_vrrp[]: bogus VRRP packet received on em1 !!!
Jun :: push-- Keepalived_vrrp[]: VRRP_Instance(VI_1) Dropping received VRRP packet...
Jun :: push-- Keepalived_vrrp[]: (VI_1): received an invalid passwd!
Jun :: push-- Keepalived_vrrp[]: bogus VRRP packet received on em1 !!!
Jun :: push-- Keepalived_vrrp[]: VRRP_Instance(VI_1) Dropping received VRRP packet...

解决办法:

修改配置文件中的:virtual_router_id参数,默认为51 ,修改为60,主从都要修改,保存退出,再重启keepalived,启动成功

vrrp_instance VI_1 {
state MASTER
interface em1
virtual_router_id
priority
advert_int #设定master与backup之间vrrp通告的时间间隔
authentication {
auth_type PASS
auth_pass XXXXXX
}
Jun  :: push-- systemd: Starting LVS and VRRP High Availability Monitor...
Jun :: push-- Keepalived[]: Starting Keepalived v1.3.4 (/,)
Jun :: push-- Keepalived[]: Unable to resolve default script username 'keepalived_script' - ignoring
Jun :: push-- Keepalived[]: Opening file '/etc/keepalived/keepalived.conf'.
Jun :: push-- systemd: Failed to read PID from file /run/keepalived.pid: Invalid argument
Jun :: push-- systemd: Started LVS and VRRP High Availability Monitor.
Jun :: push-- Keepalived[]: Starting Healthcheck child process, pid=
Jun :: push-- Keepalived[]: Starting VRRP child process, pid=
Jun :: push-- Keepalived_healthcheckers[]: Netlink reflector reports IP 172.28.5.214 added
Jun :: push-- Keepalived_healthcheckers[]: Netlink reflector reports IP fe80::9cc6:b07e:1c95: added
Jun :: push-- Keepalived_healthcheckers[]: Registering Kernel netlink reflector
Jun :: push-- Keepalived_healthcheckers[]: Registering Kernel netlink command channel
Jun :: push-- Keepalived_healthcheckers[]: Opening file '/etc/keepalived/keepalived.conf'.
Jun :: push-- Keepalived_vrrp[]: Netlink reflector reports IP 172.28.5.214 added
Jun :: push-- Keepalived_vrrp[]: Netlink reflector reports IP fe80::9cc6:b07e:1c95: added
Jun :: push-- Keepalived_vrrp[]: Registering Kernel netlink reflector
Jun :: push-- Keepalived_vrrp[]: Registering Kernel netlink command channel
Jun :: push-- Keepalived_vrrp[]: Registering gratuitous ARP shared channel
Jun :: push-- Keepalived_vrrp[]: Opening file '/etc/keepalived/keepalived.conf'.
Jun :: push-- Keepalived_vrrp[]: VRRP_Instance(VI_1) removing protocol VIPs.
Jun :: push-- Keepalived_vrrp[]: SECURITY VIOLATION - scripts are being executed but script_security not enabled.
Jun :: push-- Keepalived_vrrp[]: Using LinkWatch kernel netlink reflector...
Jun :: push-- Keepalived_vrrp[]: VRRP sockpool: [ifindex(), proto(), unicast(), fd(,)]
Jun :: push-- Keepalived_healthcheckers[]: Using LinkWatch kernel netlink reflector...
Jun :: push-- Keepalived_vrrp[]: VRRP_Script(chk_nginx) succeeded
Jun :: push-- Keepalived_vrrp[]: VRRP_Instance(VI_1) Transition to MASTER STATE
Jun :: push-- Keepalived_vrrp[]: VRRP_Instance(VI_1) Changing effective priority from to
Jun :: push-- Keepalived_vrrp[]: VRRP_Instance(VI_1) Entering MASTER STATE
Jun :: push-- Keepalived_vrrp[]: VRRP_Instance(VI_1) setting protocol VIPs.
Jun :: push-- Keepalived_healthcheckers[]: Netlink reflector reports IP 172.28.5.224 added
Jun :: push-- Keepalived_vrrp[]: Sending gratuitous ARP on em1 for 172.28.5.224
Jun :: push-- Keepalived_vrrp[]: VRRP_Instance(VI_1) Sending/queueing gratuitous ARPs on em1 for 172.28.5.224
Jun :: push-- Keepalived_vrrp[]: Sending gratuitous ARP on em1 for 172.28.5.224
Jun :: push-- Keepalived_vrrp[]: Sending gratuitous ARP on em1 for 172.28.5.224
Jun :: push-- Keepalived_vrrp[]: Sending gratuitous ARP on em1 for 172.28.5.224
Jun :: push-- Keepalived_vrrp[]: Sending gratuitous ARP on em1 for 172.28.5.224
Jun :: push-- Keepalived_vrrp[]: Sending gratuitous ARP on em1 for 172.28.5.224
Jun :: push-- Keepalived_vrrp[]: VRRP_Instance(VI_1) Sending/queueing gratuitous ARPs on em1 for 172.28.5.224
Jun :: push-- Keepalived_vrrp[]: Sending gratuitous ARP on em1 for 172.28.5.224
Jun :: push-- Keepalived_vrrp[]: Sending gratuitous ARP on em1 for 172.28.5.224
Jun :: push-- Keepalived_vrrp[]: Sending gratuitous ARP on em1 for 172.28.5.224
Jun :: push-- Keepalived_vrrp[]: Sending gratuitous ARP on em1 for 172.28.5.224

keepalived启动后报错:(VI_1): received an invalid passwd!的解决办法的更多相关文章

  1. 启动keepalived报错(VI_1): received an invalid passwd!

    一.署keepalived后测试主down掉后无法自动切换到备 查看message日志一直报此错误 [root@lb-nginx-master ~]# tailf /var/log/messages ...

  2. mysql 启动报错Host name could not be resolved解决办法

    mysql 启动报错信息如下: [root@xxx ~]# 2018-01-26 17:06:35 33 [Warning] Host name 'bogon' could not be resolv ...

  3. keepalived启动不成功,状态一直是inactive(dead) 的解决办法以及keepalived高版本没有rc.d目录,虚拟VIP无法访问问题

    安装配置教程我就不说了,网上很多,这里只给出我遇到的两个坑: 1 rc.d目录 ,kp在1.4版本之后rc.d要去解压之后的源码包里去找,make之后的目录里面没有了,我使用的是2.0.13最新版本, ...

  4. apache启动报错:the requested operation has failed解决办法

    原因一:80端口占用 例如IIS,另外就是迅雷.我的apache服务器就是被迅雷害得无法启用! 原因二:软件冲突 装了某些软件会使apache无法启动如Dr.com 你打开网络连接->TcpIp ...

  5. ApacheHttpServer出现启动报错:the requested operation has failed解决办法

    转自:https://www.jb51.net/article/21004.htm 原因一:80端口占用 例如IIS,另外就是迅雷.我的apache服务器就是被迅雷害得无法启用! 原因二:软件冲突 装 ...

  6. tomcat启动后报错Bad version number in .class file (unable to load class oracle.jdbc.OracleDriver)

    对于tomcat启动后报错: 错误原因:tomcat使用的jdk和eclipce的编译用的jdk版本不同. 解决办法: 1.首先确定tomcat的jdk版本: 2.点开tomcat查看jdk版本. 使 ...

  7. jenkins编辑报错Exception when publishing, exception message的解决办法

    jenkins编辑报错Exception when publishing, exception message的解决办法 查看目标主机的磁盘空间是否占满,清理磁盘空间即可

  8. 运行OpenGL红宝书第9版源码时Visual Studio提示“无法启动程序...ALL_BUILD。拒绝访问“的问题的解决办法

    问题描述: OpenGL红宝书第9版源码采用CMake编译后,用相应的Visual Studio(如VS2012)打开“vermilion9.sln”解决方案,并运行时Visual Studio提示“ ...

  9. 第一次打开pycharm运行python文件报错”No Python interpreter selected“问题的解决办法

    前面没有细讲,这里细述一下安装pycharm后,第一次打开pycharm运行python文件报错"No Python interpreter selected"问题的解决办法. 出 ...

随机推荐

  1. Android Intent和IntentFilter详解与使用及实现系统“分享”接口

    Intent Android中提供了Intent机制来协助应用间的交互与通讯,Intent负责对应用中一次操作的动作.动作涉及数据.附加数据进行描述,Android则根据此Intent的描述,负责找到 ...

  2. 趣谈linux操作系统笔记-从BIOS到bootloader

    BIOS 在主板上,有一个东西叫ROM(Read Only Memory,只读存储器).这和咱们平常说的内存RAM(Read Access Memory,随机存取存储器)不同. 而 ROM 是只读的, ...

  3. json -- fastjson如何序列化@Transient的字段

    今天把fastjson包改成了1.2.58,发现@Transient标注的字段序列化后不见了,但是项目需要把@Transient字段序列化,处理方法: 原文:https://github.com/al ...

  4. ControlTemplate in WPF —— Expander

    <ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" x ...

  5. mysql的性能优化简介

    mysql性能下降的原因 sql语句本身有问题,或没建索引 索引失效,索引失效的原因本文后面会叙述 关联了过多的表,可能是前期设计缺陷,或者太奇葩的需求 服务器调优及参数设置,例如缓冲.线程等 mys ...

  6. zabbix图形刷新延迟解决

    环境: 服务端    ip :192.168.1.204       hostname:www.test.com 服务端    ip :192.168.1.206       hostname:www ...

  7. java:HTML(table表格,ul列表)和CSS(导入.css文件,三种定义颜色方式,三种样式选择器,a标签属性顺序,)

    1.重点掌握: html: 1.form表单:input,checkbox,seelct,radio,button,submit 2.table表格:thead-->tr-->th;tbo ...

  8. JDBC操作数据库的基本操作

    JDBC操作数据库的基本步骤: 1)加载(注册)数据库驱动(到JVM). 2)建立(获取)数据库连接. 3)创建(获取)数据库操作对象. 4)定义操作的SQL语句. 5)执行数据库操作. 6)获取并操 ...

  9. 龙芯软硬件培训个人总结-day2

     今天最后一天,主要培训了BSP,QT,KVM云计算相关的内容.大致总结了一些自己关注的点.培训的资料已上传至服务器,如果需要可关注下方二维码,后台直接回复“资料”获取.关于实战的资料还未导出,等导出 ...

  10. 在Windows服务器安装ss服务端用于逃脱公司行为管理

    1.安装:python-2.7.14.amd64.msi 2.配置环境变量 3.Win64OpenSSL-1_0_2n.exe 4.安装ss服务端:pip install **adowsocks 5. ...