linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: John Robinson <john.robinson@anonymous.org.uk>
To: Linux RAID <linux-raid@vger.kernel.org>
Subject: Check/repair RAID-5 with hints?
Date: Fri, 02 Apr 2010 12:49:05 +0100	[thread overview]
Message-ID: <4BB5D9B1.8070000@anonymous.org.uk> (raw)

I have just replaced one of the drives in my RAID-5 array which was 
showing offline uncorrectable and current pending sectors. I took the 
system down into single-user mode, failed the disc out of the array, 
dd_rescue'd the disc to a fresh one, and added the new disc back into 
the array. During the dd_rescue, 68k of 1TB failed, about 1MB from the 
end of the disc. My array has a write-intent bitmap so the resync was 
very quick. So now I have an active, theoretically synchronised RAID-5, 
and I know some 68k on one of the discs is likely rubbish. I would like 
to run some kind of scrub/check/repair on the relevant area, including a 
hint that it is one particular disc that is wrong. Is this possible? I 
have CentOS 5.4, kernel 2.6.18-164.15.1, mdadm 2.6.9, 0.90 metadata.

I wish we had the hot-replace feature that was discussed on this list a 
wee while ago...

I'm wondering if my best course of action is to fail the fresh disc out 
of the array again, dd the data off the offending area (it will be 
re-built from the good discs), write it again (so the write-intent 
bitmap is updated), and re-add the fresh disc to get that area re-synced 
onto the fresh disc.

Cheers,

John.

             reply	other threads:[~2010-04-02 11:49 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-04-02 11:49 John Robinson [this message]
2010-04-03  1:06 ` Check/repair RAID-5 with hints? John Robinson

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=4BB5D9B1.8070000@anonymous.org.uk \
    --to=john.robinson@anonymous.org.uk \
    --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).