<p>If you don't care for preserving data, why don't you recreate metadata?<br>
drbdadm create-md ...</p>
<p>Cheers,<br>
Vadym</p>
<div class="gmail_quote">On Apr 1, 2011 6:47 AM, "Helmut Wollmersdorfer" <<a href="mailto:helmut.wollmersdorfer@fixpunkt.de">helmut.wollmersdorfer@fixpunkt.de</a>> wrote:<br type="attribution">> <br>> Am 01.04.2011 um 09:54 schrieb Helmut Wollmersdorfer:<br>
> <br>>><br>>> Am 31.03.2011 um 18:02 schrieb Brian R. Hellman:<br>>><br>>>> If you're really sure you want to be primary and blow away the data <br>>>> on<br>>>> the other node you can do:<br>
>><br>>>> drbdadm -- --overwrite-data-of-peer primary drbd1_2<br>>><br>>>> Where drbd1_2 is the device you want to promote to become your new <br>>>> primary.<br>>><br>>> root@xen09:/# cat /proc/drbd<br>
>> version: 8.3.7 (api:88/proto:86-91)<br>>> srcversion: EE47D8BF18AC166BE219757<br>>><br>>> 1: cs:WFConnection ro:Primary/Unknown ds:UpToDate/Outdated C r----<br>>> 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: <br>
>> 1424<br>>> 2: cs:WFConnection ro:Secondary/Unknown ds:Consistent/DUnknown C r----<br>>> 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<br>>><br>>> root@xen09:/# drbdadm -- --overwrite-data-of-peer primary drbd1_2<br>
>> 2: State change failed: (-2) Refusing to be Primary without at least <br>>> one UpToDate disk<br>>> Command 'drbdsetup 2 primary --overwrite-data-of-peer' terminated <br>>> with exit code 17<br>
>><br>>> If there is no way to reuse the device then it's a grave bug or <br>>> misconception of DRBD.<br>>> Isn't it the main reason to use DRBD to have a usable device in the <br>>> case of a damaged hardware-node?<br>
> <br>> Now changed the topic to 'critical' bug, because it's a show-stopper <br>> for my project.<br>> <br>> Read TFM again and again -- no solution.<br>> <br>> Helmut Wollmersdorfer<br>
> <br>> <br>> <br>> _______________________________________________<br>> drbd-user mailing list<br>> <a href="mailto:drbd-user@lists.linbit.com">drbd-user@lists.linbit.com</a><br>> <a href="http://lists.linbit.com/mailman/listinfo/drbd-user">http://lists.linbit.com/mailman/listinfo/drbd-user</a><br>
</div>