From owner-freebsd-questions@FreeBSD.ORG Wed May 13 01:19:44 2015 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id B3F6C6C8 for ; Wed, 13 May 2015 01:19:44 +0000 (UTC) Received: from mail-lb0-x22b.google.com (mail-lb0-x22b.google.com [IPv6:2a00:1450:4010:c04::22b]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 2481211BB for ; Wed, 13 May 2015 01:19:44 +0000 (UTC) Received: by lbbzk7 with SMTP id zk7so18669130lbb.0 for ; Tue, 12 May 2015 18:19:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=woZ5/bVee1hLjAdAtrskC3JMnh7Oi529c1F0j4gJ9C4=; b=Meklt0vV909kTb2ZEOYTiiw7hZ7rwbGnx+QfIpFOGal8+ugNwYDztVsm0ypinapoYG O76aRewhfXWEXBGk0wLeo5PGQwkUfzgF8zPfAjsGokOXntvoDgLnoXfX16tcyWZ6pKMC ER9Qw5cNTkvmlizeRMXzSu4XJBUw6y9+GrIWXfhvIKTJSAcKJlxayIlBls3kfUTIxWam 6N1B6qML0j4GCKr92vHQT3giORzpVxCMdk5Gp9z4/pT6wDrA7pVRkhhPdgJoOAYDmFwZ +OfWLstcjQ2L1uwqYMP8Ffnn2cqUD5VtPvP6CeVrCaM5n2jcrK/cqT/23neXvAps9wv8 uh8Q== MIME-Version: 1.0 X-Received: by 10.152.87.13 with SMTP id t13mr1146919laz.66.1431479981881; Tue, 12 May 2015 18:19:41 -0700 (PDT) Received: by 10.112.60.65 with HTTP; Tue, 12 May 2015 18:19:41 -0700 (PDT) In-Reply-To: References: <55511AF3.3030408@gmail.com> Date: Tue, 12 May 2015 18:19:41 -0700 Message-ID: Subject: Re: Help! carp slave take over as master at boot! From: motty cruz To: =?UTF-8?Q?Trond_Endrest=C3=B8l?= Cc: freebsd-questions@freebsd.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.20 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 13 May 2015 01:19:44 -0000 Hi thanks for your reply; Machine A (master) ifconfig_igb0_alias0=3D"inet vhid 31 advbase 12 advskew 40 pass password2 19.16.31.80/24" Machine B (slave) ifconfig_igb0_alias0=3D"inet vhid 31 advbase 12 advskew 80 pass password2 19.16.31.80/24" if I reboot slave, on boot it takes over as Master, any idea why? both machines: /etc/sysctl.conf # net.inet.carp.preempt=3D1 On Mon, May 11, 2015 at 10:45 PM, Trond Endrest=C3=B8l < Trond.Endrestol@fagskolen.gjovik.no> wrote: > On Mon, 11 May 2015 14:11-0700, Motty Cruz wrote: > > > Hello, I have two machines running FreeBSD 10.1 Release. Machine A is t= he > > master in Carp with advskew 20 and Machine B slave with advskew 200 bot= h > are > > set to advbase 10. however, slave machine becomes Master on boot; > > > > my questions is, how do I configure both machines so if reboot any of t= he > > machines whatever machine is Master stays master if secondary machine > reboot. > > You should augment your posting with facts. You may withhold any > sensitive information such as IP addresses, but a copy of the relevant > lines from /etc/rc.conf and /etc/sysctl.conf would be helpful. > > Have you tried setting: > > net.inet.carp.preempt=3D1 > > in /etc/sysctl.conf? > > Try the command: > > sysctl net.inet.carp.preempt=3D1 > > to see any immediate effect. > > -- > +-------------------------------+------------------------------------+ > | Vennlig hilsen, | Best regards, | > | Trond Endrest=C3=B8l, | Trond Endrest=C3=B8l, = | > | IT-ansvarlig, | System administrator, | > | Fagskolen Innlandet, | Gj=C3=B8vik Technical College, Norway, = | > | tlf. mob. 952 62 567, | Cellular...: +47 952 62 567, | > | sentralbord 61 14 54 00. | Switchboard: +47 61 14 54 00. | > +-------------------------------+------------------------------------+ --=20 Thanks for your support, Motty