<div dir="ltr"><div><div><div><div>Hi Andrew, <br></div>Checked the logs and I felt OCFS2 taking time to recover, can anyone please verify my log and confirm if I'm correct.<br><br></div>And if OCFS2 is the reason for delay in failover may I know a way to reduce that delay caused.<br>
<br></div>Attached is my syslog and pacemaker configuration<br><br></div>Looking forward for a solution <br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Jun 13, 2014 at 8:55 AM, kamal kishi <span dir="ltr"><<a href="mailto:kamal.kishi@gmail.com" target="_blank">kamal.kishi@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div><div><div>Fine Andrew, will check it out but does the timeouts provided for pacemaker affect this??<br>
</div>Which part of the time configuration will be considered by pacemaker to decide if the other node is actually down and the resources should be taken over by it.<br>
<br></div>And Alexis, I'm not facing any issue while putting node to standby mode.<br></div>I'm using DRBD 8.3.11 (apt-get install drbd8-utils=2:8.3.11-0ubuntu1)<br></div>Had to force the download to particular version as the current download/patch is not compatible with pacemaker.<br>
</div>You too try to install 8.3.11 and check once, all the best<br></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Jun 13, 2014 at 5:22 AM, Andrew Beekhof <span dir="ltr"><<a href="mailto:andrew@beekhof.net" target="_blank">andrew@beekhof.net</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><br>
On 12 Jun 2014, at 9:15 pm, kamal kishi <<a href="mailto:kamal.kishi@gmail.com" target="_blank">kamal.kishi@gmail.com</a>> wrote:<br>
<br>
> Hi All,<br>
><br>
> This might be a basic question but I'm not sure whats taking time for failover switching.<br>
> Hope anyone can figure it out.<br>
<br>
</div>How about looking in the logs and seeing when the various stop/start actions occur and which ones take the longest?<br>
<div><div><br>
><br>
> Scenario -<br>
> Pacemaker running DRBD(Dual primary mode)+OCFS2+XEN for Virtual windows machine<br>
><br>
> Pacemaker startup starts -<br>
> DRBD -> OCFS2 -> XEN<br>
> Lets consider under Server1 - DRBD, OCFS2(clone) and XEN are started<br>
><br>
> Server2 - DRBD, OCFS2(clone) are started<br>
><br>
> Now if Server1 power is OFF<br>
><br>
> The XEN resource which was running under Server1 should be failed over to Server2.<br>
><br>
> In my case, its taking almost 90 to 110 seconds to do this.<br>
><br>
> Can anyone suggest me ways to reduce it to within 30 to 40 seconds<br>
><br>
> My pacemaker configuration is -<br>
> crm configure<br>
> property no-quorum-policy=ignore<br>
> property stonith-enabled=false<br>
> property default-resource-stickiness=1000<br>
><br>
> primitive resDRBDr1 ocf:linbit:drbd \<br>
> params drbd_resource="r0" \<br>
> op start interval="0" timeout="240s" \<br>
> op stop interval="0" timeout="100s" \<br>
> op monitor interval="20s" role="Master" timeout="240s" \<br>
> op monitor interval="30s" role="Slave" timeout="240s" \<br>
> meta migration-threshold="3" failure-timeout="60s"<br>
> primitive resOCFS2r1 ocf:heartbeat:Filesystem \<br>
> params device="/dev/drbd/by-res/r0" directory="/cluster" fstype="ocfs2" \<br>
> op monitor interval="10s" timeout="60s" \<br>
> op start interval="0" timeout="90s" \<br>
> op stop interval="0" timeout="60s" \<br>
> meta migration-threshold="3" failure-timeout="60s"<br>
> primitive resXen1 ocf:heartbeat:Xen \<br>
> params xmfile="/home/cluster/xen/win7.cfg" name="xenwin7" \<br>
> op monitor interval="20s" timeout="60s" \<br>
> op start interval="0" timeout="90s" \<br>
> op stop interval="0" timeout="60s" \<br>
> op migrate_from interval="0" timeout="120s" \<br>
> op migrate_to interval="0" timeout="120s" \<br>
> meta allow-migrate="true" target-role="started"<br>
><br>
> ms msDRBDr1 resDRBDr1 \<br>
> meta notify="true" master-max="2" interleave="true" target-role="Started"<br>
> clone cloOCFS2r1 resOCFS2r1 \<br>
> meta interleave="true" ordered="true" target-role="Started"<br>
><br>
> colocation colOCFS12-with-DRBDrMaster inf: cloOCFS2r1 msDRBDr1:Master<br>
> colocation colXen-with-OCFSr1 inf: resXen1 cloOCFS2r1<br>
> order ordDRBD-before-OCFSr1 inf: msDRBDr1:promote cloOCFS2r1:start<br>
> order ordOCFS2r1-before-Xen1 inf: cloOCFS2r1:start resXen1:start<br>
><br>
> commit<br>
> bye<br>
><br>
> --<br>
> Regards,<br>
> Kamal Kishore B V<br>
><br>
</div></div><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>
</div></div><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><br clear="all"><br>-- <br>Regards,<br>Kamal Kishore B V<br>
</div>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Regards,<br>Kamal Kishore B V<br>
</div>