Once the user configures a new VLAN/sub-interface through EFA on both the active and standby nodes, the sub-interfaces are created.
On the active node the IP subnet is applied to the sub-interface.
The keepalived configuration with the new sub-interface IP subnets are updated on both active and standby nodes
Keepalived runs only one instance of VRRP and multiple VIPs can be assigned.
vrrp_instance HA1 { virtual_router_id 51 advert_int 1 priority 102 nopreempt interface eth0 unicast_src_ip 10.24.95.134 # IP address of Master Server unicast_peer { 10.24.95.69 # IP address of Slave Server } virtual_ipaddress { 10.24.95.116/32 dev eth0 20.20.20.2/24 dev efa-sub2 50.50.50.2/24 dev efa-sub1 } track_script { chk_default_gw chk_mariadb } notify /apps/bin/keepalivednotify.sh }
The first VIP is provided in all HA installations and is not managed by MMIP CLIs. In particular, it can't be removed by MMIP. On failover, EFA configures the new active node sub-interfaces with the IP subnets. This is achieved through Keepalived which runs the VRRP protocol
Keepalived runs only one instance of VRRP and multiple VIPs can be assigned.