K8s高可用集群,Keepalived日志报错---IPVS (cmd 1159, errno 2): No such file or directory

2021-04-19 17:33:14 浏览数 (2)

各master报错如下:

代码语言:javascript复制
[root@master1 ~]#systemctl status keepalived
● keepalived.service - LVS and VRRP High Availability Monitor
   Loaded: loaded (/usr/lib/systemd/system/keepalived.service; enabled; vendor preset: disabled)
   Active: active (running) since Wed 2021-04-14 15:32:46 CST; 2 days ago
  Process: 1297 ExecStart=/usr/sbin/keepalived $KEEPALIVED_OPTIONS (code=exited, status=0/SUCCESS)
 Main PID: 1307 (keepalived)
    Tasks: 3
   Memory: 5.9M
   CGroup: /system.slice/keepalived.service
           ├─1307 /usr/sbin/keepalived -D
           ├─1308 /usr/sbin/keepalived -D
           └─1309 /usr/sbin/keepalived -D

Apr 17 11:04:31 master1 Keepalived_healthcheckers[1308]: Adding service [42.51.80.121]:6443 to VS [42.51.80.120]:6443
Apr 17 11:04:31 master1 Keepalived_healthcheckers[1308]: IPVS (cmd 1159, errno 2): No such file or directory
Apr 17 11:04:33 master1 Keepalived_healthcheckers[1308]: HTTP status code success to [42.51.80.123]:6443 url(1).
Apr 17 11:04:33 master1 Keepalived_healthcheckers[1308]: Remote Web server [42.51.80.123]:6443 succeed on service.
Apr 17 11:04:33 master1 Keepalived_healthcheckers[1308]: Adding service [42.51.80.123]:6443 to VS [42.51.80.120]:6443
Apr 17 11:04:33 master1 Keepalived_healthcheckers[1308]: IPVS (cmd 1159, errno 2): No such file or directory
Apr 17 11:04:34 master1 Keepalived_healthcheckers[1308]: HTTP status code success to [42.51.80.122]:6443 url(1).
Apr 17 11:04:34 master1 Keepalived_healthcheckers[1308]: Remote Web server [42.51.80.122]:6443 succeed on service.
Apr 17 11:04:34 master1 Keepalived_healthcheckers[1308]: Adding service [42.51.80.122]:6443 to VS [42.51.80.120]:6443
Apr 17 11:04:34 master1 Keepalived_healthcheckers[1308]: IPVS (cmd 1159, errno 2): No such file or directory

经过排查解决,发现依赖包缺少

代码语言:javascript复制
yum install libnl* popt* -y

重启Keepalived服务

代码语言:javascript复制
systemctl restart keepalived

查看服务状态,已经恢复正常

代码语言:javascript复制
[root@master1 ~]#systemctl status keepalived
● keepalived.service - LVS and VRRP High Availability Monitor
   Loaded: loaded (/usr/lib/systemd/system/keepalived.service; enabled; vendor preset: disabled)
   Active: active (running) since Sat 2021-04-17 10:58:08 CST; 8min ago
  Process: 3976 ExecStart=/usr/sbin/keepalived $KEEPALIVED_OPTIONS (code=exited, status=0/SUCCESS)
 Main PID: 3978 (keepalived)
    Tasks: 3
   Memory: 1.4M
   CGroup: /system.slice/keepalived.service
           ├─3978 /usr/sbin/keepalived -D
           ├─3979 /usr/sbin/keepalived -D
           └─3980 /usr/sbin/keepalived -D

Apr 17 11:04:46 master1 Keepalived_vrrp[3980]: Sending gratuitous ARP on ens192 for 42.51.80.120
Apr 17 11:04:46 master1 Keepalived_vrrp[3980]: Sending gratuitous ARP on ens192 for 42.51.80.120
Apr 17 11:04:46 master1 Keepalived_vrrp[3980]: Sending gratuitous ARP on ens192 for 42.51.80.120
Apr 17 11:04:46 master1 Keepalived_vrrp[3980]: Sending gratuitous ARP on ens192 for 42.51.80.120
Apr 17 11:04:51 master1 Keepalived_vrrp[3980]: Sending gratuitous ARP on ens192 for 42.51.80.120
Apr 17 11:04:51 master1 Keepalived_vrrp[3980]: VRRP_Instance(VI_1) Sending/queueing gratuitous ARPs on ens192 for 42.51.80.120
Apr 17 11:04:51 master1 Keepalived_vrrp[3980]: Sending gratuitous ARP on ens192 for 42.51.80.120
Apr 17 11:04:51 master1 Keepalived_vrrp[3980]: Sending gratuitous ARP on ens192 for 42.51.80.120
Apr 17 11:04:51 master1 Keepalived_vrrp[3980]: Sending gratuitous ARP on ens192 for 42.51.80.120
Apr 17 11:04:51 master1 Keepalived_vrrp[3980]: Sending gratuitous ARP on ens192 for 42.51.80.120

0 人点赞