From owner-freebsd-questions@FreeBSD.ORG Thu Jan 24 17:52:16 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 441D016A419 for ; Thu, 24 Jan 2008 17:52:16 +0000 (UTC) (envelope-from rakhesh@rakhesh.com) Received: from wx-out-0506.google.com (wx-out-0506.google.com [66.249.82.230]) by mx1.freebsd.org (Postfix) with ESMTP id 01D8113C46A for ; Thu, 24 Jan 2008 17:52:15 +0000 (UTC) (envelope-from rakhesh@rakhesh.com) Received: by wx-out-0506.google.com with SMTP id i29so220976wxd.7 for ; Thu, 24 Jan 2008 09:52:15 -0800 (PST) Received: by 10.70.23.2 with SMTP id 2mr617599wxw.11.1201197134915; Thu, 24 Jan 2008 09:52:14 -0800 (PST) Received: from smtp.home.rakhesh.com ( [82.178.100.29]) by mx.google.com with ESMTPS id h36sm504539wxd.29.2008.01.24.09.52.06 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 24 Jan 2008 09:52:12 -0800 (PST) Received: from dogmatix (dogmatix [192.168.17.31]) by smtp.home.rakhesh.com (Postfix) with ESMTP id 1C6AE1140C for ; Thu, 24 Jan 2008 21:45:57 +0400 (GST) Date: Thu, 24 Jan 2008 21:46:12 +0400 (GST) X-X-Sender: rakhesh@dogmatix.home.rakhesh.com To: freebsd-questions@freebsd.org In-Reply-To: <20080124133117.N16149@obelix.home.rakhesh.com> Message-ID: <20080124213630.Y3365@dogmatix.home.rakhesh.com> References: <20080124133117.N16149@obelix.home.rakhesh.com> X-Blog: http://rakhesh.com/ X-Notes: http://rakhesh.net/ MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed From: Rakhesh Sasidharan Subject: Re: CARP and FreeBSD 6.3 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 Jan 2008 17:52:16 -0000 > Hi, > > I have two machines. Each have two interfaces, xl0 and fxp0. And each have > two carp interfaces -- carp1 (xl0 of both) and carp2 (fxp0 of both). One of > the machines is master, the other is backup. > > I also have the following sysctl set: net.inet.carp.preempt -> 1 > > My understanding is that if I down one of the interfaces on the master > machine (say ''ifconfig xl0 down''), then both carp interfaces on the master > will be marked as down. And the backup will become the new master. Later, > when the interface is marked up (''ifconfig xl0 up''), the old master will > resume control. This is my understanding and that's how things were till > yesterday (when I was on FreeBSD 6.2/i386 with both machines). > > Today morning I upgraded both machines to FreeBSD 6.3 and that does not seem > to be the case any more. > > Now, on the master machine when I down the xl0 interface, only carp1 (the > group containing xl0) goes into init state (and the other machine's carp1 > interface becomes the new master). Ditto for fxp0 and carp2. So in essence, > the net.inet.carp.preempt=1 sysctl does not seem to be working as expected > which is unlike how things were in FreeBSD 6.2. > > Has something changed with regards to carp between FreeBSD 6.2 and 6.3? Any > one else encountering a similar problem? I happened to reboot the machines now while sitting at the console. And I noticed that the master machine emits an error like ''carp2: incorrect hash'' while booting up. Checking the console logs showed me that the errors have been appearing ever since I upgraded the machine. Most of the times it was to do with carp2, once it was to do with carp1. Here's the relevant bits of my rc.conf file from the master machine. ---8<-- ifconfig_fxp0="inet 192.168.10.10 netmask 255.255.255.0 polling" ifconfig_fxp0_alias0="inet 192.168.10.11 netmask 255.255.255.255" ifconfig_xl0="inet 192.168.20.20 netmask 255.255.255.0 polling" cloned_interfaces="carp1 carp2" ifconfig_carp1="vhid 1 pass password advskew 0 192.168.10.2 netmask 255.255.255.0" ifconfig_carp2_alias0="vhid 2 pass password advskew 0 192.168.20.1 netmask 255.255.255.0" ifconfig_carp2_alias1="vhid 2 pass password advskew 0 192.168.20.2 netmask 255.255.255.0" ---8<-- Its the same on the backup machine, except for the different IPs for fxp0 and xl0. Thanks, Rakhesh --- http://rakhesh.net/