[DRBD-user] How to configure drbd stacked on 2 clusters with virtual IPs

Kimly Heler kimlyheler at gmail.com
Thu Jun 4 01:59:55 CEST 2015

Note: "permalinks" may not be as permanent as we would like,
direct links of old sources may well be a few messages off.


Hello,

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.

It should be similar to section 8.4.2 in
http://drbd.linbit.com/users-guide-emb/s-pacemaker-stacked-resources.html
except
I need to find a way to assign floating IPs to the stacked drbd.

Here is what I derived from the user guide:

resource clusterA {
  net {
    protocol C;
  }

  on host1-datacenterA {
    device     /dev/drbd0;
    disk       /dev/sda6;
    address    10.0.0.1:7788;
    meta-disk internal;
  }

  on host2-datacenterA {
    device    /dev/drbd0;
    disk      /dev/sda6;
    address   10.0.0.2:7788;
    meta-disk internal;
  }
}

resource clusterB {
  net {
    protocol C;
  }

  on host1-datacenterB {
    device     /dev/drbd0;
    disk       /dev/sda6;
    address    10.0.0.3:7788;
    meta-disk internal;
  }

  on host2-datacenterB {
    device    /dev/drbd0;
    disk      /dev/sda6;
    address   10.0.0.3:7788;
    meta-disk internal;
  }
}

resource r0 {
  net {
    protocol A;
  }

  stacked-on-top-of clusterA {
    device     /dev/drbd10;
    address    192.168.42.1:7788; # Virtual IP of cluster A
  }

  stacked-on-top-of clusterB {
    device     /dev/drbd10;
    address    192.168.42.2:7788; # Virtual IP of cluster B
  }
}

With this, it would error out with the virtual IP address with "IP not
found on host".

I also looked at Floating peers in the user guide, but floating
192.168.42.1:7789 would replace the whole section stacked-on-top-of.

How can I tell drbd that r0 is a stacked drbd resource, and the peers IPs
are floating?

Thanks in advance

Kimly
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linbit.com/pipermail/drbd-user/attachments/20150603/a68278b4/attachment.htm>


More information about the drbd-user mailing list