Adding a 3rd node to an existing DRBD cluster

clusterdrbd

We currently have a 2 node DRBD cluster running which we would like to add a third node to. I have so far been unable to find any resources on whether it is possible to add a third node to an existing cluster, only how to set up a cluster with three nodes initially.

My question is, is it possible to add a 3rd node and how would I go about doing it?

Best Answer

SvW nailed it, but to spell out the steps - it's pretty much like getting DRBD underneath your plain old partitions, but now the existing DRBD resource is the backing device. Assuming that the physical backing device (likely your LV) cannot be enlarged, you will need to

  1. shrink your filesystem
  2. add the stacked resource (create metadata for it)
    • it uses internal metadata that is inside the orginal DRBD
  3. make sure that on your active node, both the original and stacked DRBDs are primary and you only ever mount the stacked resource from that point on
    • if you mount the original, lower DRBD device, you are circumventing the stacked resource and corrupt the third node's data