LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

[lvs-users] VIP adresses remaining on Keepalived backup

To: lvs-users@xxxxxxxxxxxxxxxxxxxxxx
Subject: [lvs-users] VIP adresses remaining on Keepalived backup
From: gastruc@xxxxxxxxx
Date: Thu, 4 Dec 2008 23:39:15 +0100 (CET)
Hello, i just discovered this mailing list ... and i wish i had earlier,
would have saved me a lot of trouble ;)

Anyway, i havent found a clue about the issue im detailing below and some
help would be great.

After an error in keepalived configuration on backup server, it is left
with all the VIP addresses:

1: lo: <LOOPBACK,UP,10000> mtu 16436 qdisc noqueue
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
2: eth0: <BROADCAST,MULTICAST,SLAVE,UP,10000> mtu 1500 qdisc pfifo_fast
master bond0 qlen 1000
    link/ether 00:04:23:e1:96:fa brd ff:ff:ff:ff:ff:ff
3: eth1: <BROADCAST,MULTICAST,SLAVE,UP,10000> mtu 1500 qdisc pfifo_fast
master bond0 qlen 1000
    link/ether 00:04:23:e1:96:fa brd ff:ff:ff:ff:ff:ff
4: eth2: <BROADCAST,MULTICAST,SLAVE,UP,10000> mtu 1500 qdisc pfifo_fast
master bond1 qlen 1000
    link/ether 00:30:48:8e:d9:18 brd ff:ff:ff:ff:ff:ff
5: eth3: <BROADCAST,MULTICAST,SLAVE,UP,10000> mtu 1500 qdisc pfifo_fast
master bond1 qlen 1000
    link/ether 00:30:48:8e:d9:18 brd ff:ff:ff:ff:ff:ff
6: bond0: <BROADCAST,MULTICAST,MASTER,UP,10000> mtu 1500 qdisc noqueue
    link/ether 00:04:23:e1:96:fa brd ff:ff:ff:ff:ff:ff
    inet ***.***.***.19/25 brd 78.40.122.255 scope global bond0
    inet ***.***.***.20/32 scope global bond0
    inet ***.***.***.21/32 scope global bond0
    inet ***.***.***.22/32 scope global bond0
    inet ***.***.***.31/32 scope global bond0
    inet ***.***.***.33/32 scope global bond0
    inet ***.***.***.34/32 scope global bond0
    inet ***.***.***.27/32 scope global bond0
    inet ***.***.***.28/32 scope global bond0
    inet ***.***.***.41/32 scope global bond0
    inet ***.***.***.43/32 scope global bond0
    inet ***.***.***.45/32 scope global bond0
    inet ***.***.***.47/32 scope global bond0
    inet ***.***.***.49/32 scope global bond0
    inet ***.***.***.51/32 scope global bond0
    inet ***.***.***.53/32 scope global bond0
    inet ***.***.***.42/32 scope global bond0
    inet ***.***.***.44/32 scope global bond0
    inet ***.***.***.46/32 scope global bond0
    inet ***.***.***.48/32 scope global bond0
    inet ***.***.***.50/32 scope global bond0
    inet ***.***.***.52/32 scope global bond0
    inet ***.***.***.54/32 scope global bond0
7: bond1: <BROADCAST,MULTICAST,MASTER,UP,10000> mtu 1500 qdisc noqueue
    link/ether 00:30:48:8e:d9:18 brd ff:ff:ff:ff:ff:ff
    inet 192.168.25.3/24 brd 192.168.25.255 scope global bond1
    inet 192.168.26.3/24 brd 192.168.26.255 scope global bond1:26
    inet 192.168.25.1/32 scope global bond1
    inet 192.168.26.1/32 scope global bond1

I have the same output on master server.

The VIP used from outiside are now the ones from the master except i had
one (the .20) being still in use on the backup.
After a stop/start of the backup, the .20 came back to master but i still
have the output when i display ip addr.

Do anyone has a clue on what is wrong here ?

Below the VRRP configurations of both servers:


MASTER:
vrrp_sync_group VG1 {
  group {
    VI_INTERNAL
    VI_EXTERNAL
  }
}

vrrp_instance VI_INTERNAL {
  state MASTER
  interface bond1
  virtual_router_id 10
  priority 150
  advert_int 1
  smtp_alert
  authentication {
    auth_type PASS
    auth_pass <PASS1>
  }
  virtual_ipaddress {
    192.168.25.1
    192.168.26.1
  }
  nopreempt
}

vrrp_instance VI_EXTERNAL {
  state MASTER
  interface bond0
  virtual_router_id 11
  priority 150
  advert_int 1
  smtp_alert
  authentication {
    auth_type PASS
    auth_pass <PASS2>
  }
  virtual_ipaddress {
    ***.***.***.20
    ***.***.***.21
    ***.***.***.22
    ***.***.***.31
    ***.***.***.33
    ***.***.***34
    ***.***.***.27
    ***.***.***.28
    ***.***.***.41
    ***.***.***.43
    ***.***.***.45
    ***.***.***.47
    ***.***.***.49
    ***.***.***.51
    ***.***.***.53
    ***.***.***.55
  }
  virtual_ipaddress_excluded {
    ***.***.***.42
    ***.***.***.44
    ***.***.***.46
    ***.***.***.48
    ***.***.***.50
    ***.***.***.52
    ***.***.***.54
    ***.***.***.56
  }
  nopreempt
}


BACKUP:
vrrp_sync_group VG1 {
  group {
    VI_INTERNAL
    VI_EXTERNAL
  }
}

vrrp_instance VI_INTERNAL {
  state BACKUP
  interface bond1
  virtual_router_id 10
  priority 100
  advert_int 1
  smtp_alert
  authentication {
    auth_type PASS
    auth_pass <PASS1>
  }
  virtual_ipaddress {
    192.168.25.1
    192.168.26.1
  }
  nopreempt
}

vrrp_instance VI_EXTERNAL {
  state BACKUP
  interface bond0
  virtual_router_id 11
  priority 100
  advert_int 1
  smtp_alert
  authentication {
    auth_type PASS
    auth_pass <PASS2>
  }
  virtual_ipaddress {
    ***.***.***.20
    ***.***.***.21
    ***.***.***.22
    ***.***.***.31
    ***.***.***.33
    ***.***.***.34
    ***.***.***.27
    ***.***.***.28
    ***.***.***.41
    ***.***.***.43
    ***.***.***.45
    ***.***.***.47
    ***.***.***.49
    ***.***.***.51
    ***.***.***.53
    ***.***.***.55
  }
  virtual_ipaddress_excluded {
    ***.***.***.42
    ***.***.***.44
    ***.***.***.46
    ***.***.***.48
    ***.***.***.50
    ***.***.***.52
    ***.***.***.54
    ***.***.***.56
  }
  nopreempt
}


Regards,






_______________________________________________
Please read the documentation before posting - it's available at:
http://www.linuxvirtualserver.org/

LinuxVirtualServer.org mailing list - lvs-users@xxxxxxxxxxxxxxxxxxxxxx
Send requests to lvs-users-request@xxxxxxxxxxxxxxxxxxxxxx
or go to http://lists.graemef.net/mailman/listinfo/lvs-users

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