How to force drbd for a self synchronization

drbd

I have two drbd nodes, one master and one slave.

I want to use existing drbd disk after a fresh system install while the other node isn't present.

Is it possible to force drbd for this?

Consider the following scenario.

  • Has lost slave node (it's broken) and working with only master node for a while
  • Updated the master node's operating system (a fresh install)
  • Have placed the drbd configuration files for drbd
  • Want to keep old disk content

Best Answer

As long as you're certain that the future peer's disk is going to be the same size, or bigger than, the Primary you're about to force promote, then you shouldn't run into any troubles:

# drbdadm primary <res> --force

If the future disk ends up being smaller, even by a single sector, you will not be able to connect the two devices. DRBD exchanges disk properties when the peers first connect.

Related Topic