From owner-freebsd-questions@FreeBSD.ORG  Fri Aug 26 15:26:25 2011
Return-Path: <owner-freebsd-questions@FreeBSD.ORG>
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 CBDB61065674
	for <freebsd-questions@freebsd.org>;
	Fri, 26 Aug 2011 15:26:25 +0000 (UTC)
	(envelope-from Johan@double-l.nl)
Received: from smtp-vbr9.xs4all.nl (smtp-vbr9.xs4all.nl [194.109.24.29])
	by mx1.freebsd.org (Postfix) with ESMTP id 23DFE8FC1D
	for <freebsd-questions@freebsd.org>;
	Fri, 26 Aug 2011 15:26:24 +0000 (UTC)
Received: from remote.double-l.nl (double-l.xs4all.nl [80.126.205.144])
	by smtp-vbr9.xs4all.nl (8.13.8/8.13.8) with ESMTP id p7QFPqC7088077
	(version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=FAIL)
	for <freebsd-questions@freebsd.org>;
	Fri, 26 Aug 2011 17:25:52 +0200 (CEST)
	(envelope-from Johan@double-l.nl)
Received: from SRV01.double-l.local ([fe80::1128:e7bc:ba4a:a89a]) by
	SRV01.double-l.local ([fe80::1128:e7bc:ba4a:a89a%13]) with mapi id
	14.01.0218.012; Fri, 26 Aug 2011 17:26:30 +0200
From: Johan Hendriks <Johan@double-l.nl>
To: "freebsd-questions@freebsd.org" <freebsd-questions@freebsd.org>
Thread-Topic: CARP on 9.0 (was no subject)
Thread-Index: AcxkBIZfpJv14nlbShODG/2S+Y/3sQ==
Date: Fri, 26 Aug 2011 15:26:28 +0000
Message-ID: <6C3F8332272B7D4DA26909F15F1C90E1E5AC4C@SRV01.double-l.local>
Accept-Language: nl-NL, en-US
Content-Language: nl-NL
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
x-originating-ip: [192.168.50.106]
MIME-Version: 1.0
X-Virus-Scanned: by XS4ALL Virus Scanner
Content-Type: text/plain; charset="Windows-1252"
Content-Transfer-Encoding: quoted-printable
X-Content-Filtered-By: Mailman/MimeDel 2.1.5
Subject: CARP on 9.0 (was no subject)
X-BeenThere: freebsd-questions@freebsd.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: User questions <freebsd-questions.freebsd.org>
List-Unsubscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-questions>, 
	<mailto:freebsd-questions-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/freebsd-questions>
List-Post: <mailto:freebsd-questions@freebsd.org>
List-Help: <mailto:freebsd-questions-request@freebsd.org?subject=help>
List-Subscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-questions>, 
	<mailto:freebsd-questions-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Fri, 26 Aug 2011 15:26:25 -0000

I am trying to set up CARP under 9.0



I want to know if my assumptions are right.



The master is the server with the lowest advskew, and has the state MASTER,=
 as where the slave will be in state BACKUP.

If the master fails, the slave will be promoted to MASTER.

If the master comes backup, the Master wil be Master again, and the slave f=
alls back to BACKUP.



At least this is what i think should be the case.



I now set up 2 FreeBSD 9.0 Beta1 machines.

One master, and one slave.



/etc/rc.conf on the master



ifconfig_bge0=3D"inet 192.168.50.40 netmask 255.255.255.0"

defaultrouter=3D"192.168.50.150"

# CARP

cloned_interfaces=3D"carp0"

ifconfig_carp0=3D"vhid 1 advskew 10 pass letmepass 192.168.50.45 netmask 25=
5.255.255.0"



On the slave i have the following in /etc/rc.conf



ifconfig_bge0=3D"inet 192.168.50.41 netmask 255.255.255.0"

defaultrouter=3D"192.168.50.150"

# CARP

cloned_interfaces=3D"carp0"

ifconfig_carp0=3D"vhid 1 advskew 20 pass letmepass 192.168.50.45 netmask 25=
5.255.255.0"



And on bothe machines i set

net.inet.carp.preempt=3D1



In my assumption, if i raise the advskew value on the master, i could let t=
hem flip role=92s So doing ifconfig carp0 advskew 30 on the master should c=
hange roles.



However it does not happen



Ifconfig on the master

carp0: flags=3D49<UP,LOOPBACK,RUNNING> metric 0 mtu 1500

        inet 192.168.50.45 netmask 0xffffff00

        nd6 options=3D29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>

        carp: MASTER vhid 1 advbase 1 advskew 30



Ifconfig on the slave

carp0: flags=3D49<UP,LOOPBACK,RUNNING> metric 0 mtu 1500

        inet 192.168.50.45 netmask 0xffffff00

        nd6 options=3D29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>

        carp: BACKUP vhid 1 advbase 1 advskew 20



So even with the higher advskew value the master stays master.



Am i doing something wrong.


Also with a higer value like advskew 200 or 254 the role of the servers sta=
ys the same.




Regards,

Johan Hendriks