<p dir="ltr">Hi Hauke,</p>
<p dir="ltr">I can't find any reference in the crm manual to your command. I don't either understand what is an unclean location. A cli-* location?<br>
Can you clarify?<br>
Again your setup seems to be opt-in based (sorry I miss used the term in previous post). Documentation states:<br>
<b>6.2. Deciding Which Nodes a Resource Can Run On</b></p>
<p dir="ltr">There are two alternative strategies for specifying which nodes a resources can run on. One way is to say that by default they can run anywhere and then create location constraints for nodes that are not allowed. The other option is to have nodes "opt-in"... to start with nothing able to run anywhere and selectively enable allowed nodes.</p>
<p dir="ltr">Your approach follows neither of these options at the moment.</p>
<div class="gmail_quote">Le 12 nov. 2014 08:11, "Hauke Homburg" <<a href="mailto:hhomburg@w3-creative.de">hhomburg@w3-creative.de</a>> a écrit :<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Am 11.11.2014 16:25, schrieb Andrei Borzenkov:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
В Tue, 11 Nov 2014 16:19:56 +0100<br>
Hauke Homburg<<a href="mailto:hhomburg@w3-creative.de" target="_blank">hhomburg@w3-creative.<u></u>de</a>> пишет:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Am 11.11.2014 13:34, schrieb Alexandre:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
You should use an opt out cluster. Set the cluster option<br>
symmetrical=false. This will tell corosync not to place a resource<br>
anywhere on the cluster, unless a location rule explicitly tell the<br>
cluster where it should run.<br>
<br>
Corosync will still monitor sql resources on www hosts and return rc 5<br>
but this is expected and works.<br>
<br>
Le 11 nov. 2014 13:22, "Hauke Homburg"<<a href="mailto:hhomburg@w3-creative.de" target="_blank">hhomburg@w3-creative.<u></u>de</a><br>
<mailto:<a href="mailto:hhomburg@w3-creative.de" target="_blank">hhomburg@w3-creative.<u></u>de</a>>> a écrit :<br>
<br>
Hello,<br>
<br>
I am installing a 6 Node pacemaker CLuster. 3 Nodes for Apache, 3<br>
Nodes for Postgres.<br>
<br>
My Cluster Config is<br>
<br>
node kvm-node1<br>
node sql-node1<br>
node sql-node2<br>
node sql-node3<br>
node www-node1<br>
node www-node2<br>
node www-node3<br>
primitive pri_kvm_ip ocf:heartbeat:IPaddr2 \<br>
params ip="10.0.6.41" cidr_netmask="255.255.255.0" \<br>
op monitor interval="10s" timeout="20s"<br>
primitive pri_sql_ip ocf:heartbeat:IPaddr2 \<br>
params ip="10.0.6.31" cidr_netmask="255.255.255.0" \<br>
op monitor interval="10s" timeout="20s"<br>
primitive pri_www_ip ocf:heartbeat:IPaddr2 \<br>
params ip="10.0.6.21" cidr_netmask="255.255.255.0" \<br>
op monitor interval="10s" timeout="20s"<br>
primitive res_apache ocf:heartbeat:apache \<br>
params configfile="/etc/apache2/<u></u>apache2.conf" \<br>
op start interval="0" timeout="40" \<br>
op stop interval="0" timeout="60" \<br>
op monitor interval="60" timeout="120" start-delay="0" \<br>
meta target-role="Started"<br>
primitive res_pgsql ocf:heartbeat:pgsql \<br>
params pgctl="/usr/lib/postgresql/9.<u></u>1/bin/pg_ctl"<br>
psql="/usr/bin/psql" start_opt=""<br>
pgdata="/var/lib/postgresql/9.<u></u>1/main"<br>
config="/etc/postgresql/9.1/<u></u>main/postgresql.conf" pgdba="postgres" \<br>
op start interval="0" timeout="120s" \<br>
op stop interval="0" timeout="120s" \<br>
op monitor interval="30s" timeout="30s" depth="0"<br>
location loc_kvm_ip_node1 pri_kvm_ip 10001: kvm-node1<br>
location loc_sql_ip_node1 pri_sql_ip inf: sql-node1<br>
location loc_sql_ip_node2 pri_sql_ip inf: sql-node2<br>
location loc_sql_ip_node3 pri_sql_ip inf: sql-node3<br>
location loc_sql_srv_node1 res_pgsql inf: sql-node1<br>
location loc_sql_srv_node2 res_pgsql inf: sql-node2<br>
location loc_sql_srv_node3 res_pgsql inf: sql-node3<br>
location loc_www_ip_node1 pri_www_ip inf: www-node1<br>
location loc_www_ip_node2 pri_www_ip inf: www-node2<br>
location loc_www_ip_node3 pri_www_ip inf: www-node3<br>
location loc_www_srv_node1 res_apache inf: www-node1<br>
location loc_www_srv_node2 res_apache inf: www-node2<br>
location loc_www_srv_node3 res_apache inf: www-node3<br>
property $id="cib-bootstrap-options" \<br>
dc-version="1.1.7-<u></u>ee0730e13d124c3d58f00016c3376a<u></u>1de5323cff" \<br>
cluster-infrastructurFailed actions:<br>
<br>
Why do i see in crm_mon the following output?<br>
<br>
res_pgsql_start_0 (node=www-node1, call=16, rc=5,<br>
status=complete): not installed<br>
res_pgsql_start_0 (node=www-node2, call=13, rc=5,<br>
status=complete): not installed<br>
pri_www_ip_monitor_10000 (node=www-node3, call=22, rc=7,<br>
status=complete): not running<br>
res_pgsql_start_0 (node=www-node3, call=13, rc=5,<br>
status=complete): not installed<br>
res_apache_start_0 (node=sql-node2, call=18, rc=5,<br>
status=complete): not installed<br>
res_pgsql_start_0 (node=sql-node2, call=12, rc=5,<br>
status=complete): not installed<br>
res_apache_start_0 (node=sql-node3, call=12, rc=5,<br>
status=complete): not installed<br>
res_pgsql_start_0 (node=sql-node3, call=10, rc=5,<br>
status=complete): not installed<br>
res_apache_start_0 (node=kvm-node1, call=12, rc=5,<br>
status=complete): not installed<br>
res_pgsql_start_0 (node=kvm-node1, call=20, rc=5,<br>
status=complete): not installede="openais" \<br>
expected-quorum-votes="7" \<br>
stonith-enabled="false"<br>
<br>
<br>
I set the infinity for pgsql on all 3 sql nodes, but not! on the<br>
www nodes. Why tries Pacemaker to start the Postgres SQL Server on<br>
the www Node? In example?<br>
<br>
Thank for your Help<br>
<br>
greetings<br>
<br>
Hauke<br>
<br>
______________________________<u></u>_________________<br>
Pacemaker mailing list: <a href="mailto:Pacemaker@oss.clusterlabs.org" target="_blank">Pacemaker@oss.clusterlabs.org</a><br>
<mailto:<a href="mailto:Pacemaker@oss.clusterlabs.org" target="_blank">Pacemaker@oss.<u></u>clusterlabs.org</a>><br>
<a href="http://oss.clusterlabs.org/mailman/listinfo/pacemaker" target="_blank">http://oss.clusterlabs.org/<u></u>mailman/listinfo/pacemaker</a><br>
<br>
Project Home: <a href="http://www.clusterlabs.org" target="_blank">http://www.clusterlabs.org</a><br>
Getting started:<br>
<a href="http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf" target="_blank">http://www.clusterlabs.org/<u></u>doc/Cluster_from_Scratch.pdf</a><br>
Bugs: <a href="http://bugs.clusterlabs.org" target="_blank">http://bugs.clusterlabs.org</a><br>
<br>
<br>
<br>
______________________________<u></u>_________________<br>
Pacemaker mailing list: <a href="mailto:Pacemaker@oss.clusterlabs.org" target="_blank">Pacemaker@oss.clusterlabs.org</a><br>
<a href="http://oss.clusterlabs.org/mailman/listinfo/pacemaker" target="_blank">http://oss.clusterlabs.org/<u></u>mailman/listinfo/pacemaker</a><br>
<br>
Project Home: <a href="http://www.clusterlabs.org" target="_blank">http://www.clusterlabs.org</a><br>
Getting started: <a href="http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf" target="_blank">http://www.clusterlabs.org/<u></u>doc/Cluster_from_Scratch.pdf</a><br>
Bugs: <a href="http://bugs.clusterlabs.org" target="_blank">http://bugs.clusterlabs.org</a><br>
</blockquote>
Hello Alexandre,<br>
<br>
Why can't i set the infinity for the SQL servernodes to start the SQL<br>
Daemon only on the sql-nodes? I thought that has to be all?<br>
<br>
</blockquote>
<a href="http://clusterlabs.org/doc/en-US/Pacemaker/1.0/html/Pacemaker_Explained/s-resource-location.html" target="_blank">http://clusterlabs.org/doc/en-<u></u>US/Pacemaker/1.0/html/<u></u>Pacemaker_Explained/s-<u></u>resource-location.html</a><br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Greetings<br>
<br>
Hauke<br>
</blockquote></blockquote>
Hello,<br>
<br>
I found my Mistake. It wasn't a Configuration Problem.<br>
I had to clean the locations in crm. crm(configure) <Location> clean.<br>
After the cleaning i cloud restart corosync an in crm_mon i didn't see any error.<br>
<br>
Greetings<br>
<br>
Hauke<br>
<br>
______________________________<u></u>_________________<br>
Pacemaker mailing list: <a href="mailto:Pacemaker@oss.clusterlabs.org" target="_blank">Pacemaker@oss.clusterlabs.org</a><br>
<a href="http://oss.clusterlabs.org/mailman/listinfo/pacemaker" target="_blank">http://oss.clusterlabs.org/<u></u>mailman/listinfo/pacemaker</a><br>
<br>
Project Home: <a href="http://www.clusterlabs.org" target="_blank">http://www.clusterlabs.org</a><br>
Getting started: <a href="http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf" target="_blank">http://www.clusterlabs.org/<u></u>doc/Cluster_from_Scratch.pdf</a><br>
Bugs: <a href="http://bugs.clusterlabs.org" target="_blank">http://bugs.clusterlabs.org</a><br>
</blockquote></div>