Quote:
Originally Posted by Keruskerfuerst
You can change the behaviour of the kernel by recompiling this.
|
I don't think recompling the kernel will fix this problem in keepalived
It seems the switch's prolem, when I re-plugin the cable, the IP address is set to eth0 immediately, but cannot ping it from other hosts in about 30 seconds. I have read the source code of keepalived and the RFC2338, If a host in BACKUP state, it should receive advertisement ARP from MASTER.
So in my case, when I re-plugin the cable of Server-A, Server-A runs into BACKUP state and waits for MASTER's advertisement, but at this time Server-A cannot link with LAN in 30 seconds, so Server-A itself become the MASTER, when it can link with other hosts, it sents advertisment ARP to them and preempt the VIP from the other hosts.
Above is my guess