linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: David Greaves <david@dgreaves.com>
To: Neil Brown <neilb@suse.de>, linux-raid@vger.kernel.org
Subject: sync_action repair not reading all sectors?
Date: Mon, 16 Mar 2009 11:27:02 +0000	[thread overview]
Message-ID: <49BE3786.50809@dgreaves.com> (raw)

I have a drive that has bad sectors. Lots of them.

smartctl shows
# 1  Short offline       Completed: read failure       20%       530
1953520877

A simple ddrescue to this part of the disk gets this:

Mar 16 10:41:28 elm kernel: [ 8643.123397] sd 3:0:0:0: [sdd] 1953525168 512-byte
hardware sectors (1000205 MB)
<snip<>51/40:00:f0:5c:70/00:00:74:00:00/e0 Emask 0x9 (media error)
Mar 16 10:41:29 elm kernel: [ 8644.190060] ata4.00: status: { DRDY ERR }
Mar 16 10:41:29 elm kernel: [ 8644.190099] ata4.00: error: { UNC }

and reports 30 or so errors.


mdstat tells me:
md0 : active raid5 sdd1[0] sdb1[2] sda1[1]
      1953519872 blocks level 5, 64k chunk, algorithm 2 [3/3] [UUU]

So sdd1 is in there.

/dev/sdd1 is the full disk

Now this is an enterprise class disk so I thought re-writing the blocks would be
worthwhile as a first step. (It is being RMAed but if it succeeds then I'll stop
the array, mirror/replace the disk and start the array - less risky than a resync).

However (two runs of)
  echo repair > /sys/block/md0/md/sync_action
ran to completion without *any* errors being reported in syslog (or anywhere)

Is this expected? It suggests that it isn't reading the bad parts of sdd. It
certainly hasn't repaired it and I'm none the wiser...

kernel is 2.6.26-1-xen-686
mdadm v2.6.7.2


PS
This is an excellent place where I'd love to add in a new 'spare' disk, mirror
sdd to the new disk (apart from the bad sectors which should come from the
array) and then swap new for old.
Instead I'm going to have to go degraded and sync - risking a sector read
failure on one of the other drives and a restore from backup :(

-- 
"Don't worry, you'll be fine; I saw it work in a cartoon once..."

             reply	other threads:[~2009-03-16 11:27 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-03-16 11:27 David Greaves [this message]
2009-03-16 15:04 ` sync_action repair not reading all sectors? David Lethe
2009-03-16 15:20   ` Greg Freemyer
2009-03-17 10:49     ` David Greaves
2009-03-17 21:46 ` Dan Williams
2009-03-18 12:23   ` David Greaves

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=49BE3786.50809@dgreaves.com \
    --to=david@dgreaves.com \
    --cc=linux-raid@vger.kernel.org \
    --cc=neilb@suse.de \
    /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).