<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style id="owaParaStyle">P {
        MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px
}
</style>
</head>
<body fPStyle="1" ocsi="0">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;">
<p>There is a Pacemaker bug which cannot be replaced due to legacy tracking and backward compatibility</p>
<p> </p>
<div>colocation FS_WITH_DRBD inf: IP-AND-FS ms_drbd:Master</div>
<div>order DRBD_BEF_FS inf: IP-AND-FS:start ms_drbd:promote </div>
<div> </div>
<div>if colocation and order is specified between 2 Resources then it means the 2nd one is the first and 1st one is the next</div>
<div> </div>
<div>For example,
<div>colocation FS_WITH_DRBD inf: IP-AND-FS ms_drbd:Master</div>
<div>//Actually means  first start IP-AND-FS then make ms_drbd as Master</div>
<div>// But in behavior, it is first make ms_drbd as Master and then start IP-AND-FS </div>
<div> </div>
<div>Also for order, it is the same behavior...</div>
<div>
<div>order DRBD_BEF_FS inf: IP-AND-FS:start ms_drbd:promote </div>
<div>
<div>//Actually means  first start IP-AND-FS then promote ms_drbd </div>
<div>// But in behavior, it is first promote ms_drbd and then start IP-AND-FS</div>
</div>
</div>
<div> </div>
<div>But when you define order and colocation between 3 or more resources, then the interpretation is fine...</div>
<div> </div>
<div> </div>
<div>Therefore in your scenario, you must configure (as I said)</div>
<div>
<div>colocation FS_WITH_DRBD inf: IP-AND-FS ms_drbd:Master</div>
<div>order DRBD_BEF_FS inf: IP-AND-FS:start ms_drbd:promote </div>
<div> </div>
<div>Though it means opposite, but the behavior is as you expect.(owing to Pacemaker backward compatibility)</div>
<div> </div>
<div> </div>
</div>
</div>
<div>
<p> </p>
<div style="FONT-FAMILY: Tahoma; FONT-SIZE: 13px">
<div style="MARGIN: 0px"><font size="2" face="Calibri,sans-serif"><span style="FONT-SIZE: 11pt">Regards,</span></font></div>
<div style="MARGIN: 0px"><font size="2" face="Calibri,sans-serif"><span style="FONT-SIZE: 11pt"><font color="black" size="2" face="Arial,sans-serif"><span style="FONT-SIZE: 10pt">Kashif Jawed Siddiqui<br>
</span></font></span></font></div>
<font size="2" face="Calibri,sans-serif"><span style="FONT-SIZE: 11pt">
<div style="MARGIN: 0px"><font color="#808080" face="Arial"></font> </div>
<div style="MARGIN: 0px"><font color="gray" size="1" face="Arial,sans-serif"><span style="FONT-SIZE: 7.5pt">
<p style="MARGIN: 0in 0in 0pt" class="MsoNormal"><span style="FONT-FAMILY: 'Arial','sans-serif'; FONT-SIZE: 10pt"><font color="#000000">***************************************************************************************<br>
This e-mail and attachments contain confidential information from HUAWEI, which is intended only for the person or entity whose address is listed above. Any use of the information contained herein in any way (including, but not limited to, total or partial
 disclosure, reproduction, or dissemination) by persons other than the intended recipient's) is prohibited. If you receive this e-mail in error, please notify the sender by phone or email immediately and delete it!</font></span></p>
