From: David Greaves <david@dgreaves.com>
To: whollygoat@letterboxes.org
Cc: linux-raid@vger.kernel.org
Subject: Re: some ?? re failed disk and resyncing of array
Date: Sat, 31 Jan 2009 10:38:22 +0000 [thread overview]
Message-ID: <49842A1E.1090105@dgreaves.com> (raw)
In-Reply-To: <1233389816.28363.1297740563@webmail.messagingengine.com>
whollygoat@letterboxes.org wrote:
> On a boot a couple of days ago, mdadm failed a disk and
> started resyncing to spare (raid5, 6 drives, 5 active, 1
> spare). smartctl -H <disk> returned info (can't remember
> the exact text) that made me suspect the drive was
> fine, but the data connection was bad. Sure enough the
> data cable was damaged. Replaced the cable and smartctl
> sees the disk just fine and reports no errors.
>
> - I'd like to readd the drive as a spare. Is it enough
> to "mdadm --add /dev/hdk" or do I need to prep the drive to
> remove any data that said where it previously belonged
> in the array?
That should work.
Any issues and you can zero the superblock (man mdadm)
No need to zero the disk.
> - When I tried to list some files on one of the filesystems
> on the array (the fact that it took so long to react to
> the ls is how I discovered the box was in the middle of
> rebuiling to spare)
This is OK - resync involves a lot of IO and can slow things down. This is tuneable.
> it couldn't find the file (or many
> others). I thought that resyncing was supposed to be
> transparent, yet parts of the fs seemed to be missing.
> Everything was there afterwards. Is that normal?
No. This is nothing to do with normal md resyncing and certainly not expected.
> - On a subsequent boot I had to run e2fsck on the three
> filesystems housed on the array. Many stray blocks,
> illegal inodes, etc were found. An artifact of the rebuild
> or unrelated?
Well, you had a fault in your IO system there's a good chance your O broke.
Verify against a backup.
David
--
"Don't worry, you'll be fine; I saw it work in a cartoon once..."
next prev parent reply other threads:[~2009-01-31 10:38 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-01-31 8:16 some ?? re failed disk and resyncing of array whollygoat
2009-01-31 10:38 ` David Greaves [this message]
2009-01-31 12:03 ` whollygoat
2009-02-01 19:41 ` Bill Davidsen
2009-02-02 1:47 ` whollygoat
2009-02-03 0:52 ` zero-superblock, " whollygoat
2009-02-03 8:48 ` David Greaves
2009-02-04 4:48 ` whollygoat
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=49842A1E.1090105@dgreaves.com \
--to=david@dgreaves.com \
--cc=linux-raid@vger.kernel.org \
--cc=whollygoat@letterboxes.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).