From: Daniel Santos <daniel.dlds@gmail.com>
Cc: linux-raid@vger.kernel.org
Subject: Re: problem killing raid 5
Date: Mon, 01 Oct 2007 22:11:13 +0100 [thread overview]
Message-ID: <47016271.20908@gmail.com> (raw)
In-Reply-To: <47015A14.9020400@msgid.tls.msk.ru>
It stopped the reconstruction process and the output of /proc/mdstat was :
oraculo:/home/dlsa# cat /proc/mdstat
Personalities : [raid6] [raid5] [raid4] [raid1] [raid0] [linear]
md0 : active raid5 sdc1[3](S) sdb1[4](F) sdd1[0]
781417472 blocks level 5, 256k chunk, algorithm 2 [3/1] [U__]
I then stopped the array and tried to assemble it with a scan :
oraculo:/home/dlsa# mdadm --assemble --scan
mdadm: /dev/md0 assembled from 1 drive and 1 spare - not enough to start
the array.
oraculo:/home/dlsa# cat /proc/mdstat
Personalities : [raid6] [raid5] [raid4] [raid1] [raid0] [linear]
md0 : inactive sdd1[0](S) sdc1[3](S) sdb1[1](S)
1172126208 blocks
The fourth drive I had to put in mdadm.conf as missing.
The result was that because of the read error, the reconstruction
process for the new array aborted, and the assemble came up with an
array that seems like the one that failed before I created the new one.
I am running debian with a 2.6.22 kernel.
Michael Tokarev wrote:
> Patrik Jonsson wrote:
>
>> Michael Tokarev wrote:
>>
> []
>
>>> But in any case, md should not stall - be it during reconstruction
>>> or not. For this, I can't comment - to me it smells like a bug
>>> somewhere (md layer? error handling in driver? something else?)
>>> which should be found and fixed. And for this, some more details
>>> are needed I guess -- kernel version is a start.
>>>
>> Really? It's my understanding that if md finds an unreadable block
>> during raid5 reconstruction, it has no option but to fail since the
>> information can't be reconstructed. When this happened to me, I had to
>>
>
> Yes indeed, it should fail, but not stuck as Daniel reported.
> Ie, it should either complete the work or fail, but not sleep
> somewhere in between.
>
> []
>
>> This is why it's important to run a weekly check so md can repair blocks
>> *before* a drive fails.
>>
>
> *nod*.
>
> /mjt
>
>
next prev parent reply other threads:[~2007-10-01 21:11 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-10-01 11:04 problem killing raid 5 Daniel Santos
2007-10-01 18:20 ` Daniel Santos
2007-10-01 18:47 ` Michael Tokarev
2007-10-01 18:58 ` Patrik Jonsson
2007-10-01 20:35 ` Michael Tokarev
2007-10-01 21:11 ` Daniel Santos [this message]
2007-10-01 21:44 ` Justin Piszcz
2007-10-02 6:53 ` Daniel Santos
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=47016271.20908@gmail.com \
--to=daniel.dlds@gmail.com \
--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).