问题背景:
在mysql双主服务中,keepalived进行过主备切换且手动停止Keepalive服务不生效,双主节点都有VIP。
解决方法:
注释/usr/lib/systemd/system/keepalived.service 文件中的KillMode=process,systemctl daemon-reload 重新加载守护进程(使服务的服务程序配置文件生效,需重新加载)
sed -i 's/KillMode=process/#KillMode=process/g' /usr/lib/systemd/system/keepalived.service
systemctl daemon-reload
手动kill掉keepalived的进程然后重启
ps -ef | grep keepalived
kill -p PID
systemctl start keepalived
原创文章,作者:1402239773,如若转载,请注明出处:https://blog.ytso.com/270512.html