<html theme="space-grey"><head>
<meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body
 text="#000000">
Hi list,<br>
  <br>
I had to relocate my third node in a classic DRBD 8.4 three node set up 
to a new host.  I am having difficulty making the stacked resource the 
primary.  I am following this guide: 
<a class="moz-txt-link-freetext" href="https://www.linbit.com/drbd-user-guide/users-guide-drbd-8-4/#s-three-nodes">https://www.linbit.com/drbd-user-guide/users-guide-drbd-8-4/#s-three-nodes</a><br>
  <br>
Specifically this:<br>
  <blockquote type="cite">
    <h4 id="s-three-node-enable">5.18.3. Enabling stacked resources</h4>
    <div class="paragraph"><p>To enable a stacked resource, you first 
enable its lower-level
resource and promote it:</p></div>
    <div class="listingblock"><div class="content"><pre>drbdadm up r0
drbdadm primary r0</pre></div></div>
    <div class="paragraph"><p>As with unstacked resources, you must 
create DRBD meta data on the
stacked resources. This is done using the following command:</p></div>
    <div class="listingblock"><div class="content"><pre># drbdadm create-md --stacked r0-U</pre></div></div>
    <div class="paragraph"><p>Then, you may enable the stacked resource:</p></div>
    <div class="listingblock"><div class="content"><pre># drbdadm up --stacked r0-U
# drbdadm primary --stacked r0-U</pre></div></div>
    <div class="paragraph"><p>After this, you may bring up the resource 
on the backup node, enabling
three-node replication:</p></div>
    <div class="listingblock"><div class="content"><pre># drbdadm create-md r0-U
# drbdadm up r0-U</pre></div></div>
  </blockquote>
It seems all is good right up to the last command:<br>
  <br>
:~# drbdadm primary informer<br>
:~# drbdadm create-md --stacked informer-U<br>
You want me to create a v08 style flexible-size internal meta data 
block.<br>
There appears to be a v08 flexible-size internal meta data block<br>
already in place on /dev/drbd11 at byte offset 429483581440<br>
  <br>
Do you really want to overwrite the existing meta-data?<br>
[need to type 'yes' to confirm] yes<br>
  <br>
md_offset 429483581440<br>
al_offset 429483548672<br>
bm_offset 429470441472<br>
  <br>
Found some data<br>
  <br>
 ==> This might destroy existing data! <==<br>
  <br>
Do you want to proceed?<br>
[need to type 'yes' to confirm] yes<br>
  <br>
initializing activity log<br>
NOT initializing bitmap<br>
Writing meta data...<br>
New drbd meta data block successfully created.<br>
:~# drbdadm up --stacked informer-U<br>
:~# drbdadm primary --stacked informer-U<br>
110: State change failed: (-2) Need access to UpToDate data<br>
Command 'drbdsetup-84 primary 110' terminated with exit code 17<br>
  <br>
drbd11 is the device for the lower level resource 'informer', drbd110 
the device for stacked resource 'informer-U'.  Replication between hosts
 'Alice' and 'Bob' (not the real host names but corresponding to the 
names used int the documentation) is functional.  I am performing the 
above commands on 'bob'.<br>
  <br>
I do not understand why it is complaining it needs UpToDate data in that
 last command if 'informer-U' is 'stacked-on-top-of informer' and was 
just created.<br>
  <br>
the .res file(s) look like this:<br>
  <br>
  <blockquote type="cite">resource informer {<br>
        net {<br>
                protocol C;<br>
        }<br>
    <br>
        device    /dev/drbd11;<br>
        meta-disk internal;<br>
    <br>
        on trk-kvm-01 {<br>
                address 10.10.1.125:7789;<br>
                disk      /dev/trk-kvm-01-vg/informer;<br>
             }<br>
             on trk-kvm-02 {<br>
                address 10.10.1.126:7789;<br>
                disk      /dev/trk-kvm-02-vg/informer;<br>
        }<br>
}<br>
    <br>
resource informer-U {<br>
        net {<br>
                protocol A;<br>
        }<br>
    <br>
        stacked-on-top-of informer {<br>
                device /dev/drbd110;<br>
                address 10.10.2.126:7789;<br>
        }<br>
    <br>
        on trk-bkp-01 {<br>
                device  /dev/drbd110;<br>
                disk    /dev/ubuntu-vg/informer;<br>
                address 10.10.2.127:7789;<br>
                meta-disk internal;<br>
        }<br>
}</blockquote>
Any suggestions on what I am missing in this picture?<br>
  <br>
Please and thanks.<br>
  <div class="moz-signature">-- <br><span style="font-weight: bold;">Paul
 O'Rorke</span><br>
<span style="font-weight: bold;">Tracker Software Products (Canada) 
Limited</span><br>
<a href="https://www.tracker-software.com">www.tracker-software.com</a><br>
Tel: +1 (250) 324 1621<br>

Fax: +1 (250) 324 1623<br>
<br>
<img 
src="https://www.tracker-software.com/fckfiles/image/images/resellers/logo/TrackerSofwareProducts_Logo_330x100.png"
 name="image.png" align="bottom" height="60" border="0" width="198"><br>

<br>
Support:  <br>
<a href="https://www.tracker-software.com/support">www.tracker-software.com/support</a><br>
Download latest Releases:<br>
<a href="https://www.tracker-software.com/downloads">www.tracker-software.com/downloads</a><br>

<br>

  </div>
</body>
</html>