linux-ide.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: David Greaves <david@dgreaves.com>
To: IDE Linux <linux-ide@vger.kernel.org>
Subject: How to recover from a drive failure.
Date: Fri, 12 Nov 2004 14:05:58 +0000	[thread overview]
Message-ID: <4194C346.9000503@dgreaves.com> (raw)

Hi

I have raid5 setup and a disk died a couple of weeks back.
The RMA return arrived this morning and, as luck would(n't) have it, 
another raid disk died too.

The disks are Maxtor 250Gb SATA running through a Promise TX4.
It's a shame SMART doesn't work yet - but they are running cool (12cm 
fan pointed at them) and well powered.

Anyways, now I have a dead raid device :(

Since I have a good disk I was going to:
* insert new drive as /dev/sdd1
* dd if=/dev/sda1 of=/dev/sdd1
* mdadm /dev/md0 --remove /dev/sda1
* physically swap /dev/sda and /dev/sdd so /dev/sdd
* mdadm /dev/md0 --add /dev/sda1

Is this the best approach?
Especially the dd?
I think I saw a 'better way' but can't find it despite some concerted 
googling.

Any suggestions gratefully recv'd.

David
PS yes I'm buying a hot spare.
Yes I wish I'd done that before but you have to balance risk and I 
didn't expect 2 new Maxtor drives to die within a few months of 
purchase. 1million hours MTBF - yeah, right.
Equally why should a two sets of bad blocks screw up my raid array. <sigh>
No, I don't have a backup of 1Tb of data - I'm a home user.

                 reply	other threads:[~2004-11-12 14:06 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=4194C346.9000503@dgreaves.com \
    --to=david@dgreaves.com \
    --cc=linux-ide@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).