[Pacemaker] Creating rules to migrate another group
Andrew Beekhof
andrew at beekhof.net
Mon Nov 26 00:26:32 UTC 2012
On Thu, Nov 15, 2012 at 6:35 PM, Carlos Luna <carlos.luna at openet.com> wrote:
> Hello.
>
> I have a task that I can't seem to figure out how to implement in PaceMaker.
>
> I have two virtual ip resources and they are grouped together (colocated). They
> are initially started on node 1.
>
> I have a group of resources (three servers and two databases) that are cloned on
> nodes 1 and 2. Both groups are running simultaneously.
>
> The difficulty is I want to migrate the virtual ips to node 2 if any of the the
> resources in the server group fail. I do not want the cloned groups to migrate
> at all. I simply want traffic on the virtual ips to divert from one node to the
> another.
>
> Any ideas would be greatly appreciated.
Did you try:
colocate ip_group server_group
plus
migration-threshold = 1
The latter prevents the server group from recovering after a failure
and the former only allows the IPs to run where the server group is
active.
More information about the Pacemaker
mailing list