From owner-freebsd-net@FreeBSD.ORG Tue Dec 5 10:31:00 2006 Return-Path: X-Original-To: net@FreeBSD.org Delivered-To: freebsd-net@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 2AE2B16A494; Tue, 5 Dec 2006 10:31:00 +0000 (UTC) (envelope-from ari.suutari@syncrontech.com) Received: from espresso2.syncrontech.com (sync-old.syncrontech.com [213.28.98.35]) by mx1.FreeBSD.org (Postfix) with ESMTP id CF12843CA3; Tue, 5 Dec 2006 10:29:57 +0000 (GMT) (envelope-from ari.suutari@syncrontech.com) Received: from guinness.syncrontech.com (guinness.syncrontech.com [62.71.8.57]) by espresso2.syncrontech.com (8.13.1/8.13.1) with ESMTP id kB5AUYwl084391; Tue, 5 Dec 2006 12:30:34 +0200 (EET) (envelope-from ari.suutari@syncrontech.com) Received: from coffee (asatest1.syncrontech.com [62.71.8.41]) by guinness.syncrontech.com (8.13.4/8.13.4) with SMTP id kB5AUXvC010745; Tue, 5 Dec 2006 12:30:33 +0200 (EET) (envelope-from ari.suutari@syncrontech.com) Message-ID: <100a01c71858$64b1efc0$6602a8c0@sad.syncrontech.com> From: "Ari Suutari" To: "Gleb Smirnoff" References: <200612041538.kB4FcQjk073583@freefall.freebsd.org> <0eaa01c71835$f12055f0$6602a8c0@sad.syncrontech.com> <20061205100407.GB32700@cell.sick.ru> Date: Tue, 5 Dec 2006 12:30:27 +0200 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="KOI8-R"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.2869 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2962 Cc: net@FreeBSD.org Subject: Re: kern/104377: [carp] [patch] CARP interface doesn't go up on VmWare X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 Dec 2006 10:31:00 -0000 Hi, > On Tue, Dec 05, 2006 at 08:23:50AM +0200, Ari Suutari wrote: > A> Hi, > A> > A> OK, what would then be the right fix to get things working > A> under vmware ? I run a bunch of servers here and some of > A> them are redundant pairs. We have some pressure to virtualize > A> those servers, but we cannot do it as the carp does not work. > A> > A> I don't really get it why the link state is so important here, as > A> to my understanding carp works in similar as vrrp, using > A> heartbeats ? Also, the current state of matters is more confusing, > A> since you can get the carp interface up by issuing another > A> "ifconfig up" (people suggested this to me, but I cannot accept > A> that a system providing redundancy requires this kind of kludgery) > A> > A> I can accept that my solution is not the correct one, but > A> it is a little hard to accept turning it down without > A> giving any suggestion how to really fix things. > > When one created a redundant routers, he enables CARP an all > interfaces of the router. Imagine, that one interface goes down, > but CARP doesn't notice that and keeps claiming to be the master > on the other interfaces. Traffic comes to it, and it sends it to > downed interface. Doesn't the other machine notice this from the absense of hearbeat on that interface ? I thought that this could combined with net.inet.carp.preempt sysctl to force carp to fail over the other interfaces in this case also. If this doesn't work then you are right; I really didn't test this under vmware (I should have tested it, of course). > > If interface, that went down, had reported its state then CARP > would had noticed that and would had lowered its priority, > gave up mastering, and became backup. This will be redundant. Is it impossible to add link state reporting to lnc driver ? I think this would be the perfect fix and acceptable by everyone. Ari S. > > A> ----- Original Message ----- > A> From: "Gleb Smirnoff" > A> To: ; ; > A> > A> Sent: Monday, December 04, 2006 5:38 PM > A> Subject: Re: kern/104377: [carp] [patch] CARP interface doesn't go up on > A> VmWare > A> > A> > A> >Synopsis: [carp] [patch] CARP interface doesn't go up on VmWare > A> > > A> >State-Changed-From-To: open->closed > A> >State-Changed-By: glebius > A> >State-Changed-When: Mon Dec 4 15:34:00 UTC 2006 > A> >State-Changed-Why: > A> >I am sorry, but I am not going to commit this patch. Let me explain. > A> >CARP is not going to work properly on interfaces that do not report > A> >its state being changed. The proposed patch will change CARP behavior > A> >to be pretending to work when interface doesn't support reporting > A> >its link state. I think it is better to refuse to work earlier, then > A> >pretend to be working but don't provide any redundancy. The proposed > A> >patch is going to confuse people. > A> > > A> >http://www.freebsd.org/cgi/query-pr.cgi?pr=104377 > > -- > Totus tuus, Glebius. > GLEBIUS-RIPN GLEB-RIPE > >