</div>
</span></font></span></font></div>
</div>
<div style="FONT-FAMILY: Times New Roman; COLOR: #000000; FONT-SIZE: 16px">
<hr tabindex="-1">
<div style="DIRECTION: ltr" id="divRpF836534"><font color="#000000" size="2" face="Tahoma"><b>From:</b> and k [not4mad@gmail.com]<br>
<b>Sent:</b> Wednesday, January 23, 2013 7:31 PM<br>
<b>To:</b> The Pacemaker cluster resource manager<br>
<b>Subject:</b> Re: [Pacemaker] [PACEMAKER] Why cant't migrate group resource with collation in drbd resource<br>
</font><br>
</div>
<div></div>
<div>
<div dir="ltr"><br>
<div><span style="FONT-FAMILY: arial,sans-serif; WHITE-SPACE: nowrap; FONT-SIZE: 13px"><br>
</span></div>
<div><span style="FONT-FAMILY: arial,sans-serif; WHITE-SPACE: nowrap; FONT-SIZE: 13px"><br>
</span></div>
<div class="gmail_extra"><br>
<br>
<div class="gmail_quote">2013/1/23 emmanuel segura <span dir="ltr"><<a href="mailto:emi2fast@gmail.com" target="_blank">emi2fast@gmail.com</a>></span><br>
<blockquote style="BORDER-LEFT: rgb(204,204,204) 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote">
Ummm<br>
<br>
Fist the IP-AND-FS? but what happen if the FS is on drbd?<br>
</blockquote>
<div><br>
</div>
<div><span style="FONT-FAMILY: arial,sans-serif; WHITE-SPACE: nowrap; FONT-SIZE: 13px">Emmanuel, you are right, filesystem is on top of drbd device, so i cant run that group before drbd promote.</span><br>
<div><span style="FONT-FAMILY: arial,sans-serif; WHITE-SPACE: nowrap; FONT-SIZE: 13px"><br>
</span></div>
<div><font face="arial, sans-serif"><span style="WHITE-SPACE: nowrap">I also noticed that, I can migrate it by force with use:</span></font><br>
<br>
<font face="arial, sans-serif"><span style="WHITE-SPACE: nowrap">crm_resource -M -f -r fs_r1 -H drbd02</span></font><br>
</div>
</div>
<div><font face="arial, sans-serif"><span style="WHITE-SPACE: nowrap"><br>
</span></font></div>
<div><font face="arial, sans-serif"><span style="WHITE-SPACE: nowrap">master is promoted correctly, and group is succesfully migrated.</span></font></div>
<div><font face="arial, sans-serif"><span style="WHITE-SPACE: nowrap"><br>
</span></font></div>
<div><font face="arial, sans-serif"><span style="WHITE-SPACE: nowrap"><br>
</span></font></div>
<div><font face="arial, sans-serif"><span style="WHITE-SPACE: nowrap">But i wonder why it doesn't work without force (-f) parameter ?? Any idea ?</span></font></div>
<div> </div>
<div><br>
</div>
<div><br>
</div>
<blockquote style="BORDER-LEFT: rgb(204,204,204) 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote">
<br>
Thanks<br>
<br>
<div class="gmail_quote">
<div>
<div class="h5">2013/1/23 Kashif Jawed Siddiqui <span dir="ltr"><<a href="mailto:kashifjs@huawei.com" target="_blank">kashifjs@huawei.com</a>></span><br>
</div>
</div>
<blockquote style="BORDER-LEFT: rgb(204,204,204) 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote">
<div>
<div class="h5">
<div>
<div style="FONT-FAMILY: Tahoma; DIRECTION: ltr; FONT-SIZE: 10pt">
<p>You must change the order </p>
<p> </p>
<div>#order DRBD_BEF_FS inf: ms_drbd:promote IP-AND-FS:start   </div>
<div> </div>
<div>
<div>order DRBD_BEF_FS inf: IP-AND-FS:start ms_drbd:promote    </div>
<div> </div>
<div>//First start IP-AND-FS, only then promote ms_drbd</div>
</div>
<div>
<p> </p>
<div style="FONT-FAMILY: Tahoma; FONT-SIZE: 13px">
<div style="MARGIN: 0px"><font face="Calibri,sans-serif"><span style="FONT-SIZE: 11pt">Regards,</span></font></div>
<div style="MARGIN: 0px"><font face="Calibri,sans-serif"><span style="FONT-SIZE: 11pt"><font color="black" face="Arial,sans-serif"><span style="FONT-SIZE: 10pt">Kashif Jawed Siddiqui<br>
</span></font></span></font></div>
<font face="Calibri,sans-serif"><span style="FONT-SIZE: 11pt">
<div style="MARGIN: 0px"> </div>
<div style="MARGIN: 0px"><font color="gray" size="1" face="Arial,sans-serif"><span style="FONT-SIZE: 7.5pt">
<p style="MARGIN: 0in 0in 0pt"><span style="FONT-FAMILY: Arial,sans-serif; FONT-SIZE: 10pt"><font color="#000000">***************************************************************************************<br>
This e-mail and attachments contain confidential information from HUAWEI, which is intended only for the person or entity whose address is listed above. Any use of the information contained herein in any way (including, but not limited to, total or partial
 disclosure, reproduction, or dissemination) by persons other than the intended recipient's) is prohibited. If you receive this e-mail in error, please notify the sender by phone or email immediately and delete it!</font></span></p>
