[Pacemaker] Decreasing failover time when running DRBD+OCFS2+XEN in dual primary mode
kamal kishi
kamal.kishi at gmail.com
Mon Jun 16 03:25:38 UTC 2014
Sorry for the delayed reply Alexis,
here's my DRBD conf
global { usage-count no; }
common {
syncer {
rate 15M;
csums-alg sha1;
al-extents 809;
verify-alg sha1;
} }
resource r0 {
protocol C;
startup {
degr-wfc-timeout 30;
wfc-timeout 30;
become-primary-on both;
}
disk {
fencing resource-and-stonith;
on-io-error detach;
}
handlers {
fence-peer "/usr/lib/drbd/crm-fence-peer.sh";
after-resync-target "/usr/lib/drbd/crm-unfence-peer.sh";
outdate-peer "/usr/lib/drbd/outdate-peer.sh";
split-brain "/usr/lib/drbd/notify-split-brain.sh root";
pri-on-incon-degr "/usr/lib/drbd/notify-pri-on-incon-degr.sh root";
pri-lost-after-sb "/usr/lib/drbd/notify-pri-lost-after-sb.sh root";
local-io-error "/usr/lib/drbd/notify-io-error.sh root";
}
net {
allow-two-primaries;
cram-hmac-alg sha1;
shared-secret "kalki";
after-sb-0pri discard-zero-changes;
after-sb-1pri discard-secondary;
after-sb-2pri disconnect;
rr-conflict disconnect;
}
on server1 {
device /dev/drbd0;
disk /dev/sda3;
address 192.168.0.92:7788;
meta-disk internal;
}
on server2 {
device /dev/drbd0;
disk /dev/sda3;
address 192.168.0.93:7788;
meta-disk internal;
}}
And I changed the OCFS2 configuration (Threshold=16 and idle=10secs time)
which reduced my switch over time to 55secs when a primary node goes down.
Not sure if this is correct, but it works :)
Let know if anyone knows a better solution for reducing the switch over
time.
On Fri, Jun 13, 2014 at 1:45 PM, Alexis de BRUYN <
alexis.mailinglist at de-bruyn.fr> wrote:
> On 13.06.2014 05:25, kamal kishi wrote:
> > And Alexis, I'm not facing any issue while putting node to standby mode.
> > I'm using DRBD 8.3.11 (apt-get install drbd8-utils=2:8.3.11-0ubuntu1)
> > Had to force the download to particular version as the current
> > download/patch is not compatible with pacemaker.
> > You too try to install 8.3.11 and check once, all the best
> >
> Thanks Kamal for your answer. Can you show me your drbd conf please.
>
> --
> Alexis de BRUYN
>
> _______________________________________________
> 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
>
--
Regards,
Kamal Kishore B V
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.clusterlabs.org/pipermail/pacemaker/attachments/20140616/e730811f/attachment.htm>
More information about the Pacemaker
mailing list