From owner-freebsd-current@FreeBSD.ORG Thu Feb 2 00:26:55 2012 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 89692106564A for ; Thu, 2 Feb 2012 00:26:55 +0000 (UTC) (envelope-from andrew.hobbs@ai.net) Received: from ginga.ai.net (ginga.ai.net [205.134.166.19]) by mx1.freebsd.org (Postfix) with ESMTP id 4AFAB8FC13 for ; Thu, 2 Feb 2012 00:26:54 +0000 (UTC) Received: from ginga.ai.net ([205.134.166.19]) by ginga.ai.net ([205.134.166.19]) with mapi; Wed, 1 Feb 2012 19:26:54 -0500 From: Andrew Hobbs To: "freebsd-current@freebsd.org" Date: Wed, 1 Feb 2012 19:26:52 -0500 Thread-Topic: CARP on -CURRENT Thread-Index: AczWJ4XZ+IVqcot3TYiqXM1iYlzHjALGH53w Message-ID: References: In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: RE: CARP 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, 02 Feb 2012 00:26:55 -0000 I much appreciate the responses and I was able to get CARP functioning usin= g the new ifconfig syntax under -CURRENT. Having done that, CARP is now act= ing as it should, though now I have a new challenge with devd and automatic= firing of scripts during CARP failover. It appears that the documented met= hod of doing this at http://www.freebsd.org/doc/handbook/disks-hast.html no= longer works with the suggested devd.conf setup; notify 30 { match "system" "IFNET"; match "subsystem" "carp0"; match "type" "LINK_UP"; action "/usr/local/sbin/carp-hast-switch master"; }; notify 30 { match "system" "IFNET"; match "subsystem" "carp0"; match "type" "LINK_DOWN"; action "/usr/local/sbin/carp-hast-switch slave"; Is it likely that the triggers associated with CARP for devd have changed d= ue to the recent new CARP overhaul? Does anyone know what the new triggers = may be? Love, Andrew -----Original Message----- From: Sergey Kandaurov [mailto:pluknet@gmail.com]=20 Sent: Wednesday, January 18, 2012 4:24 PM To: Andrew Hobbs Cc: freebsd-current@freebsd.org Subject: Re: CARP on -CURRENT On 19 January 2012 00:54, Andrew Hobbs wrote: > Is CARP implemented on -CURRENT (FreeBSD 10)? > > I'm playing around with some test boxes in the office running=20 > -CURRENT; testbox# uname -a FreeBSD testbox.ai.net 10.0-CURRENT=20 > FreeBSD 10.0-CURRENT #0: Wed Jan 18 19:21:12 EST 2012 =A0 =A0=20 > root@testbox.ai.net:/usr/obj/usr/src/sys/CARP =A0amd64 > > I can't seem to create a carp interface despite having compiled a=20 > kernel with "device =A0 =A0 =A0carp" in it. Attempts to create a carp=20 > interface fail; # ifconfig carp create > ifconfig: SIOCIFCREATE2: Invalid argument > > >From what I've read in the handbook entry on CARP=20 > >(http://www.freebsd.org/doc/handbook/carp.html), I should be able to=20 > >either compile in the carp device, as above, or load the if_carp.ko=20 > >kern module. There doesn't appear to be a if_carp.ko module in the=20 > >-CURRENT source tree, however. Only the carp module itself; > # ls -ald /usr/src/sys/modules/*carp* > drwxr-xr-x =A02 root =A0wheel =A0512 Dec 27 15:12 /usr/src/sys/modules/ca= rp > > Am I missing something completely obvious? Was the functionality of if_ca= rp.ko rolled into another module? You should definitely read this changeset: http://svn.freebsd.org/changeset/base/228571 and the updated carp ifconfig syntax in man carp. As for if_carp.ko, it was= renamed into carp.ko as part of the CARP implementation overhaul. This only affects CURRENT. -- wbr, pluknet