From: Andre Noll <maan@systemlinux.org>
To: Jon Nelson <jnelson-linux-raid@jamponi.net>
Cc: linux-raid@vger.kernel.org
Subject: Re: raid5: degraded after reboot
Date: Fri, 12 Oct 2007 18:18:09 +0200 [thread overview]
Message-ID: <20071012161809.GF21133@skl-net.de> (raw)
In-Reply-To: <cccedfc60710120908m24724867had038d9729d16efe@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 1601 bytes --]
On 11:08, Jon Nelson wrote:
> > sda4 was not included because the array has been assembled previously
> > using only sdb4 and sdc4. So the data on sda4 is out of date.
>
> I don't understand - over months and months it has always been the three
> devices, /dev/sd{a,b,c}4.
> I've added and removed bitmaps and done other things but at the time it
> rebooted the array had been up, "clean" (non-degraded), and comprised of the
> three devices for 4-6 weeks.
You said you had to reboot your box using sysrq. There are chances you
caused the reboot while all pending data was written to sdb4 and sdc4,
but not to sda4. So sda4 appears to be non-fresh after the reboot and,
since mdadm refuses to use non-fresh devices, it kicks sda4.
> > This looks normal. The array is up with two working disks.
>
> Two of three which, to me, is "abnormal" (ie, the "normal" state is three
> and it's got two).
Sure. I should have said: It's normal if one disk in a raid5 array is
missing (or non-fresh).
> > > Why was /dev/sda4 kicked?
> >
> > Because it was non-fresh ;)
>
> OK, but what does that MEAN?
To be precise, it means that the event counter for sda4 is less than
the event counter on the other devices in the array. So mdadm must
assume the data on sda4 is out of sync and hence the device can't be
used. If you are not using bitmaps, there is no other way out than
syncing the whole device, i.e. writing good data (computed from sdb4
and sdc4) to sda4.
Hope that helps.
Andre
--
The only person who always got his work done by Friday was Robinson Crusoe
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
next prev parent reply other threads:[~2007-10-12 16:18 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-10-12 15:38 raid5: degraded after reboot Jon Nelson
2007-10-12 15:47 ` Andre Noll
2007-10-12 16:08 ` Jon Nelson
2007-10-12 16:18 ` Andre Noll [this message]
2007-10-12 17:05 ` Jon Nelson
2007-10-12 18:32 ` Andre Noll
2007-10-12 18:58 ` Bill Davidsen
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=20071012161809.GF21133@skl-net.de \
--to=maan@systemlinux.org \
--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).