-
-
Notifications
You must be signed in to change notification settings - Fork 737
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
the backupser log is always print Entering MASTER STATE/Entering BACKUP STATE #2433
Comments
There are a number of issues identified here:
You haven't stated what version of keepalived you are using. Please provide the output of keepalived -v. |
Thank you for your answer 3.There are no more records in the system logs |
There are still some unexplained issues.
|
Ok, I'll try to change the password to 8 characters first, and then see how the problem happens |
hi Jun 21 16:58:34 db02 Keepalived_vrrp[207609]: (VI_1) received an invalid passwd! |
the conf is
global_defs
{
script_user root
enable_script_security
}
vrrp_script chk_mysql {
script "/etc/keepalived/scripts/check_mysql_health.sh"
weight -20
interval 1
timeout 30
}
vrrp_instance VI_1 {
state BACKUP
interface eth0
virtual_router_id 51
priority 90
advert_int 1
nopreempt
authentication {
auth_type PASS
auth_pass xxx654321
}
track_script {
chk_mysql
}
notify_master /etc/keepalived/scripts/notify_master_mysql.sh #set read_only=0
virtual_ipaddress {
172.16.32.51/24
}
}
the conf is priority 100
message log print
Jun 17 20:42:48 oadb02 Keepalived_vrrp[144285]: (VI_1) received an invalid passwd!
Jun 17 20:42:49 oadb02 Keepalived_vrrp[144285]: (VI_1) Entering STATE
Jun 17 20:42:49 oadb02 Keepalived_vrrp[144285]: (VI_1) received advert from 172.16.32.53 with higher priority 100, ours 90
Jun 17 20:42:49 db02 Keepalived_vrrp[144285]: (VI_1) Entering BACKUP STATE
Jun 17 20:42:49 db02 NetworkManager[1002]: [1718628169.4412] policy: set-hostname: current hostname was changed outside NetworkManager: 'db02'
Jun 17 20:42:49 db02 NetworkManager[1002]: [1718628169.4421] policy: set-hostname: current hostname was changed outside NetworkManager: 'db02'
Jun 17 20:50:01 db02 systemd: Started Session 27332 of user root.
Jun 17 20:56:53 db02 Keepalived_vrrp[144285]: (VI_1) received an invalid passwd!
Jun 17 21:00:01 db02 systemd: Started Session 27333 of user root.
Jun 17 21:00:01 db02 systemd: Started Session 27334 of user root.
Jun 17 21:01:01 db02 systemd: Started Session 27335 of user root.
Jun 17 21:10:01 db02 systemd: Started Session 27336 of user root.
Jun 17 21:20:01 db02 systemd: Started Session 27337 of user root.
Jun 17 21:27:43 db02 Keepalived_vrrp[144285]: (VI_1) received an invalid passwd!
Jun 17 21:27:44 db02 Keepalived_vrrp[144285]: (VI_1) received an invalid passwd!
Jun 17 21:27:45 db02 Keepalived_vrrp[144285]: (VI_1) received an invalid passwd!
Jun 17 21:30:01 db02 systemd: Started Session 27339 of user root.
Jun 17 21:30:01 db02 systemd: Started Session 27338 of user root.
Jun 17 21:40:01 db02 systemd: Started Session 27340 of user root.
Jun 17 21:50:01 db02 systemd: Started Session 27341 of user root.
Jun 17 22:00:01 db02 systemd: Started Session 27343 of user root.
Jun 17 22:00:01 db02 systemd: Started Session 27342 of user root.
Jun 17 22:01:01 db02 systemd: Started Session 27344 of user root.
Jun 17 22:04:23 db02 Keepalived_vrrp[144285]: (VI_1) received an invalid passwd!
Jun 17 22:10:01 db02 systemd: Started Session 27345 of user root.
Jun 17 22:10:18 db02 Keepalived_vrrp[144285]: (VI_1) received an invalid passwd!
Jun 17 22:10:19 db02 Keepalived_vrrp[144285]: (VI_1) received an invalid passwd!
Jun 17 22:20:01 db02 systemd: Started Session 27346 of user root.
Jun 17 22:30:01 db02 systemd: Started Session 27347 of user root.
Jun 17 22:30:01 db02 systemd: Started Session 27348 of user root.
Jun 17 22:40:01 db02 systemd: Started Session 27349 of user root.
Jun 17 22:50:01 db02 systemd: Started Session 27350 of user root.
Jun 17 22:55:23 db02 Keepalived_vrrp[144285]: (VI_1) received an invalid passwd!
Jun 17 22:55:24 db02 Keepalived_vrrp[144285]: (VI_1) received an invalid passwd!
Jun 17 22:55:25 db02 Keepalived_vrrp[144285]: (VI_1) received an invalid passwd!
Jun 17 22:56:40 db02 Keepalived_vrrp[144285]: (VI_1) received an invalid passwd!
Jun 17 22:56:41 db02 Keepalived_vrrp[144285]: (VI_1) received an invalid passwd!
Jun 17 22:56:42 db02 Keepalived_vrrp[144285]: (VI_1) received an invalid passwd!
Jun 17 22:57:56 db02 Keepalived_vrrp[144285]: (VI_1) received an invalid passwd!
Jun 17 22:57:57 db02 Keepalived_vrrp[144285]: (VI_1) received an invalid passwd!
Jun 17 22:57:58 db02 Keepalived_vrrp[144285]: (VI_1) received an invalid passwd!
Jun 17 22:57:59 db02 Keepalived_vrrp[144285]: (VI_1) Entering STATE
the keepalivbed version is
/usr/local/keepalived/sbin/keepalived -v
Keepalived v2.2.8 (04/04,2023), git commit v2.2.7-154-g292b299e+
Copyright(C) 2001-2023 Alexandre Cassen, acassen@gmail.com
Built with kernel headers for Linux 3.10.0
Running on Linux 3.10.0-1160.el7.x86_64 #1 SMP Mon Oct 19 16:18:59 UTC 2020
Distro: CentOS Linux 7 (Core)
configure options: --prefix=/usr/local/keepalived/
Config options: LVS VRRP VRRP_AUTH VRRP_VMAC OLD_CHKSUM_COMPAT INIT=systemd
System options: VSYSLOG LIBNL3 RTA_ENCAP RTA_EXPIRES RTA_PREF FRA_SUPPRESS_PREFIXLEN FRA_TUN_ID RTAX_CC_ALGO RTAX_QUICKACK RTA_VIA IFA_FLAGS NET_LINUX_IF_H_COLLISION LIBIPTC_LINUX_NET_IF_H_COLLISION LIBIPVS_NETLINK IFLA_LINK_NETNSID GLOB_BRACE GLOB_ALTDIRFUNC INET6_ADDR_GEN_MODE SO_MARK
The text was updated successfully, but these errors were encountered: