From: "Jonathan Baker-Bates" <jonathan@bakerbates.com>
To: linux-raid@vger.kernel.org
Subject: The right way to recover from md partition failure?
Date: Mon, 30 Aug 2004 20:38:36 +0100 [thread overview]
Message-ID: <NDBBJAGHALMCJCFDHBILAEPBENAA.jonathan@bakerbates.com> (raw)
I've been reading various FAQs and HOWTOs, but for some reason can't really
get an answer to what I assume is a simple question about how best to get a
failed md RAID 1 partition back into an array.
After a power-outage, I see that cat /proc/mdstat shows:
Personalities : [raid1]
read_ahead 1024 sectors
Event: 3
md1 : active raid1 hdg3[1]
178787264 blocks [2/1] [_U]
md0 : active raid1 hde2[0] hdg2[1]
2048192 blocks [2/2] [UU]
md2 : active raid1 hde1[0] hdg1[1]
104320 blocks [2/2] [UU]
unused devices: <none>
So it looks like /dev/hde3 is down. I'm not sure exactly why this is, but
there were some console messages about a bad block or something. So,
assuming hdg3 is OK (which it seems to be) can I just do the following?
Copy good partition to bad one:
dd if=/dev/hdg3 of=/dev/hde3
Add the resulting copy to the raid:
raidhotadd /dev/md1 /dev/hde3
fsck /dev/md1 to make sure all is well.
Is there a better way?
Jonathan
next reply other threads:[~2004-08-30 19:38 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-08-30 19:38 Jonathan Baker-Bates [this message]
2004-08-30 20:14 ` The right way to recover from md partition failure? Guy
2004-08-30 21:33 ` David Greaves
2004-08-30 21:50 ` Jonathan Baker-Bates
2004-08-30 22:11 ` David Greaves
2004-08-30 22:17 ` Philip Molter
2004-08-30 23:27 ` Guy
2004-08-30 21:44 ` Jonathan Baker-Bates
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=NDBBJAGHALMCJCFDHBILAEPBENAA.jonathan@bakerbates.com \
--to=jonathan@bakerbates.com \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.