[Drbd-dev] drbd.ocf Split-Brain detection patch

Lars Ellenberg lars.ellenberg at linbit.com
Mon Nov 15 18:03:13 CET 2010


On Mon, Nov 15, 2010 at 03:55:46PM +0100, Uwe Grawert wrote:
> 
> Zitat von Lars Ellenberg <lars.ellenberg at linbit.com>:
> 
> >>--- /usr/lib/ocf/resource.d/linbit/drbd	2010-10-28 14:58:05.000000000 +0200
> >>+++ drbd.split-brain.patch	2010-11-15 14:28:46.000000000 +0100
> >>@@ -405,6 +405,9 @@
> >> 	case "${DRBD_ROLE_LOCAL}" in
> >> 	Primary)
> >> 		rc=$OCF_RUNNING_MASTER
> >>+		# This Node is Primary but StandAlone, there must be a Split-Brain
> >>+		[[ $OCF_RESKEY_CRM_meta_master_max = 2 && $DRBD_CSTATE =
> >>"StandAlone" ]] \
> >>+		&& rc=$OCF_ERR_CONFIGURED
> >
> >If only it was so easy.  It it not.
> >There are other ways to end up in StandAlone.
> 
> Ok. Meaning there is no way to determine a Split-Brain at a central
> point like this? This one is off course what I experienced while
> setting up a cluster.

Not really, no.
Maybe you can use your "split-brain" notification handler to do it?


-- 
: Lars Ellenberg
: LINBIT | Your Way to High Availability
: DRBD/HA support and consulting http://www.linbit.com

DRBD® and LINBIT® are registered trademarks of LINBIT, Austria.


More information about the drbd-dev mailing list