From: Christian Gebler [mailto:[email protected]] 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 <[email protected] <mailto:[email protected]> > a group instead of a collocation. in group, ip -> db -> nginx 在 2013-8-13,17:56,Christian Gebler <[email protected] <mailto:[email protected]> > 写道: 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: [email protected] <mailto:[email protected]> 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: [email protected] <mailto:[email protected]> 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: [email protected] 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
