[DRBD-user] primary on standalone always

Luiz Gustavo (gugabsd) luizgustavo.sc at gmail.com
Tue Nov 14 14:24:42 CET 2006

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


hi people,

I've just installed a drbd(0.6.12)/heartbeat setup for my DB servers and I've
ran into a problem. When the primary (hostA) goes offline, the secondary
(hostB) promotes itself correctly and hostB now has a status of
0: cs:WFConnection st:Primary/Unknown ld:Consistent
ns:0 nr:56 dw:108 dr:265 al:0 bm:4 lo:0 pe:0 ua:0 ap:0
Now when hostA comes back online and tries to make a connection, hostB changes
its state to StandAlone. After doing a drbdadm adjust all on hostB, they
reestablish a connection. The status when hostA comes back online shows

hostA
[root at bdtcsv11 root]# cat /proc/drbd
version: 0.6.12 (api:64/proto:62)

0: cs:WFConnection st:Secondary/Unknown ns:0 nr:0 dw:0 dr:0 pe:0 ua:0
1: cs:SyncingAll st:Secondary/Primary ns:0 nr:338444 dw:338444 dr:0 pe:0 ua:38
        [>...................] sync'ed:  0.8% (33870/34134)M
        finish: 1:11:29h speed: 8,178 (6,302) K/sec
2: cs:SyncingAll st:Secondary/Primary ns:0 nr:331704 dw:331704 dr:0 pe:0 ua:29
        [>...................] sync'ed:  0.8% (33878/34134)M
        finish: 1:17:24h speed: 7,538 (6,097) K/sec
3: cs:SyncingAll st:Secondary/Primary ns:0 nr:320820 dw:320820 dr:0 pe:0 ua:34
        [>...................] sync'ed:  0.8% (33889/34134)M
        finish: 1:36:20h speed: 6,060 (5,832) K/sec


hostB
[root at bdtcsv12 root]# cat /proc/drbd
version: 0.6.12 (api:64/proto:62)

0: cs:StandAlone st:Primary/Unknown ns:0 nr:0 dw:23060672 dr:7588827 pe:0 ua:0
1: cs:SyncingAll st:Primary/Secondary ns:47326732 nr:0 dw:18011192
dr:54900935 pe:24 ua:0
        [>...................] sync'ed:  0.3% (34047/34134)M
        finish: 1:31:47h speed: 6,398 (6,398) K/sec
2: cs:SyncingAll st:Primary/Secondary ns:47048260 nr:0 dw:12691316
dr:458718373 pe:14 ua:0
        [>...................] sync'ed:  0.3% (34054/34134)M
        finish: 1:39:37h speed: 5,888 (5,888) K/sec
3: cs:SyncingAll st:Primary/Secondary ns:47027816 nr:0 dw:28916500
dr:355009753 pe:29 ua:0
        [>...................] sync'ed:  0.3% (34057/34134)M
        finish: 1:36:02h speed: 6,110 (6,110) K/sec

thanks for All !

-- 
Luiz Gustavo - FreeBSD User
<===\
<======== http://www.luizgustavo.pro.br ====
<===/



More information about the drbd-user mailing list