Commit 0a492166 authored by Philipp Reisner's avatar Philipp Reisner

drbdsetup X resume-io should be usable to resume IO [Bugz 256]

When IO gets frozen due to a broken fence-peer script, the user
should be able to thaw IO by the resume-io command.
Signed-off-by: default avatarPhilipp Reisner <philipp.reisner@linbit.com>
Signed-off-by: default avatarLars Ellenberg <lars.ellenberg@linbit.com>
parent 1352994b
...@@ -867,9 +867,8 @@ static union drbd_state sanitize_state(struct drbd_conf *mdev, union drbd_state ...@@ -867,9 +867,8 @@ static union drbd_state sanitize_state(struct drbd_conf *mdev, union drbd_state
} }
if (fp == FP_STONITH && if (fp == FP_STONITH &&
(ns.role == R_PRIMARY && (ns.role == R_PRIMARY && ns.conn < C_CONNECTED && ns.pdsk > D_OUTDATED) &&
ns.conn < C_CONNECTED && !(os.role == R_PRIMARY && os.conn < C_CONNECTED && os.pdsk > D_OUTDATED))
ns.pdsk > D_OUTDATED))
ns.susp = 1; ns.susp = 1;
if (ns.aftr_isp || ns.peer_isp || ns.user_isp) { if (ns.aftr_isp || ns.peer_isp || ns.user_isp) {
......
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