[Pacemaker] Need an idea for dynamic configuration dependng on resource distribution
Michael Schwartzkopff
misch at multinet.de
Tue Apr 27 12:51:58 UTC 2010
Am Dienstag, 27. April 2010 14:45:21 schrieb Andreas Mock:
> Hi all,
>
> I need an idea how I could achieve the following with corosync/pacemaker.
> 2 servers in a cluster. Each server is running a resource on its own by
> pacemaker configuration in the default case (everything o.k.). In this
> scenario the resources shall take as much "server estate" as possible.
> As soon as one server fails and one of the resources has to move so that
> both resources run on one server I would like to change the configuration
> so that both resources share the "server estate".
>
> Has anyone an idea how to achieve this?
> Or probably done before successfully?
>
> Best regards
> Andreas Mock
>
> _______________________________________________
> Pacemaker mailing list: Pacemaker at oss.clusterlabs.org
> http://oss.clusterlabs.org/mailman/listinfo/pacemaker
>
> Project Home: http://www.clusterlabs.org
> Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
First solution:
Write external scripts that check the coexistance of the services on a node
and reconfigure them accordingly.
Second solution:
Hack the RA scripts and add such a check to the start section. Basically that
means to derive your own RAs from the existing ones.
Please keep in mind to revert the config changes as soon the services run on
different nodes again.
Greetings,
--
Dr. Michael Schwartzkopff
MultiNET Services GmbH
Addresse: Bretonischer Ring 7; 85630 Grasbrunn; Germanyt
Tel: +49 - 89 - 45 69 11 0
Fax: +49 - 89 - 45 69 11 21
mob: +49 - 174 - 343 28 75
mail: misch at multinet.de
web: www.multinet.de
Sitz der Gesellschaft: 85630 Grasbrunn
Registergericht: Amtsgericht München HRB 114375
Geschäftsführer: Günter Jurgeneit, Hubert Martens
---
PGP Fingerprint: F919 3919 FF12 ED5A 2801 DEA6 AA77 57A4 EDD8 979B
Skype: misch42
More information about the Pacemaker
mailing list