<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<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 name=Generator content="Microsoft Word 15 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
{font-family:Wingdings;
panose-1:5 0 0 0 0 0 0 0 0 0;}
@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:12.0pt;
font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
span.hoenzb
{mso-style-name:hoenzb;}
span.EmailStyle18
{mso-style-type:personal-reply;
font-family:"Calibri","sans-serif";
color:#1F497D;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri","sans-serif";
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=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D;mso-fareast-language:EN-US'>Thanks! It works now </span><span style='font-size:11.0pt;font-family:Wingdings;color:#1F497D;mso-fareast-language:EN-US'>J</span><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D;mso-fareast-language:EN-US'> <a name="_MailEndCompose"><span lang=EN-US><o:p></o:p></span></a></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D;mso-fareast-language:EN-US'><o:p> </o:p></span></p><p class=MsoNormal><b><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif"'>From:</span></b><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif"'> emmanuel segura [mailto:emi2fast@gmail.com] <br><b>Sent:</b> sábado, 2 de noviembre de 2013 14:31<br><b>To:</b> The Pacemaker cluster resource manager; The Pacemaker cluster resource manager<br><b>Subject:</b> Re: [Pacemaker] Question regarding collocation<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><div><p class=MsoNormal>your order constrain it should be <br><br><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:start</span></span><o:p></o:p></p></div><div><p class=MsoNormal style='margin-bottom:12.0pt'><o:p> </o:p></p><div><p class=MsoNormal>2013/11/2 Neocox <<a href="mailto:neocox@outlook.com" target="_blank">neocox@outlook.com</a>><o:p></o:p></p><blockquote style='border:none;border-left:solid #CCCCCC 1.0pt;padding:0cm 0cm 0cm 6.0pt;margin-left:4.8pt;margin-right:0cm'><div><div><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=EN-US>Hi!</span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=EN-US> </span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=EN-US>I have Corosync + Pacemaker installed on my Debian wheezy:</span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;text-autospace:none'><span lang=EN-US style='font-size:9.0pt;font-family:"Courrier New"'>root@rasp02:~# dpkg -s pacemaker | grep ^Version</span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;text-autospace:none'><span lang=EN-US style='font-size:9.0pt;font-family:"Courrier New"'>Version: 1.1.7-1</span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;text-autospace:none'><span lang=EN-US style='font-size:9.0pt;font-family:"Courrier New"'>root@rasp02:~# dpkg -s corosync | grep ^Version</span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;text-autospace:none'><span style='font-size:9.0pt;font-family:"Courrier New"'>Version: 1.4.2-3</span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=EN-US> </span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><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?</span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;text-autospace:none'><span lang=EN-US style='font-size:9.0pt;font-family:"Courrier New"'>Resource Group: PSQL</span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;text-autospace:none'><span lang=EN-US style='font-size:9.0pt;font-family:"Courrier New"'> PSQL_FS (ocf::heartbeat:Filesystem): Started rasp01</span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;text-autospace:none'><span lang=EN-US style='font-size:9.0pt;font-family:"Courrier New"'> PSQL_IP (ocf::heartbeat:IPaddr2): Started rasp01</span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;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</span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=EN-US>My configuration is, at the bottom are collocation and order definitions.</span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;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 \</span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;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>" \</span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;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>" \</span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;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>" \</span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;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>"</span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;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 \</span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;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>" \</span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;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>"</span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;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 \</span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;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>"</span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;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 \</span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;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>" \</span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;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>" \</span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;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>"</span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;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> \</span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;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>"</span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;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> \</span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;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>"</span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;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> \</span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;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</span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;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</span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;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</span></span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=EN-US> </span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=EN-US> </span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=EN-US>Thanks in advance!</span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=EN-US style='color:#888888'> </span><span style='color:#888888'><o:p></o:p></span></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=EN-US style='color:#888888'>Neocox.</span><span style='color:#888888'><o:p></o:p></span></p></div></div><p class=MsoNormal style='margin-bottom:12.0pt'><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><o:p></o:p></p></blockquote></div><p class=MsoNormal><br><br clear=all><br>-- <br>esta es mi vida e me la vivo hasta que dios quiera <o:p></o:p></p></div></div></body></html>