From: John McMonagle <johnm@advocap.org>
To: "Peter T. Breuer" <ptb@lab.it.uc3m.es>
Cc: linux-raid@vger.kernel.org
Subject: Re: Possible failures in raid5?
Date: Tue, 28 Dec 2004 17:23:45 -0600 [thread overview]
Message-ID: <41D1EB01.1040204@advocap.org> (raw)
In-Reply-To: <qnf7a2-fln.ln1@news.it.uc3m.es>
Thanks Peter
If one is using a journaling file system like ext3. Will that fix the
problem area?
My concern was that writes are being done in larger chunks than the
written data but possibly that is not a problem.
Another issue is it's good to know about any disk failures as soon as
possible.
I see someone has suggested running something like
dd if=/dev/sda of=/dev/null bs=64k
I have used that before and it does work. What I would prefer is to run
it periodically and email on failures.
I haven't seen any scripts for this.
Not that hard to do but I'm wondering how to detect errors in the script.
When I ran by hand in the past I got scsi errors even if the read
ultimately worked.
Kind of hard to test without a bad drive on hand :)
If one redirects errors to a file will the scsi or ide errors go to the
file?
John
Peter T. Breuer wrote:
>John McMonagle <johnm@advocap.org> wrote:
>
>
>>I am concerned what will happen if the computer dies while writing a strip.
>>
>>
>
>Well, the strip will be partially written.
>
>
>
>>Is it possible that the stripe will be corrupted?
>>
>>
>
>No - it will be partially written. The parity data may or may not be
>consistent with the real data at that point, and if you lose a disk
>before the next resync (at next reboot) you may get some different data
>reconstructed using parity than if you had used the data itself. OTOH
>if you reboot with all disks intact the parity will be reconstructed
>properly and the inconsistency will be removed. But any missed writes
>will remain missing.
>
>
>
>>If so will the the rest of the raid array be OK?
>>
>>
>
>Apart from that strip? I'm not sure exactly what you mean by "strip"
>(probably some raid jargon? Don't they use "chunks" and "stripes"?)!
>But clearly the data inconsistency will be confined to it.
>
>
>
>>if so is there anything one can do about it?
>>
>>
>
>? Nothing has happened - you have simply not written all the
>data you wanted to write. This happens all the time when writing to
>disks and crashing your computer! But since raid writes at least twice,
>once for data and once for parity, you have the extra pssibility of
>having missed some of the parity data (or having written parity but not
>data). That produces an inconsistency in the redundant data. You can
>fix it by rebooting with all disks intact. Hey - you even fix the
>inconsistency by rebooting with one missing; you just have less chance
>of reconstructing the intended data that way.
>
>Peter
>
>-
>To unsubscribe from this list: send the line "unsubscribe linux-raid" in
>the body of a message to majordomo@vger.kernel.org
>More majordomo info at http://vger.kernel.org/majordomo-info.html
>
>
next prev parent reply other threads:[~2004-12-28 23:23 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-12-27 1:14 Possible failures in raid5? John McMonagle
2004-12-28 7:48 ` Peter T. Breuer
2004-12-28 23:23 ` John McMonagle [this message]
2004-12-28 23:40 ` Peter T. Breuer
2004-12-29 3:35 ` Guy
2004-12-29 21:38 ` Luca Berra
2004-12-29 22:53 ` Guy
2004-12-29 23:40 ` Brad Campbell
2004-12-30 6:53 ` Luca Berra
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=41D1EB01.1040204@advocap.org \
--to=johnm@advocap.org \
--cc=linux-raid@vger.kernel.org \
--cc=ptb@lab.it.uc3m.es \
/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).