[DRBD-user] Unable to re-use device in stand-alone mode

Helmut Wollmersdorfer helmut.wollmersdorfer at fixpunkt.de
Thu Mar 31 17:41:14 CEST 2011

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


Am 31.03.2011 um 16:58 schrieb Eduardo Gonzalez:

> Before create-md, to avoid error, overwrite the start of the  
> partition:
> dd if=/dev/zero bs=1M count=1 of=/dev/sdaX
>
> This way you will get ride of "Found swap space signature" message

I can't believe that DRBD does not provide a more professional solution.

But first, let's try:

root at xen09:# dd if=/dev/zero bs=1M count=1 of=/dev/vg1/lv_drbd1_2
1+0 records in
1+0 records out
1048576 bytes (1.0 MB) copied, 0.00540221 s, 194 MB/s

root at xen09:# drbdadm create-md drbd1_2
Device '2' is configured!
Command 'drbdmeta 2 v08 /dev/vg1/lv_drbd1_2 internal create-md'  
terminated with exit code 20
drbdadm create-md drbd1_2: exited with code 20

root at xen09:# drbdadm up drbd1_2
root at xen09:# cat /proc/drbd
version: 8.3.7 (api:88/proto:86-91)
srcversion: EE47D8BF18AC166BE219757

  1: cs:WFConnection ro:Primary/Unknown ds:UpToDate/Outdated C r----
     ns:0 nr:0 dw:0 dr:200 al:0 bm:0 lo:0 pe:0 ua:0 ap:0 ep:1 wo:b oos: 
1424
  2: cs:WFConnection ro:Secondary/Unknown ds:Consistent/DUnknown C r----
     ns:0 nr:0 dw:0 dr:0 al:0 bm:0 lo:0 pe:0 ua:0 ap:0 ep:1 wo:b oos:0
root at xen09:# drbdadm primary drbd1_2
2: State change failed: (-2) Refusing to be Primary without at least  
one UpToDate disk
Command 'drbdsetup 2 primary' terminated with exit code 17

Hmm ...

Helmut Wollmersdorfer
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linbit.com/pipermail/drbd-user/attachments/20110331/3e8a2423/attachment.htm>


More information about the drbd-user mailing list