[DRBD-user] automatic recovery, 2 successively drbd_sync_handshake with different results

Maros Timko timkom at gmail.com
Tue May 25 22:54:01 CEST 2010

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


>
> Hello,
>
> I have 2 nodes with a Heartbeat/DRBD configuration.
> (Node1: primary, the hostname is "bleu", Node2: secondary, the
> hostname is "rocamadour").
>
> I want to check the automatic recovery.
> my configuration is:
>                after-sb-0pri discard-least-changes;
>                after-sb-1pri discard-secondary;
>                after-sb-2pri call-pri-lost-after-sb;

What is your pri-lost-after-sb doing? Rebooting the node? Which one?

>
> I disconnect the network wire from N2.
> N1 and N2 become primaries.
> I write some data on N1, I write MORE data on N2.
>
> I connect the network wire of N2.
> N1 immediately reboots.
> And after the boot of N1, data is synchronised from N1 to N2 (bad!!,
> there are more changes on N2)
>
> just before the boot of N1:
> May 25 16:38:26 rocamadour kernel: [ 1785.500483] block drbd1:
> drbd_sync_handshake:
> May 25 16:38:26 rocamadour kernel: [ 1785.500490] block drbd1: self
> 3E097AF02C8F65F1:106921FD4287CF02:D202FB3C36D5F660:59248EB25AF9FA1B
> bits:170465 flags:0
> May 25 16:38:26 rocamadour kernel: [ 1785.500496] block drbd1: peer
> 7BF8153619974429:106921FD4287CF03:D202FB3C36D5F660:59248EB25AF9FA1B
> bits:227 flags:0
> May 25 16:38:26 rocamadour kernel: [ 1785.500502] block drbd1:
> uuid_compare()=100 by rule 90
> May 25 16:38:26 rocamadour kernel: [ 1785.500507] block drbd1:
> Split-Brain detected, 2 primaries, automatically solved. Sync from
> this node

We have 2 primaries here

>
> After the boot of N1:
> May 25 16:38:26 rocamadour kernel: [ 1785.500483] block drbd1:
> drbd_sync_handshake:
> May 25 16:38:58 rocamadour kernel: [ 1817.216740] block drbd1: self
> 3E097AF02C8F65F0:106921FD4287CF02:D202FB3C36D5F660:59248EB25AF9FA1B
> bits:170475 flags:0
> May 25 16:38:58 rocamadour kernel: [ 1817.216746] block drbd1: peer
> 7BF8153619974428:106921FD4287CF03:D202FB3C36D5F660:59248EB25AF9FA1B
> bits:263168 flags:2
> May 25 16:38:58 rocamadour kernel: [ 1817.216751] block drbd1:
> uuid_compare()=100 by rule 90
> May 25 16:38:58 rocamadour kernel: [ 1817.216756] block drbd1:
> Split-Brain detected, 0 primaries, automatically solved. Sync from
> peer node
>

We have 0 primaries here. You mentined reboot of one node. Who demoted
the other one?

Tino



More information about the drbd-user mailing list