From owner-freebsd-hackers@FreeBSD.ORG Sat Nov 26 16:15:55 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 BCB7C16A41F for ; Sat, 26 Nov 2005 16:15:55 +0000 (GMT) (envelope-from david@madole.net) Received: from a.omd3.com (a.omd3.com [69.90.174.36]) by mx1.FreeBSD.org (Postfix) with ESMTP id 67A3543D5F for ; Sat, 26 Nov 2005 16:15:52 +0000 (GMT) (envelope-from david@madole.net) Received: from dhcp-66-212-201-164.myeastern.com ([66.212.201.164] helo=david) by a.omd3.com with esmtpa (Exim 4.54) id 1Eg2iF-0007wZ-IJ; Sat, 26 Nov 2005 11:15:43 -0500 Message-ID: <05f401c5f2a4$a3da7ad0$c3e7a8c0@david> From: "David S. Madole" To: , References: <43887BC0.7000501@digitalstratum.com> Date: Sat, 26 Nov 2005 11:15:38 -0500 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=response Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.2670 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2670 Cc: 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 List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 26 Nov 2005 16:15:55 -0000 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