<div dir="ltr"><p style="margin:0px 0px 1em;padding:0px;border:0px;font-size:15px;clear:both;font-family:'Helvetica Neue',Helvetica,Arial,sans-serif;line-height:19.5px">Hello,</p><p style="margin:0px 0px 1em;padding:0px;border:0px;font-size:15px;clear:both;font-family:'Helvetica Neue',Helvetica,Arial,sans-serif;line-height:19.5px">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.</p><p style="margin:0px 0px 1em;padding:0px;border:0px;font-size:15px;clear:both;font-family:'Helvetica Neue',Helvetica,Arial,sans-serif;line-height:19.5px">It should be similar to section 8.4.2 in <a href="http://drbd.linbit.com/users-guide-emb/s-pacemaker-stacked-resources.html" rel="nofollow" style="margin:0px;padding:0px;border:0px;text-decoration:none;color:rgb(12,101,165)">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.</p><p style="margin:0px 0px 1em;padding:0px;border:0px;font-size:15px;clear:both;font-family:'Helvetica Neue',Helvetica,Arial,sans-serif;line-height:19.5px">Here is what I derived from the user guide:</p><pre style="margin-top:0px;padding:5px;border:0px;font-size:13px;overflow:auto;width:auto;max-height:600px;font-family:Consolas,Menlo,Monaco,'Lucida Console','Liberation Mono','DejaVu Sans Mono','Bitstream Vera Sans Mono','Courier New',monospace,sans-serif;word-wrap:normal;background-color:rgb(238,238,238)"><code style="margin:0px;padding:0px;border:0px;font-family:Consolas,Menlo,Monaco,'Lucida Console','Liberation Mono','DejaVu Sans Mono','Bitstream Vera Sans Mono','Courier New',monospace,sans-serif;white-space:inherit">resource clusterA {
net {
protocol C;
}
on host1-datacenterA {
device /dev/drbd0;
disk /dev/sda6;
address <a href="http://10.0.0.1:7788">10.0.0.1:7788</a>;
meta-disk internal;
}
on host2-datacenterA {
device /dev/drbd0;
disk /dev/sda6;
address <a href="http://10.0.0.2:7788">10.0.0.2:7788</a>;
meta-disk internal;
}
}
resource clusterB {
net {
protocol C;
}
on host1-datacenterB {
device /dev/drbd0;
disk /dev/sda6;
address <a href="http://10.0.0.3:7788">10.0.0.3:7788</a>;
meta-disk internal;
}
on host2-datacenterB {
device /dev/drbd0;
disk /dev/sda6;
address <a href="http://10.0.0.3:7788">10.0.0.3:7788</a>;
meta-disk internal;
}
}
resource r0 {
net {
protocol A;
}
stacked-on-top-of clusterA {
device /dev/drbd10;
address <a href="http://192.168.42.1:7788">192.168.42.1:7788</a>; # Virtual IP of cluster A
}
stacked-on-top-of clusterB {
device /dev/drbd10;
address <a href="http://192.168.42.2:7788">192.168.42.2:7788</a>; # Virtual IP of cluster B
}
}
</code></pre><p style="margin:0px 0px 1em;padding:0px;border:0px;font-size:15px;clear:both;font-family:'Helvetica Neue',Helvetica,Arial,sans-serif;line-height:19.5px">With this, it would error out with the virtual IP address with "IP not found on host". </p><p style="margin:0px 0px 1em;padding:0px;border:0px;font-size:15px;clear:both;font-family:'Helvetica Neue',Helvetica,Arial,sans-serif;line-height:19.5px">I also looked at Floating peers in the user guide, but <code style="margin:0px;padding:1px 5px;border:0px;font-size:13px;font-family:Consolas,Menlo,Monaco,'Lucida Console','Liberation Mono','DejaVu Sans Mono','Bitstream Vera Sans Mono','Courier New',monospace,sans-serif;white-space:pre-wrap;background-color:rgb(238,238,238)">floating <a href="http://192.168.42.1:7789">192.168.42.1:7789</a></code> would replace the whole section <code style="margin:0px;padding:1px 5px;border:0px;font-size:13px;font-family:Consolas,Menlo,Monaco,'Lucida Console','Liberation Mono','DejaVu Sans Mono','Bitstream Vera Sans Mono','Courier New',monospace,sans-serif;white-space:pre-wrap;background-color:rgb(238,238,238)">stacked-on-top-of</code>. </p><p style="margin:0px 0px 1em;padding:0px;border:0px;font-size:15px;clear:both;font-family:'Helvetica Neue',Helvetica,Arial,sans-serif;line-height:19.5px">How can I tell drbd that <code style="margin:0px;padding:1px 5px;border:0px;font-size:13px;font-family:Consolas,Menlo,Monaco,'Lucida Console','Liberation Mono','DejaVu Sans Mono','Bitstream Vera Sans Mono','Courier New',monospace,sans-serif;white-space:pre-wrap;background-color:rgb(238,238,238)">r0</code> is a stacked drbd resource, and the peers IPs are floating?</p><p style="margin:0px 0px 1em;padding:0px;border:0px;font-size:15px;clear:both;font-family:'Helvetica Neue',Helvetica,Arial,sans-serif;line-height:19.5px">Thanks in advance</p><p style="margin:0px 0px 1em;padding:0px;border:0px;font-size:15px;clear:both;font-family:'Helvetica Neue',Helvetica,Arial,sans-serif;line-height:19.5px">Kimly</p></div>