DRBD - How to initialize primary without any secondary server available?
<p>Here is the normal way to initialize the drbd partition:</p>

<p>ON BOTH SERVERS</p>

<pre><code>drbdadm create-md r0
drbdadm up r0
</code></pre>

<p>Both servers should be now connected, check with </p>

<p>ONLY ON PRIMARY</p>

<pre><code>drbdadm -- --overwrite-data-of-peer primary r0
cat /proc/drbd
</code></pre>

<p>AFTER BOTH SERVERS UP-TO-DATE - ON PRIMARY</p>

<pre><code>mkfs –t ext4 –b 4096 /dev/drbd0
</code></pre>

<p>I now tried to prepare a primary without secondary available (e.g. customer
wants a single server system and probably later wants to add a hot-standby
server)</p>

<pre><code>drbdadm create-md r0
drbdadm up r0
drbdadm primary r0
</code></pre>

<p>I got the error: </p>

<blockquote>
  <p>0: State change failed: (-2) Need access to UpToDate data</p>
</blockquote>

<p>Is there a solution ?</p>