From owner-freebsd-questions@FreeBSD.ORG Wed Nov 23 23:05:49 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C7EE416A41F for ; Wed, 23 Nov 2005 23:05:49 +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 4EE1B43D81 for ; Wed, 23 Nov 2005 23:05:49 +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 884DE6421 for ; Wed, 23 Nov 2005 18:05:47 -0500 (EST) Message-ID: <4384F5C4.8000908@digitalstratum.com> Date: Wed, 23 Nov 2005 18:05:40 -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: freebsd-questions@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Force box to become CARP master? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: matthew@digitalstratum.com List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 23 Nov 2005 23:05:49 -0000 Greetings, I'm working on setting up to machines that will be using CARP to provide fail-over, and I was wondering a couple of things: 1. How do you determine if the current box is the master? I need to have each machine do certain things at startup depending on whether or not it is the current CARP master. 2. How to force a box to become the CARP master? Suppose I want to take the current master offline to do regular maintenance, but I don't want to do so by rebooting the current master. A controlled switch of the CARP master to the hot-spare box is what I'd like to be able to do. 3. How to run a script when the hot-spare becomes the CARP master? Any insight or suggestions as to how I might do these things would be greatly appreciated! Thanks, Matthew