Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 17 Jan 2007 21:33:11 +0700
From:      Eugene Grosbein <eugen@kuzbass.ru>
To:        Richard <lists@leewelle.de>
Cc:        freebsd-stable@freebsd.org
Subject:   Re: Failover-HA-Setup
Message-ID:  <20070117143311.GA74404@svzserv.kemerovo.su>
In-Reply-To: <1169043029.23831.32.camel@richard02>
References:  <1169038057.23831.24.camel@richard02> <6b3582f60701170547l13f387dalf594e2c0895a49d9@mail.gmail.com> <1169043029.23831.32.camel@richard02>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Jan 17, 2007 at 03:10:29PM +0100, Richard wrote:

> > Try '/usr/local/etc/rc.d/mysql-server forcestart'

> Hm, that's only a temporary solution.
> 
> As a background:
> 
> Heartbeat monitors the HA nodes via a UDP ping (or other method) and if
> one of the nodes goes down, it takes over a clustered IP and then starts
> services by issuing the corresponding scripts in [/usr/local|]/etc/rc.d
> with the argument start...
> 
> So your solution will not really work....

Just put another script into /usr/local/etc/rc.d that would
run /usr/local/etc/rc.d/mysql-server forcestart
if and only if a flag is present in your system.
Create the flag when system boots and before /usr/local/etc/rc.d/mysql-server
starts with rcorder. Remove the flag just after 
/usr/local/etc/rc.d/mysql-server has finished.

You can user crons '@reboot' feature to create a flag
and one more rc.d script that runs after mysql-server and removes flag.

Eugene Grosbein



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070117143311.GA74404>