Note: "permalinks" may not be as permanent as we would like,
direct links of old sources may well be a few messages off.
Hi All,
I can't get one of the disk into Primary state. I have tried a lot and
been on Google a lot... I am using/tesing on 8.0 because I what to use
primary/primary later on.
I am running a test enverment with 2 identical machines (environment)
with 3 pcs hard disks, for OS, metadata and DRBD.
The Machines are running Debain Etch, and DRBD are install as Debian
packages.
DRBD says version 8.0pre5.
-----
cat /proc/drbd says
version: 8.0pre5 (api:84/proto:83)
SVN Revision: 2481M build by root at drbd64, 2006-11-01 16:42:55
0: cs:Connected st:Secondary/Secondary ds:Diskless/Inconsistent r---
ns:0 nr:0 dw:0 dr:0 al:0 bm:0 lo:0 pe:0 ua:0 ap:0
and
SVN Revision: 2481M build by root at drbd64, 2006-11-01 16:42:55
0: cs:Connected st:Secondary/Secondary ds:Inconsistent/Diskless 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 when I tryed to make one off the active I get the follow error
drbd64:~# drbdadm primary all
State change failed: (-2) Refusing to be Primary without at least one
UpToDate disk
and if I do
drbd64:~# drbdadm -- --do-what-I-say primary all
drbdsetup: unrecognized option '--do-what-I-say'
Command 'drbdsetup /dev/drbd0 primary --do-what-I-say' terminated
with exit code 20
drbdsetup exited with code 20
drbd64:~#
-------
My configuration are simple
drbd64:~# cat /etc/drbd.conf
global { usage-count yes; }
common { syncer { rate 10M; } }
resource r0 {
protocol C;
net {
}
startup {
}
disk {
}
on drbd642 {
device /dev/drbd0;
disk /dev/sdb1;
address 10.0.0.116:7788;
flexible-meta-disk /dev/sdc1;
}
on drbd64 {
device /dev/drbd0;
disk /dev/sdb1;
address 10.0.0.111:7788;
meta-disk /dev/sdc1[0];
}
}
dmesg says
drbd: initialised. Version: 8.0pre5 (api:84/proto:83)
drbd: SVN Revision: 2481M build by root at drbd64, 2006-11-01 16:42:55
drbd: registered as block device major 147
drbd0: disk( Diskless -> Attaching )
drbd0: unexpected md_size: 262144 (expected 417760)
drbd0: bitmap not locked in bm_unlock
drbd0: disk( Attaching -> Diskless )
drbd0: drbd_bm_resize called with capacity == 0
drbd0: worker terminated
drbd0: conn( StandAlone -> Unconnected )
drbd0: receiver (re)started
drbd0: conn( Unconnected -> WFConnection )
drbd0: conn( WFConnection -> WFReportParams )
drbd0: Handshake successful: DRBD Network Protocol version 83
drbd0: peer( Unknown -> Secondary ) conn( WFReportParams ->
Connected ) pdsk( DUnknown -> Inconsistent )
eth0: no IPv6 routers present
drbd0: State change failed: Refusing to be Primary without at least
one UpToDate disk
drbd0: state = { cs:Connected st:Secondary/Secondary
ds:Diskless/Inconsistent r--- }
drbd0: wanted = { cs:Connected st:Primary/Secondary
ds:Diskless/Inconsistent r--- }
I hope that anyone can help me.
Thanks
Peter Bagger