From owner-freebsd-hackers@FreeBSD.ORG Sun Nov 27 02:52:33 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9B37216A41F for ; Sun, 27 Nov 2005 02:52:33 +0000 (GMT) (envelope-from matthew@digitalstratum.com) Received: from mail.mundomateo.com (static-24-56-193-117.chrlmi.cablespeed.com [24.56.193.117]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0D78543D82 for ; Sun, 27 Nov 2005 02:52:26 +0000 (GMT) (envelope-from matthew@digitalstratum.com) Received: from [10.0.81.12] (ws12.mundomateo.com [10.0.81.12]) by mail.mundomateo.com (Postfix) with ESMTP id 4773C6556; Sat, 26 Nov 2005 21:52:22 -0500 (EST) Message-ID: <43891F63.3020505@digitalstratum.com> Date: Sat, 26 Nov 2005 21:52:19 -0500 From: Matthew Hagerty Organization: Digital Stratum User-Agent: Mozilla Thunderbird 1.0.6 (Windows/20050716) X-Accept-Language: en-us, en MIME-Version: 1.0 To: "David S. Madole" References: <43887BC0.7000501@digitalstratum.com> <05f401c5f2a4$a3da7ad0$c3e7a8c0@david> In-Reply-To: <05f401c5f2a4$a3da7ad0$c3e7a8c0@david> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-hackers@freebsd.org Subject: Re: Running a shell script on becoming the CARP master? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: matthew@digitalstratum.com List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 27 Nov 2005 02:52:33 -0000 David S. Madole wrote: > From: "Matthew Hagerty" > >> >> Are there any hooks into CARP to run a shell script when a machine >> becomes the master? Also, is there a way to force a machine to >> become the master without powering off the current master (for >> example to do maintenance on the current master)? > > > I don't know of any way to do the former, but for the latter it's easy > enough to temporarily adjust the advbase setting higher on the master > until failover occurs. Set it to at least three times the setting on > the slave. > > Or simply ifconfig down the carp interface on the master. > > David > Taking the master carp interface down certainly would accomplish the task, I just didn't know if there was a more elegant method. Thanks for the info. Matthew