LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

Keepalived/Vrrp with Shorewall

To: lvs-users@xxxxxxxxxxxxxxxxxxxxxx
Subject: Keepalived/Vrrp with Shorewall
From: Noc Phibee <noc@xxxxxxxxxx>
Date: Wed, 23 Aug 2006 06:37:06 +0200
Hi

I request a small help on my Keepalived config ;=)

1- For Vrrp protocol, anyone know what entry i pu into shorewall 3.1.2 ?

2- I want that when my group change of state, he restart Shorewall.
   I have used the notify_*:
      When my MASTER are dead, the BACKUP change state and it's good.
   but when the MASTER are available and get the virtual IP, he start 8/10x
   the same script (restart of shorewall).

   Anyone have a idea why he don't change immediatly the states ?

Master logs:

ug 23 06:14:13 fw-phibee-lyon-srv1 Keepalived_vrrp: VRRP_Instance(VI_2) Received lower prio advert, forcing new election Aug 23 06:14:13 fw-phibee-lyon-srv1 Keepalived_vrrp: VRRP_Instance(VI_2) Sending gratuitous ARPs on eth1 for 192.168.176.254 Aug 23 06:14:13 fw-phibee-lyon-srv1 Keepalived_vrrp: VRRP_Instance(VI_3) Received lower prio advert, forcing new election Aug 23 06:14:13 fw-phibee-lyon-srv1 Keepalived_vrrp: VRRP_Instance(VI_3) Sending gratuitous ARPs on eth2 for 192.168.42.156 Aug 23 06:14:14 fw-phibee-lyon-srv1 Keepalived_vrrp: VRRP_Instance(VI_1) Received lower prio advert, forcing new election Aug 23 06:14:14 fw-phibee-lyon-srv1 Keepalived_vrrp: VRRP_Instance(VI_1) Sending gratuitous ARPs on eth0 for 192.168.42.37 Aug 23 06:14:14 fw-phibee-lyon-srv1 Keepalived_vrrp: VRRP_Instance(VI_2) Received lower prio advert, forcing new election Aug 23 06:14:14 fw-phibee-lyon-srv1 Keepalived_vrrp: VRRP_Instance(VI_2) Sending gratuitous ARPs on eth1 for 192.168.176.254 Aug 23 06:14:14 fw-phibee-lyon-srv1 Keepalived_vrrp: VRRP_Instance(VI_3) Received lower prio advert, forcing new election Aug 23 06:14:14 fw-phibee-lyon-srv1 Keepalived_vrrp: VRRP_Instance(VI_3) Sending gratuitous ARPs on eth2 for 192.168.42.156 Aug 23 06:14:15 fw-phibee-lyon-srv1 Keepalived_vrrp: VRRP_Instance(VI_1) Received lower prio advert, forcing new election Aug 23 06:14:15 fw-phibee-lyon-srv1 Keepalived_vrrp: VRRP_Instance(VI_1) Sending gratuitous ARPs on eth0 for 192.168.42.37 Aug 23 06:14:15 fw-phibee-lyon-srv1 Keepalived_vrrp: VRRP_Instance(VI_2) Received lower prio advert, forcing new election Aug 23 06:14:15 fw-phibee-lyon-srv1 Keepalived_vrrp: VRRP_Instance(VI_2) Sending gratuitous ARPs on eth1 for 192.168.176.254 Aug 23 06:14:15 fw-phibee-lyon-srv1 Keepalived_vrrp: VRRP_Instance(VI_3) Received lower prio advert, forcing new election Aug 23 06:14:15 fw-phibee-lyon-srv1 Keepalived_vrrp: VRRP_Instance(VI_3) Sending gratuitous ARPs on eth2 for 192.168.42.156 Aug 23 06:14:16 fw-phibee-lyon-srv1 Keepalived_vrrp: VRRP_Instance(VI_1) Received lower prio advert, forcing new election Aug 23 06:14:16 fw-phibee-lyon-srv1 Keepalived_vrrp: VRRP_Instance(VI_1) Sending gratuitous ARPs on eth0 for 192.168.42.37 Aug 23 06:14:16 fw-phibee-lyon-srv1 Keepalived_vrrp: VRRP_Instance(VI_2) Received lower prio advert, forcing new election Aug 23 06:14:16 fw-phibee-lyon-srv1 Keepalived_vrrp: VRRP_Instance(VI_2) Sending gratuitous ARPs on eth1 for 192.168.176.254 Aug 23 06:14:16 fw-phibee-lyon-srv1 Keepalived_vrrp: VRRP_Instance(VI_3) Received lower prio advert, forcing new election Aug 23 06:14:16 fw-phibee-lyon-srv1 Keepalived_vrrp: VRRP_Instance(VI_3) Sending gratuitous ARPs on eth2 for 192.168.42.156 Aug 23 06:14:17 fw-phibee-lyon-srv1 Keepalived_vrrp: VRRP_Instance(VI_1) Received lower prio advert, forcing new election Aug 23 06:14:17 fw-phibee-lyon-srv1 Keepalived_vrrp: VRRP_Instance(VI_1) Sending gratuitous ARPs on eth0 for 192.168.42.37 Aug 23 06:14:17 fw-phibee-lyon-srv1 Keepalived_vrrp: VRRP_Instance(VI_2) Received lower prio advert, forcing new election Aug 23 06:14:17 fw-phibee-lyon-srv1 Keepalived_vrrp: VRRP_Instance(VI_2) Sending gratuitous ARPs on eth1 for 192.168.176.254 Aug 23 06:14:17 fw-phibee-lyon-srv1 Keepalived_vrrp: VRRP_Instance(VI_3) Received lower prio advert, forcing new election Aug 23 06:14:17 fw-phibee-lyon-srv1 Keepalived_vrrp: VRRP_Instance(VI_3) Sending gratuitous ARPs on eth2 for 192.168.42.156

