Commit edf80e69 authored by Philipp Reisner's avatar Philipp Reisner

Do not consider peer dead when fence-peer handler can not reach it and we are < UpToDate [Bugz 198]

Unfortunately the use needs to give the dead-time of his cluster stack as
argument to the crm-fence-peer.sh script now.
Signed-off-by: default avatarPhilipp Reisner <philipp.reisner@linbit.com>
Signed-off-by: default avatarLars Ellenberg <lars.ellenberg@linbit.com>
parent 8f5697e9
......@@ -217,14 +217,19 @@ enum drbd_disk_state drbd_try_outdate_peer(struct drbd_conf *mdev)
ex_to_string = "peer is inconsistent or worse";
nps = D_INCONSISTENT;
break;
case 4:
case 4: /* peer got outdated, or was already outdated */
ex_to_string = "peer is outdated";
nps = D_OUTDATED;
break;
case 5: /* peer was down, we will(have) create(d) a new UUID anyways... */
/* If we would be more strict, we would return D_UNKNOWN here. */
ex_to_string = "peer is unreachable, assumed to be dead";
nps = D_OUTDATED;
case 5: /* peer was down */
if (mdev->state.disk == D_UP_TO_DATE) {
/* we will(have) create(d) a new UUID anyways... */
ex_to_string = "peer is unreachable, assumed to be dead";
nps = D_OUTDATED;
} else {
ex_to_string = "peer unreachable, doing nothing since disk != UpToDate";
nps = mdev->state.pdsk;
}
break;
case 6: /* Peer is primary, voluntarily outdate myself.
* This is useful when an unconnected R_SECONDARY is asked to
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment