[Linux-HA] Stop one resource when failing over another

Dejan Muhamedagic dejanmm at fastmail.fm
Tue Sep 11 08:02:20 MDT 2007


Hi,

On Mon, Sep 10, 2007 at 09:14:23PM +0200, Christian Wäschenfelder wrote:
> Hi,
> 
> I try to get the following working:
> I've a setup of 4 nodes, where node 1 and 2 normaly should run as
> webservers and node 4 runs as MySQL-Server (grouped with one IP).
> Node 3 should normaly also run as webserver to capture peaks, but if the
> MySQL-Server fails it should shut down the webservice
> and take over the MySQL-Service.
> 
> I set it up as asymetric cluster and used location constraints to bind
> the webservices to node 1-3  and the MySQL-Service primary to node 4
> and secondary to node 3.
> Now I tried to use a colocation constraint to prevent the webservice to
> run together with the MySQL-Service on the same node,
> but either both services get active on node 3 or the MySQL doesn't start
> when I set node 4 offline.
> 
> I'm using version 2.0.7.

Please upgrade to 2.1.2 if you can.

> Is there a way to get this setup working?

Yes it should work. Apart from the node preference colocation
constraints, you should just have one of this kind:

web_optional mysql -INFINITY

i.e. never run the two on one node and then just have a higher
score for mysql on node 3. Is that what you did? If it doesn't
work, please attach the logs and peinputs.

Thanks.

Dejan

> Regards,
> Christian
> 
> 
> 
> _______________________________________________
> Linux-HA mailing list
> Linux-HA at lists.linux-ha.org
> http://lists.linux-ha.org/mailman/listinfo/linux-ha
> See also: http://linux-ha.org/ReportingProblems


More information about the Linux-HA mailing list