<div dir="ltr">your order constrain it should be <br><br><span style="font-size:9pt;font-family:"Courrier New";color:rgb(127,127,27)" lang="EN-US">order</span><span style="font-size:9pt;font-family:"Courrier New"" lang="EN-US"> PSQL_ORDER <span style="color:rgb(127,27,127)">inf:</span> <span style="color:rgb(48,127,48)">PSQL_DISK_MS</span>:promote </span><span style="font-size:9pt;font-family:"Courrier New"" lang="EN-US"><span style="color:rgb(48,127,48)">PSQL:start</span></span></div>
<div class="gmail_extra"><br><br><div class="gmail_quote">2013/11/2 Neocox <span dir="ltr"><<a href="mailto:neocox@outlook.com" target="_blank">neocox@outlook.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div link="#0563C1" vlink="#954F72" lang="ES"><div><p class="MsoNormal"><span lang="EN-US">Hi!<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p><p class="MsoNormal"><span lang="EN-US">I have Corosync + Pacemaker installed on my Debian wheezy:<u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.0pt;font-family:"Courrier New"" lang="EN-US">root@rasp02:~# dpkg -s pacemaker | grep ^Version<u></u><u></u></span></p><p class="MsoNormal" style="text-autospace:none">
<span style="font-size:9.0pt;font-family:"Courrier New"" lang="EN-US">Version: 1.1.7-1<u></u><u></u></span></p><p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.0pt;font-family:"Courrier New"" lang="EN-US">root@rasp02:~# dpkg -s corosync | grep ^Version<u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.0pt;font-family:"Courrier New"">Version: 1.4.2-3<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">And although I think that I have correctly configured resource collocation, the resource PSQL_APP (PostgreSQL app)  is trying to start on node disctinc that the node that has other resources (IP and filesystem), how is it possible?<u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.0pt;font-family:"Courrier New"" lang="EN-US">Resource Group: PSQL<u></u><u></u></span></p><p class="MsoNormal" style="text-autospace:none">
<span style="font-size:9.0pt;font-family:"Courrier New"" lang="EN-US">     PSQL_FS    (ocf::heartbeat:Filesystem):    Started rasp01<u></u><u></u></span></p><p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.0pt;font-family:"Courrier New"" lang="EN-US">     PSQL_IP    (ocf::heartbeat:IPaddr2):       Started rasp01<u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.0pt;font-family:"Courrier New"" lang="EN-US">     PSQL_APP   (lsb:postgresql):       Started <b><span style="color:red">rasp02</span></b><span style="color:red"> </span>(unmanaged) FAILED<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"> <u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US">My configuration is, at the bottom are collocation and order definitions.<u></u><u></u></span></p><p class="MsoNormal" style="text-autospace:none">
<span style="font-size:9.0pt;font-family:"Courrier New";color:#7f7f1b" lang="EN-US">primitive</span><span style="font-size:9.0pt;font-family:"Courrier New"" lang="EN-US"> PSQL_APP lsb:postgresql \<u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.0pt;font-family:"Courrier New"" lang="EN-US">        <span style="color:#7f7f1b">op</span> monitor <span style="color:#1b7f7f">interval</span>="<span style="color:#7f3030">30</span>" <span style="color:#1b7f7f">timeout</span>="<span style="color:#7f3030">60</span>" \<u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.0pt;font-family:"Courrier New"" lang="EN-US">        <span style="color:#7f7f1b">op</span> start <span style="color:#1b7f7f">interval</span>="<span style="color:#7f3030">0</span>" <span style="color:#1b7f7f">timeout</span>="<span style="color:#7f3030">60</span>" \<u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.0pt;font-family:"Courrier New"" lang="EN-US">        <span style="color:#7f7f1b">op</span> stop <span style="color:#1b7f7f">interval</span>="<span style="color:#7f3030">0</span>" <span style="color:#1b7f7f">timeout</span>="<span style="color:#7f3030">60</span>" \<u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.0pt;font-family:"Courrier New"" lang="EN-US">        <span style="color:#7f7f1b">meta</span> <span style="color:#1b7f7f">target-role</span>="<span style="color:#7f3030">Stopped</span>"<u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.0pt;font-family:"Courrier New";color:#7f7f1b" lang="EN-US">primitive</span><span style="font-size:9.0pt;font-family:"Courrier New"" lang="EN-US"> PSQL_DISK ocf:linbit:drbd \<u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.0pt;font-family:"Courrier New"" lang="EN-US">        <span style="color:#7f7f1b">params</span> <span style="color:#1b7f7f">drbd_resource</span>="<span style="color:#7f3030">PSQL_DISK</span>" \<u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.0pt;font-family:"Courrier New"" lang="EN-US">        <span style="color:#7f7f1b">op</span> monitor <span style="color:#1b7f7f">interval</span>="<span style="color:#7f3030">15s</span>"<u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.0pt;font-family:"Courrier New";color:#7f7f1b" lang="EN-US">primitive</span><span style="font-size:9.0pt;font-family:"Courrier New"" lang="EN-US"> PSQL_FS ocf:heartbeat:Filesystem \<u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.0pt;font-family:"Courrier New"" lang="EN-US">        <span style="color:#7f7f1b">params</span> <span style="color:#1b7f7f">device</span>="<span style="color:#7f3030">/dev/drbd/by-res/PSQL_DISK</span>" <span style="color:#1b7f7f">directory</span>="<span style="color:#7f3030">/db</span>" <span style="color:#1b7f7f">fstype</span>="<span style="color:#7f3030">ext3</span>"<u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.0pt;font-family:"Courrier New";color:#7f7f1b" lang="EN-US">primitive</span><span style="font-size:9.0pt;font-family:"Courrier New"" lang="EN-US"> PSQL_IP ocf:heartbeat:IPaddr2 \<u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.0pt;font-family:"Courrier New"" lang="EN-US">        <span style="color:#7f7f1b">params</span> <span style="color:#1b7f7f">ip</span>="<span style="color:#7f3030">192.168.1.191</span>" <span style="color:#1b7f7f">nic</span>="<span style="color:#7f3030">wlan0</span>" \<u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.0pt;font-family:"Courrier New"" lang="EN-US">        <span style="color:#7f7f1b">op</span> monitor <span style="color:#1b7f7f">interval</span>="<span style="color:#7f3030">10s</span>" \<u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.0pt;font-family:"Courrier New"" lang="EN-US">        <span style="color:#7f7f1b">meta</span> <span style="color:#1b7f7f">is-managed</span>="<span style="color:#7f3030">true</span>"<u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.0pt;font-family:"Courrier New";color:#7f7f1b" lang="EN-US">group</span><span style="font-size:9.0pt;font-family:"Courrier New"" lang="EN-US"> PSQL <span style="color:#307f30">PSQL_FS</span> <span style="color:#307f30">PSQL_IP</span> <span style="color:#307f30">PSQL_APP</span> \<u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.0pt;font-family:"Courrier New"" lang="EN-US">        <span style="color:#7f7f1b">meta</span> <span style="color:#1b7f7f">target-role</span>="<span style="color:#7f3030">Stopped</span>"<u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.0pt;font-family:"Courrier New";color:#7f7f1b" lang="EN-US">ms</span><span style="font-size:9.0pt;font-family:"Courrier New"" lang="EN-US"> PSQL_DISK_MS <span style="color:#307f30">PSQL_DISK</span> \<u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.0pt;font-family:"Courrier New"" lang="EN-US">        <span style="color:#7f7f1b">meta</span> <span style="color:#1b7f7f">master-max</span>="<span style="color:#7f3030">1</span>" <span style="color:#1b7f7f">master-node-max</span>="<span style="color:#7f3030">1</span>" <span style="color:#1b7f7f">clone-max</span>="<span style="color:#7f3030">2</span>" <span style="color:#1b7f7f">clone-node-max</span>="<span style="color:#7f3030">1</span>" <span style="color:#1b7f7f">notify</span>="<span style="color:#7f3030">true</span>" <span style="color:#1b7f7f">target-role</span>="<span style="color:#7f3030">Started</span>"<u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.0pt;font-family:"Courrier New";color:#7f7f1b" lang="EN-US">location</span><span style="font-size:9.0pt;font-family:"Courrier New"" lang="EN-US"> cli-prefer-PSQL <span style="color:#307f30">PSQL</span> \<u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.0pt;font-family:"Courrier New"" lang="EN-US">        <span style="color:#7f7f1b">rule</span> $id="cli-prefer-rule-PSQL" <span style="color:#7f1b7f">inf:</span> #uname <span style="color:#7f7f1b">eq</span> rasp02<u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.0pt;font-family:"Courrier New";color:#7f7f1b" lang="EN-US">colocation</span><span style="font-size:9.0pt;font-family:"Courrier New"" lang="EN-US"> PSQL_COLOCATION <span style="color:#7f1b7f">inf:</span> <span style="color:#307f30">PSQL</span> <span style="color:#307f30">PSQL_DISK_MS</span>:Master<u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.0pt;font-family:"Courrier New";color:#7f7f1b" lang="EN-US">order</span><span style="font-size:9.0pt;font-family:"Courrier New"" lang="EN-US"> PSQL_ORDER <span style="color:#7f1b7f">inf:</span> <span style="color:#307f30">PSQL_DISK_MS</span>:promote <span style="color:#307f30">PSQL_IP</span> <span style="color:#307f30">PSQL_FS</span> <span style="color:#307f30">PSQL_APP<u></u><u></u></span></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p><p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p><p class="MsoNormal"><span lang="EN-US">Thanks in advance!<span class="HOEnZb"><font color="#888888"><u></u><u></u></font></span></span></p>
<span class="HOEnZb"><font color="#888888"><p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p><p class="MsoNormal"><span lang="EN-US">Neocox.<u></u><u></u></span></p></font></span></div></div><br>_______________________________________________<br>

Pacemaker mailing list: <a href="mailto:Pacemaker@oss.clusterlabs.org">Pacemaker@oss.clusterlabs.org</a><br>
<a href="http://oss.clusterlabs.org/mailman/listinfo/pacemaker" target="_blank">http://oss.clusterlabs.org/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/doc/Cluster_from_Scratch.pdf</a><br>
Bugs: <a href="http://bugs.clusterlabs.org" target="_blank">http://bugs.clusterlabs.org</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>esta es mi vida e me la vivo hasta que dios quiera
</div>