From owner-freebsd-questions@FreeBSD.ORG Wed May 13 09:29:41 2015 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 25F5EEF1 for ; Wed, 13 May 2015 09:29:41 +0000 (UTC) Received: from mailrelay1.rambler.ru (mailrelay1.rambler.ru [81.19.66.239]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 9E12118AD for ; Wed, 13 May 2015 09:29:39 +0000 (UTC) Received: from think.park.rambler.ru (dark.vpn.rambler.ru [81.19.79.130]) by mailrelay1.rambler.ru (Postfix) with ESMTP id 3lmrFD3NqLzJsN; Wed, 13 May 2015 12:25:04 +0300 (MSK) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=rambler-co.ru; s=mail; t=1431509104; bh=QKarWk4Cb8wYZgtFnDp+89zSjNRq9KnEoM/zgiVFsew=; h=Date:From:To:CC:Subject:References:In-Reply-To; b=VptDIRiGaOXsx1zXYamQf96DgrpveP+oC6njCKo2w76LM+1+XvpMGtMitMY5DdepD pSBlZns6rjkauiMVHmyNpD+xmoRBPmAl9vq8Kd/tgoV77prw15U9Q+lTPpQNy/jsWY QXDrGoTGW+Njp2NRPBy1sqMRBtZq8KwdqlwWl1ww= Message-ID: <55531870.9060607@rambler-co.ru> Date: Wed, 13 May 2015 12:25:04 +0300 From: Konstantin Kukushkin User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:31.0) Gecko/20100101 Thunderbird/31.1.2 MIME-Version: 1.0 To: motty cruz , =?UTF-8?B?VHJvbmQgRW5kcmVzdMO4bA==?= CC: freebsd-questions@freebsd.org Subject: Re: Help! carp slave take over as master at boot! References: <55511AF3.3030408@gmail.com> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spamd-Result: default: False [10.94 / 30.00] fishing_from(0.00) FORGED_MUA_THUNDERBIRD_MSGID(4.00) R_SPF_ALLOW(-2.00) ONCE_RECEIVED(0.84) R_fishing_from(8.10) X-Spamd-Server: spam101.rambler.ru X-Spamd-Scan-Time: 0.39 X-Spamd-Queue-ID: 3lmrFD3NqLzJsN X-Spam: yes X-Rcpt-To: , , 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 09:29:41 -0000 13.05.2015 04:19, motty cruz пишет: > Hi thanks for your reply; > > Machine A (master) > ifconfig_igb0_alias0="inet vhid 31 advbase 12 advskew 40 pass password2 > 19.16.31.80/24" > > Machine B (slave) > ifconfig_igb0_alias0="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=1 I don't understand master was rebooted so check runtime configuration of sysctl net.inet.carp.preempt on master. Check also /var/log/messages on both computers, sysctl net.inet.carp.demotion on master (CARP may be demoted due to interface/pfsync errors. CARP with preemption may be demoted also by down any other interface with CARP on the system). Check firewall on slave, may be it block ingress packets from master. > On Mon, May 11, 2015 at 10:45 PM, Trond Endrestøl < > 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 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. | >> +-------------------------------+------------------------------------+ -- С уважением, Константин Кукушкин, Rambler Internet Holding mailto:dark@rambler-co.ru тел.: 8 (495) 785-17-00#2129