From: Philipp Reisner <philipp.reisner@linbit.com>
To: drbd-dev@lists.linbit.com
Cc: "Montrose, Ernest" <Ernest.Montrose@stratus.com>
Subject: Re: [Drbd-dev] DRBD8: Resync of device PauseSync state does not resume after an I/O error.
Date: Fri, 2 Mar 2007 14:33:04 +0100 [thread overview]
Message-ID: <200703021433.05214.philipp.reisner@linbit.com> (raw)
In-Reply-To: <BD7042533C2F8943A6A4257A9E31C45439C909@EXNA.corp.stratus.com>
Am Montag, 26. Februar 2007 22:30 schrieb Montrose, Ernest:
> Hi all,
> Looks like what's going on is that on an I/O error during resync (on the
> sync source), the io error handler set the new state to
> "Connected" and after_state_ch() is not called but scheduled it seems.
> Next time after_state_ch()
> is called the conn state is "Connected" for both old and new and the
> disk state is Diskless.
> We do not cal resume_next_sg() for this combination of state. Could it
> be as simple as this patch?
Hi Ernest,
Ok, I now understand what was going on there. The __drbd_chk_io_error()
functions sets the disk to failed.
As a consequence in _drbd_set_state:
if( ns.conn > Connected && (ns.disk <= Failed || ns.pdsk <= Failed )) {
warn_sync_abort=1;
ns.conn = Connected;
}
The ns gets set to Connected. But the after_state_ch() is not called nor
scheduled...
I propose to fix it with this patch. Could you please test this patch?
If this patches fixes the issue as well ?
--- drbd_int.h (revision 2773)
+++ drbd_int.h (working copy)
@@ -1473,7 +1473,8 @@
case Detach:
case CallIOEHelper:
if (mdev->state.disk > Failed) {
- _drbd_set_state(_NS(mdev,disk,Failed),ChgStateHard);
+ _drbd_set_state(_NS(mdev,disk,Failed),
+ ChgStateHard|ScheduleAfter);
ERR("Local IO failed. Detaching...\n");
}
break;
In case it does, I will commit this, since it is the more generic fix
to the issue.
-Phil
--
: Dipl-Ing Philipp Reisner Tel +43-1-8178292-50 :
: LINBIT Information Technologies GmbH Fax +43-1-8178292-82 :
: Vivenotgasse 48, 1120 Vienna, Austria http://www.linbit.com :
next prev parent reply other threads:[~2007-03-02 13:33 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-02-26 21:30 [Drbd-dev] DRBD8: Resync of device PauseSync state does not resume after an I/O error Montrose, Ernest
2007-03-02 13:33 ` Philipp Reisner [this message]
-- strict thread matches above, loose matches on Subject: below --
2007-03-02 13:35 Montrose, Ernest
2007-03-02 15:26 Montrose, Ernest
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200703021433.05214.philipp.reisner@linbit.com \
--to=philipp.reisner@linbit.com \
--cc=Ernest.Montrose@stratus.com \
--cc=drbd-dev@lists.linbit.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox