<div dir="ltr">One thing I didnt mention is that the virtual IPs I'm using are F5 VIPs, which weren't configured in the hosts at all. Would that be the issue?</div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jun 4, 2015 at 10:21 AM, Kimly Heler <span dir="ltr"><<a href="mailto:kimlyheler@gmail.com" target="_blank">kimlyheler@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi Igor, I just tried that and still getting the same error:<div><br></div><div>on the primary node:</div><div><div>[root@node1-datacenterA]$ drbdadm up --stacked r0</div><div>drbd.d/r0.res:57: in resource r0, on node1-datacenterA node2-datacenterA:</div><div><span style="white-space:pre-wrap">        </span>IP 192.168.42.1 not found on this host.<br></div></div><div><br></div><div>I just tried 1 stacked drbd on cluster A, for now. I reduced cluster B to just a standalone server (no stacked), then the command was run fine on the backup standalone node, while the command was failing as above (note that I have the same r0.res file on all the nodes)</div><div><br></div><div>on a backup node:</div><div>[root@node1-datacenterB]$ drbdadm up r0<br></div><div><br></div><div>So looks like it doesn't like --stacked with a virtual IP. Any idea?</div><span class="HOEnZb"><font color="#888888"><div><br></div><div>Kimly</div></font></span><div><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jun 4, 2015 at 6:26 AM, Igor Cicimov <span dir="ltr"><<a href="mailto:icicimov@gmail.com" target="_blank">icicimov@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div><p dir="ltr"><br>
On 04/06/2015 8:50 PM, "Kimly Heler" <<a href="mailto:kimlyheler@gmail.com" target="_blank">kimlyheler@gmail.com</a>> wrote:<br>
><br>
> Hello,<br>
><br>
> I have 2 of two-node clusters in different data centers. I have configured drbd of lvm resource on each cluster. Now I need to configure a stacked drbd on top of these 2 clusters.<br>
><br>
> It should be similar to section 8.4.2 in <a href="http://drbd.linbit.com/users-guide-emb/s-pacemaker-stacked-resources.html" target="_blank">http://drbd.linbit.com/users-guide-emb/s-pacemaker-stacked-resources.html</a> except I need to find a way to assign floating IPs to the stacked drbd.<br>
><br>
> Here is what I derived from the user guide:<br>
><br>
> resource clusterA {<br>
> net {<br>
> protocol C;<br>
> }<br>
><br>
> on host1-datacenterA {<br>
> device /dev/drbd0;<br>
> disk /dev/sda6;<br>
> address <a href="http://10.0.0.1:7788" target="_blank">10.0.0.1:7788</a>;<br>
> meta-disk internal;<br>
> }<br>
><br>
> on host2-datacenterA {<br>
> device /dev/drbd0;<br>
> disk /dev/sda6;<br>
> address <a href="http://10.0.0.2:7788" target="_blank">10.0.0.2:7788</a>;<br>
> meta-disk internal;<br>
> }<br>
> }<br>
><br>
> resource clusterB {<br>
> net {<br>
> protocol C;<br>
> }<br>
><br>
> on host1-datacenterB {<br>
> device /dev/drbd0;<br>
> disk /dev/sda6;<br>
> address <a href="http://10.0.0.3:7788" target="_blank">10.0.0.3:7788</a>;<br>
> meta-disk internal;<br>
> }<br>
><br>
> on host2-datacenterB {<br>
> device /dev/drbd0;<br>
> disk /dev/sda6;<br>
> address <a href="http://10.0.0.3:7788" target="_blank">10.0.0.3:7788</a>;<br>
> meta-disk internal;<br>
> }<br>
> }<br>
><br>
> resource r0 {<br>
> net {<br>
> protocol A;<br>
> }<br>
><br>
> stacked-on-top-of clusterA {<br>
> device /dev/drbd10;<br>
> address <a href="http://192.168.42.1:7788" target="_blank">192.168.42.1:7788</a>; # Virtual IP of cluster A<br>
> }<br>
><br>
> stacked-on-top-of clusterB {<br>
> device /dev/drbd10;<br>
> address <a href="http://192.168.42.2:7788" target="_blank">192.168.42.2:7788</a>; # Virtual IP of cluster B<br>
> }<br>
> }<br>
><br>
> With this, it would error out with the virtual IP address with "IP not found on host". <br>
><br>
> I also looked at Floating peers in the user guide, but floating <a href="http://192.168.42.1:7789" target="_blank">192.168.42.1:7789</a> would replace the whole section stacked-on-top-of. <br>
><br>
> How can I tell drbd that r0 is a stacked drbd resource, and the peers IPs are floating?<br>
></p>
</div></div><p dir="ltr">Did you try setting:</p>
<p dir="ltr">net.ipv4.ip_nonlocal_bind=1</p>
<p dir="ltr">so apps can bind to non local ip?<br>
> Thanks in advance<br>
><br>
> Kimly<br>
><br>
><br>
> _______________________________________________<br>
> drbd-user mailing list<br>
> <a href="mailto:drbd-user@lists.linbit.com" target="_blank">drbd-user@lists.linbit.com</a><br>
> <a href="http://lists.linbit.com/mailman/listinfo/drbd-user" target="_blank">http://lists.linbit.com/mailman/listinfo/drbd-user</a><br>
><br>
</p>
</blockquote></div><br></div></div></div></div>
</blockquote></div><br></div>