Move all CARP IP's together
-
Hi - I am sure the answer to this is already on these forums, I just cannot find it. I have a HA setup, single WAN interface and two VLAN's on the LAN side. I have been unable to determine what happens if say the LAN connection fails on the primary node, but the WAN stays online.
I suspect of course that the LAN side CARP's on the VLAN interfaces will move to the secondary node, but of course the WAN CARP will still be on the primary node as it's interface is still good and they can see each other. Does this not result in no internet access because the LAN and WAN CARP's are now on different nodes?
I must be missing the really obvious, and I apologise if I have, but if someone could just help me out with how this works, I would really appreciate it.
Neil
-
@neilewing
Just try it out by pulling the LAN cable from the master.If one interface on one node fails it should trigger a failover of all CARP interfaces.
If an interface on the secondary stays at master state after a failover it probably cannot communicate to with the primary node by CARP protocol. -
@viragomann Thanks for your quick reply. I was assuming as much, but was unable to check at the time as we were needing to minimise downtime for the client. We will run the test as you describe.
-
@neilewing When an interface with a CARP VIP loses carrier, all VIPs on that host are demoted. This makes the VIPs on the other node "better" and the rest of the VIPs on the first node swing to BACKUP status (because they see the "better" advertisements) and the ones on the backup node assume MASTER (because they see that they are the "best" VIP status).