From owner-freebsd-net@FreeBSD.ORG Tue Apr 1 08:34:29 2014 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id E298975F for ; Tue, 1 Apr 2014 08:34:28 +0000 (UTC) Received: from mail-lb0-f181.google.com (mail-lb0-f181.google.com [209.85.217.181]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 63E66135 for ; Tue, 1 Apr 2014 08:34:27 +0000 (UTC) Received: by mail-lb0-f181.google.com with SMTP id c11so6576839lbj.26 for ; Tue, 01 Apr 2014 01:34:20 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:content-type:mime-version:subject:from :in-reply-to:date:cc:content-transfer-encoding:message-id:references :to; bh=qYu7Oq82inL31sS9BMW8NxgIidseezZkCY6/4GaiD0E=; b=lNBhJZcagsZ01feSR9XmwXTCIURYA19x1s1BTKCsyqbk7m33/yLo1xLl2Y+nAYkGwJ rOXh6O6VkuOlQMqMQaWGntPa+tH3oR4RkAKsL66LMhfYhfLzJJXAVa7pmZHX6QSOYnF0 V61eibHjsee4NNrenFK3HWcACHW8TE0/jREdh8bBterWrl9Jn1bvDO1n71Ijx5vDfa6I qsFdZ7TzJGzC6iUdotnOSa0xR2yS2a7mxw2Kl/0BheZeBxh+798LOl26q3xmWTQfHMr6 XLhFA4ePfwBnclHYIOTVvjcJSVBxklhcdxYQnnp295YJr1pEKgxg1dOh+R7re6RrTUVE G7KQ== X-Gm-Message-State: ALoCoQkLmtxJwAYkJQM1uYHJzVSf50f8HVEGkvLxfWUe/fXyWEqXTHsKoq+di1sRn6TrUL7Jz8AK X-Received: by 10.152.2.99 with SMTP id 3mr29912lat.51.1396341259923; Tue, 01 Apr 2014 01:34:19 -0700 (PDT) Received: from grey.office.se.prisjakt.nu ([212.16.170.194]) by mx.google.com with ESMTPSA id x4sm11658111lbn.2.2014.04.01.01.34.19 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 01 Apr 2014 01:34:19 -0700 (PDT) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 7.2 \(1874\)) Subject: Re: FreeBSD 10-STABLE and CARP states From: mxb In-Reply-To: <4A818132-757F-4BAD-8137-CDB1F6F0681C@alumni.chalmers.se> Date: Tue, 1 Apr 2014 10:34:21 +0200 Content-Transfer-Encoding: quoted-printable Message-Id: References: <4A818132-757F-4BAD-8137-CDB1F6F0681C@alumni.chalmers.se> To: freebsd-net@freebsd.org X-Mailer: Apple Mail (2.1874) X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.17 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, 01 Apr 2014 08:34:29 -0000 PING On 31 mar 2014, at 22:21, mxb wrote: >=20 > Manually setting net.inet.carp.demotion brought BOTH VHIDs in desired = state. > pfsync bulk update seems to not put everything back as it should. >=20 > lagg0: flags=3D8943 = metric 0 mtu 9000 > = options=3D8407bb > ether 00:25:90:e3:71:f2 > inet 172.16.0.234 netmask 0xfffff800 broadcast 172.16.7.255 > inet6 fe80::225:90ff:fee3:71f2%lagg0 prefixlen 64 scopeid 0x5 > inet 172.16.0.231 netmask 0xfffff800 broadcast 172.16.7.255 vhid = 201 > inet 172.16.0.233 netmask 0xfffff800 broadcast 172.16.7.255 vhid = 202 > nd6 options=3D29 > media: Ethernet autoselect > status: active > carp: MASTER vhid 201 advbase 1 advskew 1 > carp: BACKUP vhid 202 advbase 5 advskew 100 > laggproto lacp lagghash l2,l3,l4 > laggport: ix1 flags=3D1c > laggport: ix0 flags=3D1c >=20 >=20 > On 31 mar 2014, at 20:42, mxb wrote: >=20 >>=20 >> Hi list, >>=20 >> hopefully this is the right place to have my question regarding CARP = on 10-STABLE. >>=20 >> I have two nodes with following setup(node1): >>=20 >> lagg0: flags=3D8943 = metric 0 mtu 9000 >> = options=3D8407bb >> ether 00:25:90:e3:71:f2 >> inet 172.16.0.234 netmask 0xfffff800 broadcast 172.16.7.255 >> inet6 fe80::225:90ff:fee3:71f2%lagg0 prefixlen 64 scopeid 0x5 >> inet 172.16.0.231 netmask 0xfffff800 broadcast 172.16.7.255 vhid = 201 >> inet 172.16.0.233 netmask 0xfffff800 broadcast 172.16.7.255 vhid = 202 >> nd6 options=3D29 >> media: Ethernet autoselect >> status: active >> carp: BACKUP vhid 201 advbase 1 advskew 1 >> carp: BACKUP vhid 202 advbase 5 advskew 100 >> laggproto lacp lagghash l2,l3,l4 >> laggport: ix1 flags=3D1c >> laggport: ix0 flags=3D1c >>=20 >> net.inet.carp.preempt=3D1 on both nodes. as well as PSYNC as this: >>=20 >> pfsync0: flags=3D41 metric 0 mtu 1500 >> pfsync: syncdev: vlan22 syncpeer: 10.22.22.2 maxupd: 128 defer: = off >>=20 >> The problem is (if it is not clear from the ifconfig-output for the = lagg0) the state of VHID 201. >> Node2 with advskew of 100 is currently MASTER, but it SHOULD NOT as = of setup. >>=20 >> Am I hitting a bug or doing something wrong? >>=20 >> I also have noted that after the pfsync bulk update the demotion = counter never setts to 0, but stays on 480, >> thus preventing node1 become a MASTER 201(?). Or is this a normal = behavior? >>=20 >> Regards, >> mxb >>=20 >>=20 >=20