Date: Sat, 26 Nov 2005 21:52:19 -0500 From: Matthew Hagerty <matthew@digitalstratum.com> To: "David S. Madole" <david@madole.net> Cc: freebsd-hackers@freebsd.org Subject: Re: Running a shell script on becoming the CARP master? Message-ID: <43891F63.3020505@digitalstratum.com> In-Reply-To: <05f401c5f2a4$a3da7ad0$c3e7a8c0@david> References: <43887BC0.7000501@digitalstratum.com> <05f401c5f2a4$a3da7ad0$c3e7a8c0@david>
next in thread | previous in thread | raw e-mail | index | archive | help
David S. Madole wrote: > From: "Matthew Hagerty" <matthew@digitalstratum.com> > >> >> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?43891F63.3020505>