On Mon, Jan 11, 2016 at 03:22:16PM +0000, Timo Metsala wrote:
> hi,
> 
> we have a scenario where we would like to connect a secondary node to any
> of multiple primary nodes in a sort of a best-effort way.
> 
> Meaning, we'd like to connect the secondary potentially to a different
> primary than what it previously was connected to.

Why would you want to do that?

> And in this case, we'd
> like to just ignore everything in secondary's disk and restart sync with
> the data of the new primary.
> 
> Neither `connect --discard-my-data` or `invalidate` didn't seem to
> accomplish this, DRBD gives error "unrelated data, aborting". The only
> solution we've come up so far is to re-initialize the secondary with
> `create-md`.

What do you hope to gain by not re-initializing?

> So my question is: can we do this without re-initialization? And if that is
> the only way out, how could we detect the situation programmatically?
> (apart from parsing kernel logs)
> 
> TIA,
> 
> --Timo


-- 
: Lars Ellenberg
: http://www.LINBIT.com | Your Way to High Availability
: DRBD, Linux-HA  and  Pacemaker support and consulting

DRBD® and LINBIT® are registered trademarks of LINBIT, Austria.
__
please don't Cc me, but send to list   --   I'm subscribed
_______________________________________________
drbd-user mailing list
[email protected]
http://lists.linbit.com/mailman/listinfo/drbd-user

Reply via email to