<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>Am 31.03.2011 um 16:58 schrieb Eduardo Gonzalez:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>Before create-md, to avoid error, overwrite the start of the partition:<br>dd if=/dev/zero bs=1M count=1 of=/dev/sdaX<br><br>This way you will get ride of "Found swap space signature" message<br></div></blockquote><div><br></div>I can't believe that DRBD does not provide a more professional solution.</div><div><br></div><div>But first, let's try:</div><div><br></div><div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Monaco; ">root@xen09:# <span style="text-decoration: underline">dd</span> if=/<span style="text-decoration: underline">dev</span>/zero <span style="text-decoration: underline">bs</span>=1M count=1 of=/<span style="text-decoration: underline">dev</span>/vg1/lv_drbd1_2</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Monaco; ">1+0 records in</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Monaco; ">1+0 records out</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Monaco; ">1048576 bytes (1.0 MB) copied, 0.00540221 s, 194 MB/s</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Monaco; min-height: 15px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Monaco; ">root@xen09:# <span style="text-decoration: underline">drbdadm</span> create-<span style="text-decoration: underline">md</span> drbd1_2</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Monaco; ">Device '2' is configured!</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Monaco; ">Command '<span style="text-decoration: underline">drbdmeta</span> 2 v08 /<span style="text-decoration: underline">dev</span>/vg1/lv_drbd1_2 internal create-<span style="text-decoration: underline">md</span>' terminated with exit code 20</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Monaco; "><span style="text-decoration: underline">drbdadm</span> create-<span style="text-decoration: underline">md</span> drbd1_2: exited with code 20</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Monaco; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Monaco; "><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Monaco; ">root@xen09:# drbdadm up drbd1_2</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Monaco; ">root@xen09:# cat /proc/drbd</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Monaco; ">version: 8.3.7 (api:88/proto:86-91)</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Monaco; ">srcversion: EE47D8BF18AC166BE219757 </div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Monaco; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Monaco; "> 1: cs:WFConnection ro:Primary/Unknown ds:UpToDate/Outdated C r----</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Monaco; "> 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</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Monaco; "> 2: cs:WFConnection ro:Secondary/Unknown ds:Consistent/DUnknown C r----</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Monaco; "> 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</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Monaco; ">root@xen09:# drbdadm primary drbd1_2</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Monaco; ">2: State change failed: (-2) Refusing to be Primary without at least one UpToDate disk</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Monaco; ">Command 'drbdsetup 2 primary' terminated with exit code 17</div><div><br></div></div><div>Hmm ...</div><div><br></div><div>Helmut Wollmersdorfer</div></div></body></html>