<br><font size=2 face="sans-serif">You need to promote this node to primary.</font>
<br><font size=2 face="sans-serif">drbdadm -- --overwrite-data-of-peer
primary r0</font>
<br><font size=2 face="sans-serif">should do the trick.</font>
<br><font size=2 face="sans-serif">Also you will need some sort of clusterware
to controll your drbd later on, unless you want to be the meatware-clusteragent
doing everything manually.</font>
<br><font size=2 face="sans-serif">also please update to at least 8.3.11
there was a nasty bug in the peer outdater in 8.3.10 &nbsp;- I am not sure
if it hits you in dual primary, but it hit us pretty hard on one of our
test systems in an active/passive configuration.<br>
</font><font size=3 color=#5f5f5f>Mit freundlichen Grüßen / Best Regards<br>
<br>
Robert Köppl<br>
<br>
Systemadministration<br>
<b><br>
KNAPP Systemintegration GmbH</b><br>
Waltenbachstraße 9<br>
8700 Leoben, Austria <br>
Phone: +43 3842 805-910<br>
Fax: +43 3842 82930-500<br>
robert.koeppl@knapp.com <br>
www.KNAPP.com <br>
<br>
Commercial register number: FN 138870x<br>
Commercial register court: Leoben</font><font size=3><br>
</font><font size=3 color=#d2d2d2><br>
The information in this e-mail (including any attachment) is confidential
and intended to be for the use of the addressee(s) only. If you have received
the e-mail by mistake, any disclosure, copy, distribution or use of the
contents of the e-mail is prohibited, and you must delete the e-mail from
your system. As e-mail can be changed electronically KNAPP assumes no responsibility
for any alteration to this e-mail or its attachments. KNAPP has taken every
reasonable precaution to ensure that any attachment to this e-mail has
been swept for virus. However, KNAPP does not accept any liability for
damage sustained as a result of such attachment being virus infected and
strongly recommend that you carry out your own virus check before opening
any attachment.</font>
<br>
<br>
<br>
<table width=100%>
<tr valign=top>
<td width=40%><font size=1 face="sans-serif"><b>Tobias Crefeld &lt;tc@cataneo.eu&gt;</b>
</font>
<br><font size=1 face="sans-serif">Gesendet von: drbd-user-bounces@lists.linbit.com</font>
<p><font size=1 face="sans-serif">19.12.2011 21:39</font>
<td width=59%>
<table width=100%>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">An</font></div>
<td><font size=1 face="sans-serif">drbd-user@lists.linbit.com</font>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">Kopie</font></div>
<td>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">Thema</font></div>
<td><font size=1 face="sans-serif">[DRBD-user] Preinstalling single host
for later primary-primary &nbsp; &nbsp; &nbsp; &nbsp;setup</font></table>
<br>
<table>
<tr valign=top>
<td>
<td></table>
<br></table>
<br>
<br>
<br><tt><font size=2>I just started playing around with drbd, so sorry
if I'm still not<br>
familiar with concepts and tools of drbd.<br>
<br>
After installation of the first pair of servers in primary-primary-mode<br>
it worked immediately without problems. I now want to set up another pair
of<br>
servers. OS is Debian-Lenny (Proxmox).<br>
<br>
But there two differences:<br>
 - local storage for drbd-device is md (= Linux soft-RAID) with RAID-0<br>
 - Initially there is only one server available; the other should be<br>
added if the first one is running.<br>
<br>
<br>
Meanwhile there is a device /dev/drbd1 and &quot;drbdadm up r1&quot; can
be run<br>
without error messages, but the device isn't available for tools like<br>
parted or pvcreate:<br>
<br>
pve-153:~# parted /dev/drbd1<br>
Error: Error opening /dev/drbd1: Falscher Medien-Typ<br>
 ( = incorrect media type ?)<br>
<br>
pve-153:~# pvcreate /dev/drbd1<br>
 &nbsp;Device /dev/drbd1 not found (or ignored by filtering).<br>
<br>
drbd-version is 8.3.10<br>
<br>
/etc/drbd.conf:<br>
<br>
global { usage-count no; }<br>
common { syncer { rate 30M; } }<br>
resource r1 {<br>
 &nbsp; &nbsp; &nbsp; &nbsp;protocol C;<br>
 &nbsp; &nbsp; &nbsp; &nbsp;startup {<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;wfc-timeout &nbsp;15;<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;degr-wfc-timeout
60;<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;become-primary-on
both;<br>
 &nbsp; &nbsp; &nbsp; &nbsp;}<br>
 &nbsp; &nbsp; &nbsp; &nbsp;net {<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;cram-hmac-alg sha1;<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;shared-secret &quot;XYZ&quot;;<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;allow-two-primaries;<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;after-sb-0pri discard-zero-changes;<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;after-sb-1pri discard-secondary;<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;after-sb-2pri disconnect;<br>
 &nbsp; &nbsp; &nbsp; &nbsp;}<br>
 &nbsp; &nbsp; &nbsp; &nbsp;on pve-153 {<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;device /dev/drbd1;<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;disk /dev/md2;<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;meta-disk internal;<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;address 192.168.31.10:7788;<br>
 &nbsp; &nbsp; &nbsp; &nbsp;}<br>
 &nbsp; &nbsp; &nbsp; &nbsp;on pve-154 {<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;device /dev/drbd1;<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;disk /dev/md2;<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;meta-disk internal;<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;address 192.168.31.9:7788;<br>
 &nbsp; &nbsp; &nbsp; &nbsp;}<br>
}<br>
# fini<br>
<br>
pve-153:~# cat /proc/drbd<br>
version: 8.3.10 (api:88/proto:86-96)<br>
GIT-hash: 5c0b0469666682443d4785d90a2c603378f9017b build by phil@fat-tyre,
2011-01-28 12:17:35<br>
<br>
 1: cs:WFConnection ro:Secondary/Unknown ds:Inconsistent/DUnknown C r----s<br>
 &nbsp; &nbsp;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:405990004<br>
<br>
<br>
TIA,<br>
 Tobias.<br>
_______________________________________________<br>
drbd-user mailing list<br>
drbd-user@lists.linbit.com<br>
http://lists.linbit.com/mailman/listinfo/drbd-user<br>
</font></tt>
<br>