keepalived nopreempt 失效总结

keepalived nopreempt 失效

两种解决方式

1.   防火墙没设置开机不启动

2. 广播通信失效,导致原主机开机后抢占vip ,未找到原因。

通过将广播设置为单播解决

vrrp_instance VG_1 {
state BACKUP
interface eth0
virtual_router_id 51
priority 101
advert_int 1
authentication {
auth_type PASS
auth_pass 3489
}
unicast_src_ip  192.168.0.2
unicast_peer { 
 192.168.0.3



virtual_ipaddress {
192.168.0.1/24
}
nopreempt
notify /netposa/data/mysqlfailover-server1.sh
}

你可能感兴趣的:(j2ee)