<p dir="ltr"><br>
On 04/06/2015 8:50 PM, "Kimly Heler" <<a href="mailto:kimlyheler@gmail.com">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">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">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">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">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">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">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">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">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>
<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">drbd-user@lists.linbit.com</a><br>
> <a href="http://lists.linbit.com/mailman/listinfo/drbd-user">http://lists.linbit.com/mailman/listinfo/drbd-user</a><br>
><br>
</p>