> Following the 'wipe' idea I found what the problem is. Using ipvs I
> had my addresses use normal netmask (/27 in this case). Apparently
> keepalived removed the whole range defined by that netmask. So if you
> have 192.168.0.2/27 in keepalived.conf and you manually add
> 192.168.0.3/27 too then .3 will be removed too. Adding VIPs with /32
> solves this problem.
>
> Is this behavior made on purpose?
>
> Regards
> Bgs
>
>
> Bgs wrote:
>> I do want keepalived to remove the VIPs when I shut it down.
>> ("do-release-ipvs"). My problem is that keepalived removed other IPs too
>> that it's not supposed to handle...
>>
>> Or does 'release vips' mean wipe all addresses from interface?
>>
>> Graeme Fowler wrote:
>>> On Fri, 2008-03-21 at 12:24 +0100, Bgs wrote:
>>>> Any ideas? Bug or config error?
>>> I hate to have to say this, but: man keepalived
>>>
>>> You need either or both of:
>>>
>>> --dont-release-vrrp, -V
>>> leave (don’t remove) VRRP VIPs & VROUTEs on daemon stop.
>>> --dont-release-ipvs, -I
>>> Dont remove IPVS topology on daemon stop.
>>>
>>> Graeme
This my config:
...
vrrp_instance VI_WWW {
state MASTER
interface vlan102
track_interface {
vlan35
}
lvs_sync_daemon_inteface vlan34
mcast_src_ip 192.168.34.3
garp_master_delay 3
virtual_router_id 51
priority 150
# advert_int 1
# authentication {
# auth_type PASS
# auth_pass example
# }
virtual_ipaddress {
172.16.11.4/24 <---- VIP
}
debug 0
# smtp_alert
}
...
This is my output:
lbcnode1:/etc/keepalived # ip a l dev vlan102
5: vlan102: <BROADCAST,MULTICAST,MASTER,UP> mtu 1500 qdisc noqueue
link/ether 00:14:c2:3b:c3:f3 brd ff:ff:ff:ff:ff:ff
inet 172.16.11.6/24 brd 172.16.11.255 scope global vlan102
inet 172.16.11.4/24 scope global secondary vlan102
inet6 fe80::214:c2ff:fe3b:c3f3/64 scope link
valid_lft forever preferred_lft forever
lbcnode1:/etc/keepalived # /etc/init.d/keepalived stop
Shutting down Keepalived daemon done
lbcnode1:/etc/keepalived # ip a l dev vlan102
5: vlan102: <BROADCAST,MULTICAST,MASTER,UP> mtu 1500 qdisc noqueue
link/ether 00:14:c2:3b:c3:f3 brd ff:ff:ff:ff:ff:ff
inet 172.16.11.6/24 brd 172.16.11.255 scope global vlan102
inet6 fe80::214:c2ff:fe3b:c3f3/64 scope link
valid_lft forever preferred_lft forever
Where do you see problem?
Alex
-----------
Работа для JAVA – программистов, сделайте карьеру с нами!
Ирландский проект, новые возможности, технология успеха.
Резюме присылайте на hr@xxxxxxx
_______________________________________________
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
|