Note: "permalinks" may not be as permanent as we would like,
direct links of old sources may well be a few messages off.
On 03/31/2011 08:41 AM, Helmut Wollmersdorfer wrote: > > 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 ... If you're really sure you want to be primary and blow away the data on the other node you can do: drbdadm -- --overwrite-data-of-peer primary drbd1_2 Where drbd1_2 is the device you want to promote to become your new primary. > > Helmut Wollmersdorfer > > > _______________________________________________ > drbd-user mailing list > drbd-user at lists.linbit.com > http://lists.linbit.com/mailman/listinfo/drbd-user