From: Leon Woestenberg <leonw@mailcan.com>
To: Brad Campbell <brad@wasp.net.au>
Cc: RAID Linux <linux-raid@vger.kernel.org>
Subject: Re: Raid-5 rebuild
Date: Fri, 24 Dec 2004 17:39:40 +0100 [thread overview]
Message-ID: <41CC464C.3020309@mailcan.com> (raw)
In-Reply-To: <41CC1794.7050607@wasp.net.au>
Hello Brad,
Brad Campbell wrote:
> G'day all,
>
> I'm using a 2.6.10-rc1 (ish.. some BK just after that) kernel and I
> have a 10 drive raid-5 /dev/md0.
> I noticed SMART telling me I have some pending reallocations on
> /dev/sdj, so I decided to force the matter with a
> mdadm --fail /dev/md0 /dev/sdj1
> mdadm --remove /dev/md0 /dev/sdj1
> mdadm --add /dev/md0 /dev/sdj1
>
> Fine.. all going well, but I noticed using iostat that instead of
> doing read-compare cycles, the kernel is rebuilding the drive regardless.
>
> I thought (and I may be wrong) that adding a drive to a raid-5
> triggered the kernel to read each stripe, and only write out new
> parity info if the stripe contents are wrong.
Nope, standard software RAID in the Linux kernel is dumb regarding
rebuilding. It has the "benefit" of touching every 'pending' or 'offline
uncorrectable' blocks
on the platters of the resyncing drive, for the cost of being
non-redundant for a large amount of (rebuild)time.
There is the "FastRAID5" project on Sourceforge which does partial
resyncs. However, you will lose the soft-read/bad block re-allocations.
See "fr5" on
Sourceforge.
Ideally, we would have SMART detect 'pending' or 'offline-uncorrectable'
block LBAs, calculate the resulting block number on the disk partition,
calculate the resulting md block number, and mark it dirty in some to be
written "fr5" user-tool.
However, I have asked on this list about calculating block numbers from
md to partition to LBA and vice versa, but this seems deeply hidden in the
different RAID algorithms... On the other hand, I haven't looked real hard.
Regards,
Leon.
next prev parent reply other threads:[~2004-12-24 16:39 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-12-24 13:20 Raid-5 rebuild Brad Campbell
2004-12-24 16:39 ` Leon Woestenberg [this message]
2004-12-24 17:19 ` Guy
-- strict thread matches above, loose matches on Subject: below --
2004-12-24 14:32 AndyLiebman
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=41CC464C.3020309@mailcan.com \
--to=leonw@mailcan.com \
--cc=brad@wasp.net.au \
--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).