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

Lars Ellenberg lars.ellenberg at linbit.com
Tue Jun 21 23:55:26 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 Tue, Jun 21, 2011 at 10:13:06AM -0600, Pete Ashdown wrote:
> If a system properly shuts down drbd upon shutdown, then starts it up upon
> reboot, I don't understand how there could be pending changes on it. 
> Shouldn't it just sync up to its peer and go?  Instead I get split-brain
> every time I reboot a node.  What settings are required to just go
> secondary, connect, sync, and then go primary upon reboot?

First make "unused" (umount, typically).
Then make secondary.

Only then disconnect.

If you disconnect (by for example shutting down the network)
while both are still in Primary role,
you get what you observe.

Double check the kill script order,
or equivalent.

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



More information about the drbd-user mailing list