Failover-HA-Setup

Richard lists at leewelle.de
Wed Jan 17 15:10:30 UTC 2007


Hi Nikos!

Am Mittwoch, den 17.01.2007, 16:08 +0200 schrieb Nikos Vassiliadis:
> > I am running heartbeat on a STABLE-system, the failover works fine for
> > IP-adresses and I am able to see that a
> > '/usr/local/etc/rc.d/mysql-server start' statement is issued. BUT since
> > the variables for mysql are not set in rc.conf (Otherwise it would be
> > started at startup), it isn't starting at all.
> > 
> > So my question: How to set those rc.conf-variables in order to start
> > services in such an setup? Or is there a better solution?
> 
> Which service is highly available in this setup? MySQL?
> How do you sync the data? ggate?
I am using a "shared" SCSI-Storage inbetween these servers. The acive
node mounts a Volume and the service is started. (Yes, I know, it isn't
really HA since there is still a SPOF)

> 
> I remember that heartbeat can call any script you it tell to.
> So, you have to let heartbeat start MySQL. rc will just start
> heartbeat.
Yes, you are right, and exactly that was my problem. It didn't start.

I worked around it by copying the startup-scripts
from /usr/local/etc/rc.d to /usr/local/etc/ha.d/resource.d/ and removed
the critical test which ask for the variables set in rc.conf.

Thanks for all your help!

Richard



More information about the freebsd-stable mailing list