[DRBD-user] Dual-primary split-brain recovery after reboot

Pete Ashdown pashdown at xmission.com
Fri Jun 24 20:10:14 CEST 2011

Note: "permalinks" may not be as permanent as we would like,
direct links of old sources may well be a few messages off.


On 06/24/2011 11:38 AM, Lars Ellenberg wrote:
>> Thanks, I actually did read that in the User's Guide, but where I'm
>> confused is that the Ubuntu 10.04 init script has this line in it:
>>
>>     $DRBDADM sh-b-pri all # Become primary if configured
>>
>> So if that is there, is all that I need is to insert a "$DRBDADM secondary
>> all" in the stop section?
> Certainly not.
> I dare say the DRBD init script is fine ;-)
>
> There was something about the correct _order_ of actions
> in my original reply.
>
> If you stop things in the wrong order,
> then that will lead to what is known as "DRBD split brain".
>
> Of course, if after reboot, you start things in the wrong order,
> like promoting to Primary before connecting to the peer,
> that will do the same.
>
> You need to get the *order* of the start and stop actions right.

Is getting the order of the start/stop actions the responsibility of an
init script? Is the Ubuntu start/stop sequence numbering wrong?  All I'm
trying to do is have recovery automatic after a reboot, because once clvm
and kvm get running on top of drbd, it is a lot harder to recover.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 254 bytes
Desc: OpenPGP digital signature
URL: <http://lists.linbit.com/pipermail/drbd-user/attachments/20110624/b131bb7e/attachment.pgp>


More information about the drbd-user mailing list