linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Neil Brown <neilb@suse.de>
To: Jon Nelson <jnelson-linux-raid@jamponi.net>
Cc: LinuxRaid <linux-raid@vger.kernel.org>
Subject: Re: weird issues with raid1
Date: Tue, 16 Dec 2008 08:33:44 +1100	[thread overview]
Message-ID: <18758.52536.345145.238926@notabene.brown> (raw)
In-Reply-To: message from Jon Nelson on Monday December 15

On Monday December 15, jnelson-linux-raid@jamponi.net wrote:
> 
> However, it raises a question: bitmaps are about 'resync' not
> 'recovery'?  How do they differ?

With resync, the expectation is that most of the device is correct.
The bitmap tells us which sectors aren't, and we just resync those.

With recover, the expectation is that the entire drive contains
garbage and it has to be recovered from beginning to end.

Each device has a flag to say where the device is in sync write the
array.  The bit map records which sectors of "in-sync" devices may not
actually in in-sync at the moment.
'resync' synchronises the 'in-sync' devices.
'recovery' synchronises a 'not-in-sync' device.b


> 
> >> Question 1:
> >> I'm using a bitmap. Why does the rebuild start completely over?
> >
> > Because the bitmap isn't used to guide a rebuild, only a resync.
> >
> > The effect of --re-add is to make md do a resync rather than a rebuild
> > if the device was previously a fully active member of the array.
> 
> Aha!  This explains a question I raised in another email. What
> happened there is a previously fully active member of the raid got
> added, somehow, as a spare, via --incremental. That's when the entire
> raid thought it needed to be rebuilt. How did that (the device being
> treated as a spare instead of as a previously fully active member)
> happen?

It is hard to guess without details, and they might be hard to collect
after the fact.
Maybe if you have the kernel logs of when the server rebooted and the
recovery started, that might contain some hints.

Thanks,
NeilBrown

  reply	other threads:[~2008-12-15 21:33 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-12-06  2:10 weird issues with raid1 Jon Nelson
2008-12-06  2:46 ` Jon Nelson
2008-12-06 12:16   ` Justin Piszcz
2008-12-15  2:17     ` Jon Nelson
2008-12-15  6:00 ` Neil Brown
2008-12-15 13:42   ` Jon Nelson
2008-12-15 21:33     ` Neil Brown [this message]
2008-12-15 21:47       ` Jon Nelson
2008-12-16  1:21         ` Neil Brown
2008-12-16  2:32           ` Jon Nelson
2008-12-18  4:42           ` Neil Brown
2008-12-18  4:50             ` Jon Nelson
2008-12-18  4:55               ` Jon Nelson
2008-12-18  5:17                 ` Neil Brown
2008-12-18  5:47                   ` Jon Nelson
2008-12-18  6:21                     ` Neil Brown
2008-12-19  2:15                       ` Jon Nelson
2008-12-19 16:51                         ` Jon Nelson
2008-12-19 20:40                           ` Jon Nelson
2008-12-19 21:18                             ` Jon Nelson
2008-12-22 14:40                               ` Jon Nelson
2008-12-22 21:07                                 ` NeilBrown
2008-12-18  5:43   ` Neil Brown
2008-12-18  5:54     ` Jon Nelson

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=18758.52536.345145.238926@notabene.brown \
    --to=neilb@suse.de \
    --cc=jnelson-linux-raid@jamponi.net \
    --cc=linux-raid@vger.kernel.org \
    /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).