</span></font></div>
</span></font></div>
</div>
<div style="FONT-FAMILY: 'Times New Roman'; FONT-SIZE: 16px">
<hr>
<div style="DIRECTION: ltr"><font color="#000000" face="Tahoma"><b>From:</b> and k [<a href="mailto:not4mad@gmail.com" target="_blank">not4mad@gmail.com</a>]<br>
<b>Sent:</b> Wednesday, January 23, 2013 4:34 PM<br>
<b>To:</b> <a href="mailto:pacemaker@oss.clusterlabs.org" target="_blank">pacemaker@oss.clusterlabs.org</a><br>
<b>Subject:</b> [Pacemaker] [PACEMAKER] Why cant't migrate group resource with collation in drbd resource<br>
</font><br>
</div>
<div></div>
<div>
<div dir="ltr">Hello Everybody,
<div><br>
</div>
<div>I've got a problem (but I am not quite sure if it is not a feature in pacemaker ) that's why I decided to write on that mailing list.</div>
<div><br>
</div>
<div>It comes about migrate resource with collation in drbd resource.</div>
<div><br>
</div>
<div>I've got group including virtual IP and filesystem which is collated with ms resource drbd in mster-slave configuration.</div>
<div><br>
</div>
<div>
<div>============</div>
<div>Last updated: Wed Jan 23 03:40:55 2013</div>
<div>Stack: openais</div>
<div>Current DC: drbd01 - partition with quorum</div>
<div>Version: 1.0.9-74392a28b7f31d7ddc86689598bd23114f58978b</div>
<div>============</div>
<div><br>
</div>
<div>Online: [ drbd01 drbd02 ]</div>
<div><br>
</div>
<div> Master/Slave Set: ms_drbd</div>
<div>     Masters: [ drbd01 ]</div>
<div>     Slaves: [ drbd02 ]</div>
<div> Resource Group: IP-AND-FS</div>
<div>     fs_r1      (ocf::heartbeat:Filesystem):    Started drbd01</div>
<div>     VIRTUAL-IP (ocf::heartbeat:IPaddr):        Started drbd01</div>
</div>
<div><br>
</div>
<div>I would like to migrate that group manually to another node which is slave. So i type in: crm resource migrate IP-AND-FS drbd02</div>
<div><br>
</div>
<div>after that configuration include additional line:</div>
<div><br>
</div>
<div>location cli-prefer-IP-AND-FS IP-AND-FS \</div>
<div>        rule $id="cli-prefer-rule-IP-AND-FS" inf: #uname eq drbd02</div>
<div><br>
</div>
<div>and in logs i see:<br>
<br>
<div>Jan 23 11:30:12 drbd02 cibadmin: [1126]: info: Invoked: cibadmin -Ql -o resources</div>
<div>Jan 23 11:30:12 drbd02 cibadmin: [1129]: info: Invoked: cibadmin -Ql -o nodes</div>
<div>Jan 23 11:30:12 drbd02 cibadmin: [1131]: info: Invoked: cibadmin -Ql -o resources</div>
<div>Jan 23 11:30:12 drbd02 cibadmin: [1133]: info: Invoked: cibadmin -Ql -o nodes</div>
<div>Jan 23 11:30:12 drbd02 cibadmin: [1135]: info: Invoked: cibadmin -Ql -o resources</div>
<div>Jan 23 11:30:12 drbd02 cibadmin: [1137]: info: Invoked: cibadmin -Ql -o nodes</div>
<div>Jan 23 11:30:14 drbd02 cibadmin: [1166]: info: Invoked: cibadmin -Ql -o resources</div>
<div>Jan 23 11:30:14 drbd02 cibadmin: [1168]: info: Invoked: cibadmin -Ql -o nodes</div>
<div>Jan 23 11:30:14 drbd02 cibadmin: [1170]: info: Invoked: cibadmin -Ql -o resources</div>
<div>Jan 23 11:30:14 drbd02 cibadmin: [1172]: info: Invoked: cibadmin -Ql -o nodes</div>
<div>Jan 23 11:30:16 drbd02 cibadmin: [1174]: info: Invoked: cibadmin -Ql -o resources</div>
<div>Jan 23 11:30:16 drbd02 cibadmin: [1176]: info: Invoked: cibadmin -Ql -o nodes</div>
<div>Jan 23 11:30:16 drbd02 cibadmin: [1178]: info: Invoked: cibadmin -Ql -o resources</div>
<div>Jan 23 11:30:16 drbd02 cibadmin: [1180]: info: Invoked: cibadmin -Ql -o nodes</div>
<div>Jan 23 11:30:40 drbd02 cibadmin: [1211]: info: Invoked: cibadmin -Ql -o nodes</div>
<div>Jan 23 11:30:40 drbd02 crm_resource: [1213]: info: Invoked: crm_resource -M -r IP-AND-FS --node=drbd02</div>
<div>Jan 23 11:30:40 drbd02 cib: [1214]: info: write_cib_contents: Archived previous version as /var/lib/heartbeat/crm/cib-73.raw</div>
<div>Jan 23 11:30:40 drbd02 cib: [1214]: info: write_cib_contents: Wrote version 0.225.0 of the CIB to disk (digest: 166251193cbe1e0b9314ab07358accca)</div>
<div>Jan 23 11:30:40 drbd02 cib: [1214]: info: retrieveCib: Reading cluster configuration from: /var/lib/heartbeat/crm/cib.tk72Ft (digest: /var/lib/heartbeat/crm/cib.hF2UsS)</div>
<div>Jan 23 11:30:44 drbd02 cib: [30098]: info: cib_stats: Processed 153 operations (1437.00us average, 0% utilization) in the last 10min</div>
<div><br>
</div>
<div>but nothing happened  resource group is still active on drbd01 node, as well as there was no new master promotion. </div>
<div><br>
</div>
<div>Shouldn't pacemaker automatically promote second node to master and move my resource group ? </div>
<div><br>
</div>
<div><br>
</div>
<div>Below is my test configuration, i will be appreciate for help:</div>
<div><br>
</div>
<div>
<div>crm(live)# configure show</div>
<div>node drbd01 \</div>
<div>        attributes standby="off"</div>
<div>node drbd02 \</div>
<div>        attributes standby="off"</div>
<div>primitive VIRTUAL-IP ocf:heartbeat:IPaddr \</div>
<div>        params ip="10.11.11.111"</div>
<div>primitive drbd ocf:linbit:drbd \</div>
<div>        params drbd_resource="r1" \</div>
<div>        op start interval="0" timeout="240" \</div>
<div>        op stop interval="0" timeout="100" \</div>
<div>        op monitor interval="59s" role="Master" timeout="30s" \</div>
<div>        op monitor interval="60s" role="Slave" timeout="30s"</div>
<div>primitive fs_r1 ocf:heartbeat:Filesystem \</div>
<div>        params device="/dev/drbd1" directory="/mnt" fstype="ext3" \</div>
<div>        op start interval="0" timeout="60" \</div>
<div>        op stop interval="0" timeout="120" \</div>
<div>        meta allow-migrate="true"</div>
<div>group IP-AND-FS fs_r1 VIRTUAL-IP \</div>
<div>        meta target-role="Started"</div>
<div>ms ms_drbd drbd \</div>
<div>        meta master-node-max="1" clone-max="2" clone-node-max="1" globally-unique="false" notify="true" target-role="Master"</div>
<div>location cli-prefer-IP-AND-FS IP-AND-FS \</div>
<div>        rule $id="cli-prefer-rule-IP-AND-FS" inf: #uname eq drbd02</div>
<div>colocation FS_WITH_DRBD inf: IP-AND-FS ms_drbd:Master</div>
<div>order DRBD_BEF_FS inf: ms_drbd:promote IP-AND-FS:start</div>
<div>property $id="cib-bootstrap-options" \</div>
<div>        dc-version="1.0.9-74392a28b7f31d7ddc86689598bd23114f58978b" \</div>
<div>        cluster-infrastructure="openais" \</div>
<div>        expected-quorum-votes="2" \</div>
<div>        stonith-enabled="false" \</div>
<div>        no-quorum-policy="ignore" \</div>
<div>        last-lrm-refresh="1358868655" \</div>
<div>        default-resource-stickiness="1"</div>
<div><br>
</div>
<div>Regards</div>
<div>Andrew</div>
</div>
<div><br>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<br>
</div>
</div>
_______________________________________________<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/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>
<span><font color="#888888"><br>
<br clear="all">
<br>
-- <br>
esta es mi vida e me la vivo hasta que dios quiera </font></span><br>
_______________________________________________<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/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>
</div>
</div>
</div>
</div>
</div>
</body>
</html>