<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 15 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:"Courrier New";
panose-1:0 0 0 0 0 0 0 0 0 0;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";
mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:#0563C1;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:#954F72;
text-decoration:underline;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri","sans-serif";
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
mso-fareast-language:EN-US;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:70.85pt 3.0cm 70.85pt 3.0cm;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=ES link="#0563C1" vlink="#954F72"><div class=WordSection1><p class=MsoNormal><span lang=EN-US>Hi!<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>I have Corosync + Pacemaker installed on my Debian wheezy:<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='font-size:9.0pt;font-family:"Courrier New"'>root@rasp02:~# dpkg -s pacemaker | grep ^Version<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='font-size:9.0pt;font-family:"Courrier New"'>Version: 1.1.7-1<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='font-size:9.0pt;font-family:"Courrier New"'>root@rasp02:~# dpkg -s corosync | grep ^Version<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:9.0pt;font-family:"Courrier New"'>Version: 1.4.2-3<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></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?<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='font-size:9.0pt;font-family:"Courrier New"'>Resource Group: PSQL<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='font-size:9.0pt;font-family:"Courrier New"'> PSQL_FS (ocf::heartbeat:Filesystem): Started rasp01<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='font-size:9.0pt;font-family:"Courrier New"'> PSQL_IP (ocf::heartbeat:IPaddr2): Started rasp01<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='font-size:9.0pt;font-family:"Courrier New"'> PSQL_APP (lsb:postgresql): Started <b><span style='color:red'>rasp02</span></b><span style='color:red'> </span>(unmanaged) FAILED<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> <o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>My configuration is, at the bottom are collocation and order definitions.<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='font-size:9.0pt;font-family:"Courrier New";color:#7F7F1B'>primitive</span><span lang=EN-US style='font-size:9.0pt;font-family:"Courrier New"'> PSQL_APP lsb:postgresql \<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='font-size:9.0pt;font-family:"Courrier New"'> <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>" \<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='font-size:9.0pt;font-family:"Courrier New"'> <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>" \<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='font-size:9.0pt;font-family:"Courrier New"'> <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>" \<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='font-size:9.0pt;font-family:"Courrier New"'> <span style='color:#7F7F1B'>meta</span> <span style='color:#1B7F7F'>target-role</span>="<span style='color:#7F3030'>Stopped</span>"<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='font-size:9.0pt;font-family:"Courrier New";color:#7F7F1B'>primitive</span><span lang=EN-US style='font-size:9.0pt;font-family:"Courrier New"'> PSQL_DISK ocf:linbit:drbd \<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='font-size:9.0pt;font-family:"Courrier New"'> <span style='color:#7F7F1B'>params</span> <span style='color:#1B7F7F'>drbd_resource</span>="<span style='color:#7F3030'>PSQL_DISK</span>" \<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='font-size:9.0pt;font-family:"Courrier New"'> <span style='color:#7F7F1B'>op</span> monitor <span style='color:#1B7F7F'>interval</span>="<span style='color:#7F3030'>15s</span>"<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='font-size:9.0pt;font-family:"Courrier New";color:#7F7F1B'>primitive</span><span lang=EN-US style='font-size:9.0pt;font-family:"Courrier New"'> PSQL_FS ocf:heartbeat:Filesystem \<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='font-size:9.0pt;font-family:"Courrier New"'> <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>"<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='font-size:9.0pt;font-family:"Courrier New";color:#7F7F1B'>primitive</span><span lang=EN-US style='font-size:9.0pt;font-family:"Courrier New"'> PSQL_IP ocf:heartbeat:IPaddr2 \<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='font-size:9.0pt;font-family:"Courrier New"'> <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>" \<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='font-size:9.0pt;font-family:"Courrier New"'> <span style='color:#7F7F1B'>op</span> monitor <span style='color:#1B7F7F'>interval</span>="<span style='color:#7F3030'>10s</span>" \<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='font-size:9.0pt;font-family:"Courrier New"'> <span style='color:#7F7F1B'>meta</span> <span style='color:#1B7F7F'>is-managed</span>="<span style='color:#7F3030'>true</span>"<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='font-size:9.0pt;font-family:"Courrier New";color:#7F7F1B'>group</span><span lang=EN-US style='font-size:9.0pt;font-family:"Courrier New"'> PSQL <span style='color:#307F30'>PSQL_FS</span> <span style='color:#307F30'>PSQL_IP</span> <span style='color:#307F30'>PSQL_APP</span> \<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='font-size:9.0pt;font-family:"Courrier New"'> <span style='color:#7F7F1B'>meta</span> <span style='color:#1B7F7F'>target-role</span>="<span style='color:#7F3030'>Stopped</span>"<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='font-size:9.0pt;font-family:"Courrier New";color:#7F7F1B'>ms</span><span lang=EN-US style='font-size:9.0pt;font-family:"Courrier New"'> PSQL_DISK_MS <span style='color:#307F30'>PSQL_DISK</span> \<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='font-size:9.0pt;font-family:"Courrier New"'> <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>"<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='font-size:9.0pt;font-family:"Courrier New";color:#7F7F1B'>location</span><span lang=EN-US style='font-size:9.0pt;font-family:"Courrier New"'> cli-prefer-PSQL <span style='color:#307F30'>PSQL</span> \<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='font-size:9.0pt;font-family:"Courrier New"'> <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<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='font-size:9.0pt;font-family:"Courrier New";color:#7F7F1B'>colocation</span><span lang=EN-US style='font-size:9.0pt;font-family:"Courrier New"'> PSQL_COLOCATION <span style='color:#7F1B7F'>inf:</span> <span style='color:#307F30'>PSQL</span> <span style='color:#307F30'>PSQL_DISK_MS</span>:Master<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='font-size:9.0pt;font-family:"Courrier New";color:#7F7F1B'>order</span><span lang=EN-US style='font-size:9.0pt;font-family:"Courrier New"'> 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<o:p></o:p></span></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>Thanks in advance!<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>Neocox.<o:p></o:p></span></p></div></body></html>