diff options
author | Lars Ellenberg <lars.ellenberg@linbit.com> | 2016-06-13 22:26:32 (GMT) |
---|---|---|
committer | Jens Axboe <axboe@fb.com> | 2016-06-14 03:43:07 (GMT) |
commit | f2d3d75b66fc80c69ae2813cba72c2b5ad755f3e (patch) | |
tree | 2e4cc1dec03e90a12495152fdbe9a3b672723634 /drivers/sh | |
parent | 9104d31a759fbade8505f38f92f4dde719957826 (diff) | |
download | linux-f2d3d75b66fc80c69ae2813cba72c2b5ad755f3e.tar.xz |
drbd: sync_handshake: handle identical uuids with current (frozen) Primary
If in a two-primary scenario, we lost our peer, freeze IO,
and are still frozen (no UUID rotation) when the peer comes back
as Secondary after a hard crash, we will see identical UUIDs.
The "rule_nr = 40" chose to use the "CRASHED_PRIMARY" bit as
arbitration, but that would cause the still running (but frozen) Primary
to become SyncTarget (which it typically refuses), and the handshake is
declined.
Fix: check current roles.
If we have *one* current primary, the Primary wins.
(rule_nr = 41)
Since that is a protocol change, use the newly introduced DRBD_FF_WSAME
to determine if rule_nr = 41 can be applied.
Signed-off-by: Philipp Reisner <philipp.reisner@linbit.com>
Signed-off-by: Lars Ellenberg <lars.ellenberg@linbit.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'drivers/sh')
0 files changed, 0 insertions, 0 deletions