From owner-freebsd-current@FreeBSD.ORG Thu Jul 16 10:30:08 2009 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A0C0F1065670 for ; Thu, 16 Jul 2009 10:30:08 +0000 (UTC) (envelope-from ianf@clue.co.za) Received: from inbound01.jnb1.gp-online.net (inbound01.jnb1.gp-online.net [41.161.16.135]) by mx1.freebsd.org (Postfix) with ESMTP id C645F8FC14 for ; Thu, 16 Jul 2009 10:30:07 +0000 (UTC) (envelope-from ianf@clue.co.za) Received: from [41.145.103.163] (helo=clue.co.za) by inbound01.jnb1.gp-online.net with esmtpsa (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.63) (envelope-from ) id 1MRNtE-0007qT-BX; Thu, 16 Jul 2009 12:08:36 +0200 Received: from localhost ([127.0.0.1] helo=clue.co.za) by clue.co.za with esmtp (Exim 4.69 (FreeBSD)) (envelope-from ) id 1MRNt8-0004so-2J; Thu, 16 Jul 2009 12:08:30 +0200 To: d@delphij.net From: Ian FREISLICH In-Reply-To: <4A5EF889.6040604@delphij.net> References: <4A5EF889.6040604@delphij.net> X-Attribution: BOFH Date: Thu, 16 Jul 2009 12:08:30 +0200 Message-Id: Cc: FreeBSD Current Subject: Re: CARP broken on -CURRENT? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 16 Jul 2009 10:30:08 -0000 Xin LI wrote: > It looks like that the following setup won't work properly: > > Box 1: > em0 = carp0/carp1 > em1 = carp2/carp3 > Where: > carp0 vhid 10 advbase 1 advskew 0, configured with 5 IPs with same > netmask with em0's address; > carp1 vhid 20 advbase 20 advskew 20, configured with 4 IPs with same > netmask with em0's address different from carp0; > > carp2 vhid 30 advbase 1 advskew 0, conigured with 1 IP with same > netmask of em1's address; > carp3 vhid 40 advbase 20 advskew 20, configured with 1 IP with same > netmask of em1's address, different from carp2; > > Box2: all same, execept carp 0 and carp 2 have advbase 20+advskew 20; > carp 1 and carp3 have advbase 1 + advskew 0. > > Problem: after a short while both box1 and box2 thinks they are "MASTER" > on all carp interfaces. > > Both boxes worked just fine with 7.2 kernel. > > Anybody have the same/similar problem? Preliminary tcpdump indicates > that the server does send/receive correct CARP multicasts. I'm not experiencing this problem. I have 2 servers: FreeBSD 8.0-CURRENT #14: Wed May 20 14:54:00 SAST 2009 FreeBSD 8.0-BETA1 #9: Tue Jul 14 09:32:43 SAST 2009 Each with 18 carp interfaces. I however don't set advbase. Here's a sample from my rc.conf: Host1: ifconfig_vlan27="vlandev lagg0 vlan 27" ifconfig_vlan27_alias0="x.x.x.34/28" ifconfig_carp27="vhid 20 advskew 100 pass e0ed5b9b7d48dbe3fc97c7a42f07ed73" ifconfig_carp27_alias0="x.x.x.33/28" Host2: ifconfig_vlan27="vlandev lagg0 vlan 27" ifconfig_vlan27_alias0="x.x.x.35/28" ifconfig_carp27="vhid 20 advskew 250 pass e0ed5b9b7d48dbe3fc97c7a42f07ed73" ifconfig_carp27_alias0="x.x.x.33/28" I have noticed that if there are multiple IP addresses on the carp interface and these are configured in a different order on each host, the you can expect messages like the following: Jun 9 23:56:29 firewall2 kernel: carp15: incorrect hash Jun 9 23:56:30 firewall2 kernel: carp15: incorrect hash Jun 9 23:56:31 firewall2 kernel: carp15: incorrect hash Jun 9 23:56:32 firewall2 kernel: carp15: incorrect hash And both hosts will claim MASTER status. Ian -- Ian Freislich