[Pacemaker] 2 node Cluster
Jake Smith
jsmith at argotec.com
Tue Aug 13 13:37:41 UTC 2013
From: Christian Gebler [mailto:geblerchristian at googlemail.com]
Sent: Tuesday, August 13, 2013 9:17 AM
To: The Pacemaker cluster resource manager
Subject: Re: [Pacemaker] 2 node Cluster
It works! Amazing....All the time I tried to fix it with the collocation.
Thanks a lot for that solution! :)
Chris – I believe you were having issues because you had a resource set
inside the colocation statement which causes the order of the elements to be
reversed. When you have more than two like resources in a colo they become
a set and are evaluate in reverse:
colocation col_psql-server_on_drbd inf: g_webserver p_psql-server p_ip
ms_drbd_r2_drbd2:Master ms_drbd_r0_drbd0:Master ms_drbd_r1_drbd1:Master
So the above was really collocating in this way:
p_ip p_psql-server g_webserver ms_drbd_r1_drbd1:Master
ms_drbd_r0_drbd0:Master ms_drbd_r2_drbd2:Master
Only way to be sure would be/have been to run crm configure show xml. The
xml output of the config will display the colocation statement in the order
it is actually going to happen as opposed to the way it’s written in crmsh
More conversation on that here:
http://www.gossamer-threads.com/lists/linuxha/pacemaker/80622
HTH
Jake
2013/8/13 tech-ha <tech.ha01 at gmail.com <mailto:tech.ha01 at gmail.com> >
a group instead of a collocation. in group, ip -> db -> nginx
在 2013-8-13,17:56,Christian Gebler <geblerchristian at googlemail.com
<mailto:geblerchristian at googlemail.com> > 写道:
Hi,
I am trying to set up a 2 node Pacemaker-Cluster with a few services (drbd,
psql, ip, tomcat, nginx).
All these services should run on one node, all the time, if one service is
down, everything must migrate to the other node.
So I created one colocation and one order, that works fine and all services
run and migrate as expected.
But I have one problem...if I stop my Tomcat or Nginx (on the CRM CLI), the
database and the ip goes down too, but that should not happen. I have no
idea how to fix this problem, so I hope you can help me. Or is the only
solution to unmanage the Service at first?
Thx!
Chris
Here is my Config:
http://goo.gl/FkeqlH
_______________________________________________
Pacemaker mailing list: Pacemaker at oss.clusterlabs.org
<mailto: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
Bugs: http://bugs.clusterlabs.org
_______________________________________________
Pacemaker mailing list: Pacemaker at oss.clusterlabs.org
<mailto: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
Bugs: http://bugs.clusterlabs.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.clusterlabs.org/pipermail/pacemaker/attachments/20130813/4896f756/attachment.htm>
More information about the Pacemaker
mailing list