Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 12 May 2015 07:45:40 +0200 (CEST)
From:      =?ISO-8859-1?Q?Trond_Endrest=F8l?= <Trond.Endrestol@fagskolen.gjovik.no>
To:        Motty Cruz <motty.cruz@gmail.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Help! carp slave take over as master at boot!
Message-ID:  <alpine.BSF.2.20.1505120742290.46962@mail.fig.ol.no>
In-Reply-To: <55511AF3.3030408@gmail.com>
References:  <55511AF3.3030408@gmail.com>

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help
On Mon, 11 May 2015 14:11-0700, Motty Cruz wrote:

> Hello, I have two machines running FreeBSD 10.1 Release. Machine A is the
> master in Carp with advskew 20 and Machine B slave with advskew 200 both 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 the
> 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=1

in /etc/sysctl.conf?

Try the command:

sysctl net.inet.carp.preempt=1

to see any immediate effect.

-- 
+-------------------------------+------------------------------------+
| Vennlig hilsen,               | Best regards,                      |
| Trond Endrestøl,              | Trond Endrestøl,                   |
| IT-ansvarlig,                 | System administrator,              |
| Fagskolen Innlandet,          | Gjøvik Technical College, Norway,  |
| tlf. mob.   952 62 567,       | Cellular...: +47 952 62 567,       |
| sentralbord 61 14 54 00.      | Switchboard: +47 61 14 54 00.      |
+-------------------------------+------------------------------------+
From owner-freebsd-questions@FreeBSD.ORG  Tue May 12 06:16:05 2015
Return-Path: <owner-freebsd-questions@FreeBSD.ORG>
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 8F37DE0C
 for <freebsd-questions@freebsd.org>; Tue, 12 May 2015 06:16:05 +0000 (UTC)
Received: from plane.gmane.org (plane.gmane.org [80.91.229.3])
 (using TLSv1 with cipher AES256-SHA (256/256 bits))
 (Client did not present a certificate)
 by mx1.freebsd.org (Postfix) with ESMTPS id 4CDB51BF6
 for <freebsd-questions@freebsd.org>; Tue, 12 May 2015 06:16:04 +0000 (UTC)
Received: from list by plane.gmane.org with local (Exim 4.69)
 (envelope-from <freebsd-questions@m.gmane.org>) id 1Ys3Tw-0002KT-5P
 for freebsd-questions@freebsd.org; Tue, 12 May 2015 08:15:56 +0200
Received: from pool-72-66-1-32.washdc.fios.verizon.net ([72.66.1.32])
 by main.gmane.org with esmtp (Gmexim 0.1 (Debian))
 id 1AlnuQ-0007hv-00
 for <freebsd-questions@freebsd.org>; Tue, 12 May 2015 08:15:56 +0200
Received: from nightrecon by pool-72-66-1-32.washdc.fios.verizon.net with
 local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00
 for <freebsd-questions@freebsd.org>; Tue, 12 May 2015 08:15:56 +0200
X-Injected-Via-Gmane: http://gmane.org/
To: freebsd-questions@freebsd.org
From: Michael Powell <nightrecon@hotmail.com>
Subject: Re: c_rehash pgm missing from 10.1
Date: Tue, 12 May 2015 02:15:47 -0400
Lines: 25
Message-ID: <mis5qk$vql$1@ger.gmane.org>
References: <554E3771.5060709@gmail.com> <20150509180516.3471c1ae@curlew.lan>
 <554E4119.9010206@gmail.com> <5550FCBE.1020909@radel.com>
 <555105C1.50401@gmail.com> <55510CED.4040109@radel.com>
 <555119E7.7050808@gmail.com> <55512AAF.1040404@radel.com>
 <87fv72wj9c.fsf@elk.localnet>
Reply-To: nightrecon@hotmail.com
Mime-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 7Bit
X-Complaints-To: usenet@ger.gmane.org
X-Gmane-NNTP-Posting-Host: pool-72-66-1-32.washdc.fios.verizon.net
X-BeenThere: freebsd-questions@freebsd.org
X-Mailman-Version: 2.1.20
Precedence: list
List-Id: User questions <freebsd-questions.freebsd.org>
List-Unsubscribe: <http://lists.freebsd.org/mailman/options/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: Tue, 12 May 2015 06:16:05 -0000

Carl Johnson wrote:
[snip]
> 
> Would you please tell us where in the source the script is located.  I
> have source installed (10.1-RELEASE), but all I have is the man page and
> no script.  The output of 'locate c_rehash' is:
>    /usr/ports/mail/cone/scripts/c_rehash
>    /usr/share/openssl/man/man1/c_rehash.1.gz
>    /usr/src/crypto/openssl/doc/apps/c_rehash.pod
>    /usr/src/secure/usr.bin/openssl/man/c_rehash.1
> The file in ports looks like it might be it, but that is not in
> /usr/src.
> 

It's not in base system. As far as the /usr/src tree goes, I think it 
would have been in /usr/src/crypto/openssl/tools - except it isn't. 
Install the /usr/ports/security/openssl port if you find you require it.

As to why, it's because Perl is no longer in base either: 


http://lists.freebsd.org/pipermail/freebsd-security/2005-December/003436.html

-Mike





Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?alpine.BSF.2.20.1505120742290.46962>