On Fri, 13 Mar 2015, Hans van Kranenburg wrote: > On 03/13/2015 10:53 AM, Alexander Wirt wrote: > >I am pretty sure I tested it somehow, however I don't use ipvsadm in daemon > >mode as I think it is pretty useless without a manager. > > I use keepalived to set the rules and do health checking, but don't use > keepalived for managing the state sync processes. > > When using keepalived for this, it will start and stop those on a reload, > restart, failover etc, which means that part of the state sync info just > gets lost. If I want to reconfigure my backup lvs director, shut down > keepalived there, reconfigure it etc etc, the receiving sync thread is > turned off, and I cannot properly fail over to it in order to work on the > other end. > > By enabling the sync state processes in "both" mode, using the ipvsadm init > script, results in a situation where the sending and receiving of > information just always happens. Also, active/active is probably possible > (don't use it now), where part of my IP addresses are on one director and > part are on another. > > >Also your facts are > >wrong, it is possible to get critical fixes into jessie. I will give it a > >try. > > That would be awesome, thanks. Would you mind to test the attached patch?
Thanks Alex
diff -ruN /tmp/ipvsadm-1.26/debian/ipvsadm.init ipvsadm-1.26/debian/ipvsadm.init --- /tmp/ipvsadm-1.26/debian/ipvsadm.init 2014-02-11 08:27:01.000000000 +0100 +++ ipvsadm-1.26/debian/ipvsadm.init 2015-03-13 13:06:27.641483006 +0100 @@ -29,16 +29,16 @@ case $DAEMON in master|backup) log_daemon_msg "Starting IPVS Connection Synchronization Daemon" "$DAEMON" - $IPVSADM --syncid $SYNCID --start-daemon $DAEMON --mcast-interface \ + $IPVSADM --start-daemon $DAEMON --mcast-interface \ $IFACE --syncid $SYNCID || log_end_msg 1 log_end_msg 0 ;; both) log_daemon_msg "Starting IPVS Connection Synchronization Daemon" "master" - $IPVSADM --syncid $SYNCID --start-daemon master --mcast-interface \ - $IFACE --syncid $SYNCID || FAILURE=1 + $IPVSADM --start-daemon master --mcast-interface \ + $IFACE --syncid $SYNCID || FAILURE=1 log_progress_msg "backup" - $IPVSADM --syncid $SYNCID --start-daemon backup --mcast-interface \ + $IPVSADM --start-daemon backup --mcast-interface \ $IFACE --syncid $SYNCID || FAILURE=1 if [ "$FAILURE" -eq 1 ] then