[Pacemaker] Decreasing failover time when running DRBD+OCFS2+XEN in dual primary mode
Alexis de BRUYN
alexis.mailinglist at de-bruyn.fr
Thu Jun 12 11:52:19 UTC 2014
Hi Kamal,
I will not answer to your question, but actually I am working on a
similar configuration, and I have an issue as described on the following
thread [1].
Long story short, when I standby a node (crm node standby) then put it
online again my drbd device goes into a split-brain state.
Have you this issue? Which distrib and pacemaker/corosync/drbd versions
do you use?
Regards,
[1]: http://oss.clusterlabs.org/pipermail/pacemaker/2014-June/021937.html
On 12.06.2014 13:15, kamal kishi wrote:
> Hi All,
>
> This might be a basic question but I'm not sure whats taking time for
> failover switching.
> Hope anyone can figure it out.
>
> Scenario -
> Pacemaker running DRBD(Dual primary mode)+OCFS2+XEN for Virtual windows
> machine
>
> Pacemaker startup starts -
> DRBD -> OCFS2 -> XEN
> Lets consider under Server1 - DRBD, OCFS2(clone) and XEN are started
>
> Server2 - DRBD, OCFS2(clone) are started
>
> Now if Server1 power is OFF
>
> The XEN resource which was running under Server1 should be failed over
> to Server2.
>
> In my case, its taking almost 90 to 110 seconds to do this.
>
> Can anyone suggest me ways to reduce it to within 30 to 40 seconds
>
> My pacemaker configuration is -
> crm configure
> property no-quorum-policy=ignore
> property stonith-enabled=false
> property default-resource-stickiness=1000
>
> primitive resDRBDr1 ocf:linbit:drbd \
> params drbd_resource="r0" \
> op start interval="0" timeout="240s" \
> op stop interval="0" timeout="100s" \
> op monitor interval="20s" role="Master" timeout="240s" \
> op monitor interval="30s" role="Slave" timeout="240s" \
> meta migration-threshold="3" failure-timeout="60s"
> primitive resOCFS2r1 ocf:heartbeat:Filesystem \
> params device="/dev/drbd/by-res/r0" directory="/cluster" fstype="ocfs2" \
> op monitor interval="10s" timeout="60s" \
> op start interval="0" timeout="90s" \
> op stop interval="0" timeout="60s" \
> meta migration-threshold="3" failure-timeout="60s"
> primitive resXen1 ocf:heartbeat:Xen \
> params xmfile="/home/cluster/xen/win7.cfg" name="xenwin7" \
> op monitor interval="20s" timeout="60s" \
> op start interval="0" timeout="90s" \
> op stop interval="0" timeout="60s" \
> op migrate_from interval="0" timeout="120s" \
> op migrate_to interval="0" timeout="120s" \
> meta allow-migrate="true" target-role="started"
>
> ms msDRBDr1 resDRBDr1 \
> meta notify="true" master-max="2" interleave="true" target-role="Started"
> clone cloOCFS2r1 resOCFS2r1 \
> meta interleave="true" ordered="true" target-role="Started"
>
> colocation colOCFS12-with-DRBDrMaster inf: cloOCFS2r1 msDRBDr1:Master
> colocation colXen-with-OCFSr1 inf: resXen1 cloOCFS2r1
> order ordDRBD-before-OCFSr1 inf: msDRBDr1:promote cloOCFS2r1:start
> order ordOCFS2r1-before-Xen1 inf: cloOCFS2r1:start resXen1:start
>
> commit
> bye
>
> --
> Regards,
> Kamal Kishore B V
>
>
>
> _______________________________________________
> Pacemaker mailing list: Pacemaker at oss.clusterlabs.org
> http://oss.clusterlabs.org/mailman/listinfo/pacemaker
>
> Project Home: http://www.clusterlabs.org
> Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
> Bugs: http://bugs.clusterlabs.org
--
Alexis de BRUYN
More information about the Pacemaker
mailing list