-
Notifications
You must be signed in to change notification settings - Fork 0
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
7.14 Keeaplived再次使用 #301
Comments
0418killall nginx kill -9 $(ps -ef | grep nginx | grep python |awk '{print $2}' ) ps aux | grep nginx | grep -v grep | awk '{print $2}'| xargs kill service keepalived start
systemctl status keepalived.service
journalctl -xe
vi /opt/xxx/tools/deploy/business_machine/base/keepalived/install_keepalived/keepalived/install_kp/keepalived.service
Failed to read PID from file /var/run/keepalived.pid: Invalid argument
作者:屌丝50 问题见 PIDFile=/var/run/keepalived.pid 运行命令 在运行就Ok了 作者:猪脚踏浪 echo 11111 > /var/run/keepalived.pid
vi /var/log/messages Apr 22 11:25:46 jxt116 systemd: Starting SYSV: Start and stop Keepalived... cd /opt/xxx/tools/deploy/business_machine/base/keepalived /opt/xxx/tools/deploy/business_machine/base/keepalived/install_keepalived/keepalived/install_kp #PIDFile=/var/run/keepalived.pid cd /opt/xxx/base/keepalived [root@jxt116 keepalived]# cd /etc/keepalived/ cat /run/systemd/generator.late/keepalived.service
/usr/local/sbin/ |
0425vi /var/log/messages
Keepalived_healthcheckers[103206]: Stopped service keepalived start systemctl status keepalived.service cd /opt/xxx/tools/deploy/business_machine/base/keepalived/install_keepalived/keepalived/install_kp [root@jxt116 keepalived]# cd /etc/keepalived/ [root@jxt118 ~]# systemctl stop firewalld.service
[root@jxt118 ~]# systemctl start firewalld.service
后面
|
0730 脑裂问题重启keepalived服务: 只有从节点有浮动ip,脑裂问题消失。 重启机器 测试,也是一样的,只有主有浮动ip。 关闭主节点的keepalived: 100.129.133.138
linuxSu linux里的bootproto的none,static,dhcp有什么区别 这个是网络配置参数: BOOTPROTO=dhcp 动态IP BOOTPROTO=none 无(不指定) keepalived绑定的ip一段时间(大约几分钟)后消失的问题 接着检查系统其他日志,在/var/log/messages中看到,每隔几分钟分钟就会有一条dhcpclient的日志。据此猜测是启用的eth1的dhcp功能导致的keepalived绑定的ip在一段时间(大约几分钟)后消失。 修改配置文件/etc/sysconfig/network-scripts/ifcfg-eth1,设置BOOTPROTO=none。重启服务service network restart和service keepalived restart后,ip地址不在丢失,服务器工作正常。 |
keepalived-vrrp-healthcheck.txt |
数据库主备探索
The text was updated successfully, but these errors were encountered: