From owner-freebsd-stable@FreeBSD.ORG Thu Oct 5 15:11:28 2006 Return-Path: X-Original-To: freebsd-stable@freebsd.org Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4485B16A407 for ; Thu, 5 Oct 2006 15:11:28 +0000 (UTC) (envelope-from max@love2party.net) Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.126.171]) by mx1.FreeBSD.org (Postfix) with ESMTP id 46E3443D46 for ; Thu, 5 Oct 2006 15:11:26 +0000 (GMT) (envelope-from max@love2party.net) Received: from [88.64.182.69] (helo=amd64.laiers.local) by mrelayeu.kundenserver.de (node=mrelayeu0) with ESMTP (Nemesis), id 0MKwh2-1GVUsb0Hmk-0000zt; Thu, 05 Oct 2006 17:11:21 +0200 From: Max Laier Organization: FreeBSD To: freebsd-stable@freebsd.org Date: Thu, 5 Oct 2006 17:11:12 +0200 User-Agent: KMail/1.9.4 References: <7ad7ddd90610050458v6b26aeefs3b72dfc58fa6a608@mail.gmail.com> In-Reply-To: <7ad7ddd90610050458v6b26aeefs3b72dfc58fa6a608@mail.gmail.com> X-Face: ,,8R(x[kmU]tKN@>gtH1yQE4aslGdu+2]; R]*pL,U>^H?)gW@49@wdJ`H<=?utf-8?q?=25=7D*=5FBD=0A=09U=5For=3D=5CmOZf764=26nYj=3DJYbR1PW0ud?=>|!~,,CPC.1-D$FG@0h3#'5"k{V]a~.<=?utf-8?q?mZ=7D44=23Se=7Em=0A=09Fe=7E=5C=5DX5B=5D=5Fxj?=(ykz9QKMw_l0C2AQ]}Ym8)fU MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart1594115.C61iYkKP7X"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200610051711.17754.max@love2party.net> X-Provags-ID: kundenserver.de abuse@kundenserver.de login:61c499deaeeba3ba5be80f48ecc83056 Cc: Ulrich Spoerlein Subject: Re: Start system with 'downed' carp interfaces X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 05 Oct 2006 15:11:28 -0000 --nextPart1594115.C61iYkKP7X Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Thursday 05 October 2006 13:58, Ulrich Spoerlein wrote: > Hello, > > I'm looking for a generic way to create and configure carp interfaces > upon boot (so daemons can bind against the IP address), but keep the > carp interfaces 'down'. > > This is to allow the administrator to first check every service after > the failure, and if deemed ready, put the system back into production > by simply issuing: ifconfig carp0 up Can't you just use a high value for advskew so it won't become MASTER=20 unless all other hosts are dead as well. > But there are several problems: > ifconfig_carp0=3D"foo bar" > will always "up" the interface first via /etc/rc.d/netif > ifconfig carp0 foo bar down > will ignore the 'down' and up the interface. This is especially > announing. I wish ifconfig would honour the down statement, even > though the manpage says the interface will always be brought up when > assigned its first address. > > Using a start_if.carp0 with the following contents > ifconfig carp0 vhid 1 1.2.3.4/24 > ifconfig carp0 down > > and > ifconfig_carp0=3D"down" in rc.conf will result in an 'up' interface. I > also disabled devd, as it seems to be running pccard_ether carp0 start > as a result of the interface creation. Although it is started > sometime after the interface has been created. > > How are other people handling the startup of carp interfaces? =2D-=20 /"\ Best regards, | mlaier@freebsd.org \ / Max Laier | ICQ #67774661 X http://pf4freebsd.love2party.net/ | mlaier@EFnet / \ ASCII Ribbon Campaign | Against HTML Mail and News --nextPart1594115.C61iYkKP7X Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (FreeBSD) iD8DBQBFJSCVXyyEoT62BG0RAsaPAJ4puqwRNgchN1D3ipxnRnOkHFfW0ACfafA9 83N9BHSemqi6bdHBGDOVS3o= =v/X1 -----END PGP SIGNATURE----- --nextPart1594115.C61iYkKP7X--