Note: "permalinks" may not be as permanent as we would like,
direct links of old sources may well be a few messages off.
Hi guys i have installed drbd and heartbeat in test-enviroment. we use the following versions on red hat enterprise linux 3 0.7.10 - drbd 1.2.3 - heartbeat Node a, onpdb1 - eth2 192.168.0.21 Node b, onpdb2 - eth2 192.168.0.22 Heartbeat and drbd uses a Gigabit Ethernet Interface connected via crossover cable [eth2]. First time i setup the drbd everything seems to be ok [primary/secondary] and the sync works fine. After shutting down onpdb1, which was primary, obpdb2 takes over the resources fine and switched to standalone. I turn the power on at onpdb1 and the mashine started fine. But after i take a look at /proc/drbd i see that the mashine does not sync the data from onpdb2. i think it must be secondary/primary at onpdb1 after a restart. but it doesnt do, so both nodes are now in standalone mode and i cant reconnect them. [ROOT at onpdb2:~] cat /proc/drbd version: 0.7.10 (api:77/proto:74) SVN Revision: 1743 build by phil at mescal, 2005-01-31 12:22:07 0: cs:StandAlone st:Primary/Unknown ld:Consistent ns:0 nr:11529296 dw:11538048 dr:22689 al:98 bm:2 lo:0 pe:0 ua:0 ap:0 1: cs:StandAlone st:Primary/Unknown ld:Consistent ns:0 nr:11284072 dw:11286276 dr:18565 al:479 bm:349 lo:0 pe:0 ua:0 ap:0 2: cs:StandAlone st:Primary/Unknown ld:Consistent ns:0 nr:29765464 dw:29765516 dr:9857 al:1 bm:0 lo:0 pe:0 ua:0 ap:0 [ROOT at onpdb1:~] cat /proc/drbd version: 0.7.10 (api:77/proto:74) SVN Revision: 1743 build by phil at mescal, 2005-01-31 12:22:07 0: cs:WFConnection st:Secondary/Unknown ld:Consistent ns:0 nr:0 dw:0 dr:0 al:0 bm:0 lo:0 pe:0 ua:0 ap:0 1: cs:WFConnection st:Secondary/Unknown ld:Consistent ns:0 nr:0 dw:0 dr:0 al:0 bm:0 lo:0 pe:0 ua:0 ap:0 2: cs:WFConnection st:Secondary/Unknown ld:Consistent ns:0 nr:0 dw:0 dr:0 al:0 bm:0 lo:0 pe:0 ua:0 ap:0 I tryed 'drbdadm connect all' at onpdb1 but the logfile says me that it failed, but i dont understand what im doing wrong at this point : May 19 15:36:47 onpdb1 kernel: drbd0: Discarding network configuration. May 19 15:36:47 onpdb1 kernel: drbd0: worker terminated May 19 15:36:47 onpdb1 kernel: drbd0: drbd0_receiver [2541]: cstate WFConnection --> StandAlone May 19 15:36:47 onpdb1 kernel: drbd0: Connection lost. May 19 15:36:47 onpdb1 kernel: drbd0: drbd0_receiver [2541]: cstate StandAlone --> StandAlone May 19 15:36:47 onpdb1 kernel: drbd0: receiver terminated May 19 15:36:47 onpdb1 kernel: drbd0: drbdsetup [3456]: cstate StandAlone --> Unconnected May 19 15:36:47 onpdb1 kernel: drbd0: drbd0_receiver [3458]: cstate Unconnected --> WFConnection here is my current /etc/drbd.conf : resource "data0" { protocol C; incon-degr-cmd "echo '!DRBD! pri on incon-degr' | wall ; sleep 60 ; halt -f"; startup { wfc-timeout 20; } disk { on-io-error detach; } syncer { rate 100M; group 0; al-extents 257; } on onpdb1.cablecom.ch { device /dev/drbd0; disk /dev/cciss/c0d0p4; address 192.168.0.21:7790; meta-disk /dev/cciss/c0d1p3[0]; } on onpdb2.cablecom.ch { device /dev/drbd0; disk /dev/cciss/c0d0p4; address 192.168.0.22:7790; meta-disk /dev/cciss/c0d1p3[0]; } } resource "data1" { protocol C; startup { wfc-timeout 20; } disk { on-io-error detach; } net { } syncer { rate 100M; group 1; al-extents 257; } on onpdb1.cablecom.ch { device /dev/drbd1; disk /dev/cciss/c0d1p2; address 192.168.0.21:7791; meta-disk /dev/cciss/c0d1p3[1]; } on onpdb2.cablecom.ch { device /dev/drbd1; disk /dev/cciss/c0d1p2; address 192.168.0.22:7791; meta-disk /dev/cciss/c0d1p3[1]; } } resource "data2" { protocol C; startup { wfc-timeout 20; } disk { on-io-error detach; } net { } syncer { rate 100M; group 2; al-extents 257; } on onpdb1.cablecom.ch { device /dev/drbd2; disk /dev/cciss/c0d2p2; address 192.168.0.21:7792; meta-disk /dev/cciss/c0d1p3[2]; } on onpdb2.cablecom.ch { device /dev/drbd2; disk /dev/cciss/c0d2p2; address 192.168.0.22:7792; meta-disk /dev/cciss/c0d1p3[2]; } } -- 5 GB Mailbox, 50 FreeSMS http://www.gmx.net/de/go/promail +++ GMX - die erste Adresse für Mail, Message, More +++