[DRBD-user] FAQ: Reconnecting after a temporary primary node failure

Mauricio Tavares raubvogel at gmail.com
Tue Mar 8 15:13:10 CET 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, Mar 8, 2011 at 9:04 AM, Felix Frank <ff at mpexnet.de> wrote:
>>       Oh. When you say reconnect do you mean reconnecting ethernet or
>> drdbadm reconnect? If the former, too late and I will have to do it
>> all again. If the latter, I have not done it yet so I should be good.
>> In any case, here is the output with db1's ethernet cable reconnected:
>
> No, you're right. I was referring to drbdadm connect.
>
[snip]
>> So, from what you said, I *should* have
>>
>> AD47F2C0FCB0CE1B
>> AD47F2C0FCB0CE1A
>>
>> the same, but as you can see the last character is different. Loads of fun.
>
> That actually looks right. I'm don't clearly remember why the LSB is
> always set on the Primary and never on the Secondary, but those actually
> match.
>
> Performing a connect on the Standalone node now should not result in
> split-brain.
>
      Right you are! I just had to connect db1 back into the mess and
all was well.

root at db1:~# drbdadm connect r0
root at db1:~# drbdadm role r0
Primary/Secondary
root at db1:~# cat /proc/drbd
version: 8.3.7 (api:88/proto:86-91)
GIT-hash: ea9e28dbff98e331a62bcbcc63a6135808fe2917 build by root at db1,
2011-03-07 15:01:39
 0: cs:Connected ro:Primary/Secondary ds:UpToDate/UpToDate C r----
    ns:0 nr:0 dw:241020 dr:56357 al:36 bm:31 lo:0 pe:0 ua:0 ap:0 ep:1 wo:b oos:0
root at db1:~#

root at db2:~# drbdadm role r0
Secondary/Primary
root at db2:~# cat /proc/drbd
version: 8.3.7 (api:88/proto:86-91)
GIT-hash: ea9e28dbff98e331a62bcbcc63a6135808fe2917 build by root at db2,
2011-03-07 10:22:02
 0: cs:Connected ro:Secondary/Primary ds:UpToDate/UpToDate C r----
    ns:0 nr:18596 dw:383134 dr:271064 al:8 bm:65 lo:0 pe:0 ua:0 ap:0
ep:1 wo:b oos:0
root at db2:~#

Thanks a lot! Now onwards to a full crash (as in have to rebuild db1).

> Cheers,
> Felix
>



More information about the drbd-user mailing list