Backup logs:
Aug 23 06:13:27 fw-phibee-lyon-srv2 Keepalived_vrrp: VRRP_Group(VG1) Syncing instances to BACKUP state Aug 23 06:13:27 fw-phibee-lyon-srv2 Keepalived_vrrp: VRRP_Instance(VI_1) Entering BACKUP STATE Aug 23 06:13:27 fw-phibee-lyon-srv2 Keepalived_vrrp: VRRP_Instance(VI_2) Entering BACKUP STATE Aug 23 06:13:27 fw-phibee-lyon-srv2 Keepalived_vrrp: VRRP_Instance(VI_4) Entering BACKUP STATE Aug 23 06:13:28 fw-phibee-lyon-srv2 Keepalived_vrrp: VRRP_Instance(VI_4) Transition to MASTER STATE Aug 23 06:13:28 fw-phibee-lyon-srv2 Keepalived_vrrp: VRRP_Group(VG1) Syncing instances to MASTER state Aug 23 06:13:28 fw-phibee-lyon-srv2 Keepalived_vrrp: VRRP_Instance(VI_1) Transition to MASTER STATE Aug 23 06:13:28 fw-phibee-lyon-srv2 Keepalived_vrrp: VRRP_Instance(VI_2) Transition to MASTER STATE Aug 23 06:13:28 fw-phibee-lyon-srv2 Keepalived_vrrp: VRRP_Instance(VI_3) Transition to MASTER STATE Aug 23 06:13:28 fw-phibee-lyon-srv2 Keepalived_vrrp: VRRP_Instance(VI_2) Received higher prio advert Aug 23 06:13:28 fw-phibee-lyon-srv2 Keepalived_vrrp: VRRP_Instance(VI_2) Entering BACKUP STATE Aug 23 06:13:28 fw-phibee-lyon-srv2 Keepalived_vrrp: VRRP_Group(VG1) Syncing instances to BACKUP state Aug 23 06:13:28 fw-phibee-lyon-srv2 Keepalived_vrrp: VRRP_Instance(VI_1) Entering BACKUP STATE Aug 23 06:13:28 fw-phibee-lyon-srv2 Keepalived_vrrp: VRRP_Instance(VI_3) Entering BACKUP STATE Aug 23 06:13:28 fw-phibee-lyon-srv2 Keepalived_vrrp: VRRP_Instance(VI_4) Entering BACKUP STATE Aug 23 06:13:29 fw-phibee-lyon-srv2 Keepalived_vrrp: VRRP_Instance(VI_4) Transition to MASTER STATE Aug 23 06:13:29 fw-phibee-lyon-srv2 Keepalived_vrrp: VRRP_Group(VG1) Syncing instances to MASTER state Aug 23 06:13:29 fw-phibee-lyon-srv2 Keepalived_vrrp: VRRP_Instance(VI_1) Transition to MASTER STATE Aug 23 06:13:29 fw-phibee-lyon-srv2 Keepalived_vrrp: VRRP_Instance(VI_2) Transition to MASTER STATE Aug 23 06:13:29 fw-phibee-lyon-srv2 Keepalived_vrrp: VRRP_Instance(VI_3) Transition to MASTER STATE Aug 23 06:13:29 fw-phibee-lyon-srv2 Keepalived_vrrp: VRRP_Instance(VI_1) Received higher prio advert Aug 23 06:13:29 fw-phibee-lyon-srv2 Keepalived_vrrp: VRRP_Instance(VI_1) Entering BACKUP STATE Aug 23 06:13:29 fw-phibee-lyon-srv2 Keepalived_vrrp: VRRP_Group(VG1) Syncing instances to BACKUP state Aug 23 06:13:29 fw-phibee-lyon-srv2 Keepalived_vrrp: VRRP_Instance(VI_2) Entering BACKUP STATE Aug 23 06:13:29 fw-phibee-lyon-srv2 Keepalived_vrrp: VRRP_Instance(VI_3) Entering BACKUP STATE Aug 23 06:13:29 fw-phibee-lyon-srv2 Keepalived_vrrp: VRRP_Instance(VI_4) Entering BACKUP STATE Aug 23 06:13:30 fw-phibee-lyon-srv2 Keepalived_vrrp: VRRP_Instance(VI_4) Transition to MASTER STATE Aug 23 06:13:30 fw-phibee-lyon-srv2 Keepalived_vrrp: VRRP_Group(VG1) Syncing instances to MASTER state Aug 23 06:13:30 fw-phibee-lyon-srv2 Keepalived_vrrp: VRRP_Instance(VI_1) Transition to MASTER STATE Aug 23 06:13:30 fw-phibee-lyon-srv2 Keepalived_vrrp: VRRP_Instance(VI_2) Transition to MASTER STATE Aug 23 06:13:30 fw-phibee-lyon-srv2 Keepalived_vrrp: VRRP_Instance(VI_3) Transition to MASTER STATE Aug 23 06:13:30 fw-phibee-lyon-srv2 Keepalived_vrrp: VRRP_Instance(VI_1) Received higher prio advert Aug 23 06:13:30 fw-phibee-lyon-srv2 Keepalived_vrrp: VRRP_Instance(VI_1) Entering BACKUP STATE Aug 23 06:13:30 fw-phibee-lyon-srv2 Keepalived_vrrp: VRRP_Group(VG1) Syncing instances to BACKUP state Aug 23 06:13:30 fw-phibee-lyon-srv2 Keepalived_vrrp: VRRP_Instance(VI_2) Entering BACKUP STATE Aug 23 06:13:30 fw-phibee-lyon-srv2 Keepalived_vrrp: VRRP_Instance(VI_3) Entering BACKUP STATE Aug 23 06:13:30 fw-phibee-lyon-srv2 Keepalived_vrrp: VRRP_Instance(VI_4) Entering BACKUP STATE


Config:
   Keepalived 1.1.12 on Base Mandriva 2006
   4 Ethernet Card
   2 firewall
   4 Virtual IP

Very thanks for your help !


<Prev in Thread] Current Thread [Next in Thread>