Note: "permalinks" may not be as permanent as we would like,
direct links of old sources may well be a few messages off.
I've been combing through the archives looking for an answer to this, so
sorry if this is old hat, but I'm new to DRBD. I'm wanting to set up
Samba with a DRBD + Heartbeat System. I have 2 almost identical
machines. There is a crossover cable between them and they have their
own private network over that crossover. Here's my drdb.conf:
resource r0 {
protocol C;
incon-degr-cmd "echo '!DRBD! pri on incon-degr' | wall ; sleep
60 ; halt -f";
startup {
wfc-timeout 0;
degr-wfc-timeout 120;
}
disk {
on-io-error detach;
}
syncer {
rate 100M;
group 0;
}
on creativetest1.int-tfchurch.org {
device /dev/drbd0;
disk /dev/hda5;
address 10.1.0.1:7788;
meta-disk internal;
}
on creativetest2 {
device /dev/drbd0;
disk /dev/hda5;
address 10.1.0.2:7788;
meta-disk internal;
}
}
And here's the results from the processes:
[root at creativetest1 etc]# drbdsetup /dev/drbd0 show
Lower device: 03:05 (hda5)
Meta device: internal
Disk options:
on-io-error = detach
Local address: 10.1.0.1:7788
Remote address: 10.1.0.2:7788
Wire protocol: C
Net options:
timeout = 6.0 sec (default)
connect-int = 10 sec (default)
ping-int = 10 sec (default)
max-epoch-size = 2048 (default)
max-buffers = 2048 (default)
sndbuf-size = 131070 (default)
ko-count = 0 (default)
Syncer options:
rate = 102400 KB/sec
group = 0 (default)
al-extents = 127 (default)
[root at creativetest2 ~]# drbdsetup /dev/drbd0 show
Lower device: 03:05 (hda5)
Meta device: internal
Disk options:
on-io-error = detach
Local address: 10.1.0.2:7788
Remote address: 10.1.0.1:7788
Wire protocol: C
Net options:
timeout = 6.0 sec (default)
connect-int = 10 sec (default)
ping-int = 10 sec (default)
max-epoch-size = 2048 (default)
max-buffers = 2048 (default)
sndbuf-size = 131070 (default)
ko-count = 0 (default)
Syncer options:
rate = 102400 KB/sec
group = 0 (default)
al-extents = 127 (default)
[root at creativetest1 etc]# cat /proc/drbd
version: 0.7.11 (api:77/proto:74)
SVN Revision: 1807 build by bachbuilder at g39.physik.fu-berlin.de,
2005-09-30 12:11:16
0: cs:SyncSource st:Primary/Secondary ld:Consistent
ns:19088276 nr:0 dw:88 dr:19096458 al:5 bm:12847 lo:0 pe:25 ua:2024
ap:0
[=>..................] sync'ed: 10.0% (168269/186909)M
finish: 119:39:29 speed: 352 (288) K/sec
[root at creativetest2 ~]# cat /proc/drbd
version: 0.7.11 (api:77/proto:74)
SVN Revision: 1807 build by bachbuilder at g39.physik.fu-berlin.de,
2005-09-30 12:11:16
0: cs:SyncTarget st:Secondary/Primary ld:Inconsistent
ns:0 nr:19091224 dw:19091224 dr:0 al:0 bm:12847 lo:0 pe:2556 ua:0
ap:0
[=>..................] sync'ed: 10.0% (168266/186909)M
finish: 179:29:02 speed: 252 (288) K/sec
The only thing I can see in the syslogs that looks like a problem is
from heartbeat:
(repeated many times)
heartbeat[27637]: 2005/10/27_09:24:32 WARN: 1 lost packet(s) for
[creativetest1.int-tfchurch.org] [93:95]
heartbeat[27637]: 2005/10/27_09:24:32 info: No pkts missing from
creativetest1.int-tfchurch.org!
Could this be the problem?
I appreciate the help if some has time to respond.
Thanks, Tony