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

Uwe Grawert grawert at b1-systems.de
Tue Nov 16 10:33:31 CET 2010


Zitat von Lars Ellenberg <lars.ellenberg at linbit.com>:

> 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?

That is possible. The intention was to show in the crm status that  
there is a problem. This is especially helpful if you`re new to DRBD.  
But if only one of several possible situations can be recognized, the  
patch doesn't make much sense.

-- 
Uwe Grawert
Linux / Unix Consultant & Trainer
Tel.: +49 151 12051100
Mail: grawert at b1-systems.de

B1 Systems GmbH
Osterfeldstraße 7 / 85088 Vohburg / http://www.b1-systems.de
GF: Ralph Dehner / Unternehmenssitz: Vohburg / AG: Ingolstadt,HRB 3537





More information about the drbd-dev mailing list