<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>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 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"> </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="divRpF984733"><font color="#000000" size="2" face="Tahoma"><b>From:</b> and k [not4mad@gmail.com]<br>
<b>Sent:</b> Wednesday, January 23, 2013 4:34 PM<br>
<b>To:</b> pacemaker@oss.clusterlabs.org<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>
</body>
</html>