[DRBD-user] Manually resolve split brain situation on 8.4.2 not working for me

Joeri Vanthienen mail at joerivanthienen.be
Thu Sep 13 09:31:08 CEST 2012

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


I have an issue with resolving the following situation:
------------------------------------------------------------
alpha:~ # cat /proc/drbd
version: 8.4.2 (api:1/proto:86-101)
GIT-hash: 7ad5f850d711223713d6dcadc3dd48860321070c build by
root at alpha, 2012-09-11 09:29:07

 1: cs:StandAlone ro:Secondary/Unknown ds:UpToDate/DUnknown   r-----
    ns:0 nr:0 dw:0 dr:0 al:0 bm:0 lo:0 pe:0 ua:0 ap:0 ep:1 wo:f oos:8
 2: cs:StandAlone ro:Secondary/Unknown ds:UpToDate/DUnknown   r-----
    ns:0 nr:0 dw:0 dr:0 al:0 bm:0 lo:0 pe:0 ua:0 ap:0 ep:1 wo:f oos:0

beta:~ # cat /proc/drbd
version: 8.4.2 (api:1/proto:86-101)
GIT-hash: 7ad5f850d711223713d6dcadc3dd48860321070c build by roo
         1 09:42:37

 1: cs:StandAlone ro:Primary/Unknown ds:UpToDate/DUnknown   r--
    ns:0 nr:0 dw:0 dr:664 al:0 bm:0 lo:0 pe:0 ua:0 ap:0 ep:1 wo
 2: cs:StandAlone ro:Primary/Unknown ds:UpToDate/DUnknown   r--
    ns:0 nr:0 dw:0 dr:664 al:0 bm:0 lo:0 pe:0 ua:0 ap:0 ep:1 wo
------------------------------------------------------------
Following the steps on
http://www.drbd.org/users-guide/s-resolve-split-brain.html

alpha:~ # drbdadm disconnect r0
r0: Failure: (162) Invalid configuration request
additional info from kernel:
unknown connection
Command 'drbdsetup disconnect ipv4:192.168.250.16:7789
ipv4:192.168.250.14:7789' terminated with exit code 10
alpha:~ # drbdadm secondary r0
alpha:~ # drbdadm connect --discard-my-data r0
Command 'drbdsetup connect r0 ipv4:192.168.250.16:7789
ipv4:192.168.250.14:7789 --protocol=C --verify-alg=sha1
--cram-hmac-alg=sha1
--shared-secret=8a6cxxxxxxxxxxxxxxxxxxxxx49xxxxxxxxfb3
--after-sb-0pri=discard-zero-changes --after-sb-1pri=discard-secondary
--after-sb-2pri=consensus --rr-conflict=disconnect --discard-my-data'
terminated with exit code 20


Why do I get unknown connection?

configuration (same on both nodes)
------------------------------------------------------------
alpha:~ # cat /etc/drbd.d/r0.res
resource r0 {

protocol C;
    syncer {
         verify-alg sha1;
     }
    net {
        cram-hmac-alg sha1;
        shared-secret "8a6cxxxxxxxxxxxxxxxxxxxxx49xxxxxxxxfb3";
        after-sb-0pri discard-zero-changes;
        after-sb-1pri discard-secondary;
        after-sb-2pri consensus;
        rr-conflict disconnect;
    }


volume 0 {
device /dev/drbd1;
disk /dev/xvdb;
meta-disk internal;
}
volume 1 {
 device /dev/drbd2;
 disk /dev/xvdc;
 meta-disk internal;
}
on alpha {
address 192.168.250.16:7789;
}
on beta {
address 192.168.250.14:7789;
}
}

network config
------------------------------------------------------------
alpha:~ # ifconfig eth0 | grep "inet addr:"
          inet addr:192.168.250.16  Bcast:192.168.250.255  Mask:255.255.255.0


beta:~ # ifconfig eth0 | grep "inet addr:"
          inet addr:192.168.250.14  Bcast:192.168.250.255  Mask:255.255.255.0



More information about the drbd-user mailing list