trying to follow the ha-drbd HOWTO on the centos wiki...
I prep two identical systems with centos 5, leaving some disk space
unassigned (they only have one scsi drive), create /dev/sda4 partitions
on each to use for the repdata...
I install the modules, create a /etc/drbd.conf like...
[root@svfis-blade03 ~]# more /etc/drbd.conf
#
# please have a a look at the example configuration file in
# /usr/share/doc/drbd/drbd.conf
#
global { usage-count no; }
resource repdata {
protocol C;
startup { wfc-timeout 0; degr-wfc-timeout 120; }
disk { on-io-error detach; } # or panic, ...
net { cram-hmac-alg "sha1"; shared-secret "(random secret)"; } #
don't forget to choose a secret for auth !
syncer { rate 10M; }
on svfis-blade03.(my intranet domain) {
device /dev/drbd0;
disk /dev/sda4;
address 10.5.160.93:7788;
meta-disk internal;
}
on svfis-blade05.(my intranet domain) {
device /dev/drbd0;
disk /dev/sda4;
address 10.5.160.95:7788;
meta-disk internal;
}
}
I run drbdadm create-md repdata on both systems... I start the drdb
daemon on both systems... and /proc/drbd says...
[root@svfis-blade03 ~]# cat /proc/drbd
version: 8.0.4 (api:86/proto:86)
SVN Revision: 2947 build by buildsvn@c5-i386-build, 2007-09-29 06:28:57
0: cs:Connected st:Secondary/Secondary ds:Inconsistent/Inconsistent C r---
ns:0 nr:0 dw:0 dr:0 al:0 bm:0 lo:0 pe:0 ua:0 ap:0
resync: used:0/31 hits:0 misses:0 starving:0 dirty:0 changed:0
act_log: used:0/127 hits:0 misses:0 starving:0 dirty:0 changed:0
and I can't promote blade03 to primary.
[root@svfis-blade03 ~]# drbdadm primary repdata
State change failed: (-2) Refusing to be Primary without at least one
UpToDate disk
Command 'drbdsetup /dev/drbd0 primary' terminated with exit code 11
what am I doing wrong?!? the howto shows the disk state as
UpToDate/Inconsistent, which is what I'd expect.
Do I have to use a physical device (/dev/sdb in the example) instead of
a partition?