From: "Mike Snitzer" <snitzer@gmail.com>
To: Neil Brown <neilb@suse.de>
Cc: linux-raid@vger.kernel.org
Subject: Re: Need clarification on raid1 resync behavior with bitmap support
Date: Mon, 6 Aug 2007 11:30:28 -0400 [thread overview]
Message-ID: <170fa0d20708060830r1b897539sad7b2cc8ef44f912@mail.gmail.com> (raw)
In-Reply-To: <18099.40761.348959.46664@notabene.brown>
On 8/3/07, Neil Brown <neilb@suse.de> wrote:
> On Friday August 3, snitzer@gmail.com wrote:
> >
> > I hand-patched your change into a 2.6.20.1 kernel (I'd imagine your
> > patch is against current git). I didn't see any difference because
> > unfortunately both of my full resync scenarios included stopping a
> > degraded raid after either: 1) having failed but not been removed a
> > member 2) having failed and removed a member. In both scenarios if I
> > didn't stop the array and I just removed and re-added the faulty drive
> > the array would _not_ do a full resync.
> >
> > My examples clearly conflict with your assertion that: "This only
> > works if the array has not been shut down and restarted."
>
> I think my changelog entry for the patch was poorly written.
> What I meant to say was:
> *before this patch* a remove and re-add only does a partial resync
> if the array has not been shutdown and restarted in the interim.
> The implication being that *after the patch*, a shutdown and restart
> will not interfere and a remove followed by a readd will always do a
> partial resync, even if the array was shutdown and restarted while
> degraded.
Great, thanks for clarifying.
> > To be explicit: isn't the bitmap still valid on the fresh members? If
> > so, why is raid1 just disregarding the fresh bitmap?
>
> Yes. Exactly. It is my understanding and experience that the patch I
> sent fixes a bug so that it doesn't disregard the fresh bitmap. It
> should fix it for 2.6.20.1 as well.
>
> Are you saying that you tried the same scenario with the patch applied
> and it still did a full resync? How do you measure whether it did a
> full resync or a partial resync?
I must not have loaded the patched raid1.ko because after retesting it
is clear that your patch does in fact fix the issue. FYI, before, I
could just tell a full resync was occurring by looking at /proc/mdstat
and the time that elapsed.
Thanks for your help, any idea when this fix will make it upstream?
regards,
Mike
next prev parent reply other threads:[~2007-08-06 15:30 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-07-21 16:59 Need clarification on raid1 resync behavior with bitmap support Mike Snitzer
2007-07-23 7:21 ` Neil Brown
2007-07-23 12:47 ` Mike Snitzer
2007-08-03 6:42 ` Neil Brown
2007-08-03 13:41 ` Mike Snitzer
2007-08-03 21:33 ` Neil Brown
2007-08-06 15:30 ` Mike Snitzer [this message]
2007-08-10 5:15 ` Neil Brown
2008-01-27 19:44 ` 2 failed disks RAID 5 behavior bug? TJ Harrell
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=170fa0d20708060830r1b897539sad7b2cc8ef44f912@mail.gmail.com \
--to=snitzer@gmail.com \
--cc=linux-raid@vger.kernel.org \
--cc=neilb@suse.de \
/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;
as well as URLs for NNTP newsgroup(s).