From: Ben Nemec <lists@nemebean.com>
To: Leslie Rhorer <lrhorer@satx.rr.com>
Cc: linux-raid@vger.kernel.org
Subject: RE: Replacing a drive in RAID 0
Date: Thu, 05 Aug 2010 09:51:00 -0500 [thread overview]
Message-ID: <3215a34c262cfe726c66003c9ab6e025@localhost> (raw)
In-Reply-To: <9A.1C.11447.9316A5C4@cdptpa-omtalb.mail.rr.com>
On Thu, 5 Aug 2010 01:59:02 -0500, "Leslie Rhorer" <lrhorer@satx.rr.com>
wrote:
>> -----Original Message-----
>> From: linux-raid-owner@vger.kernel.org [mailto:linux-raid-
>> owner@vger.kernel.org] On Behalf Of Ben Nemec
>> Sent: Monday, August 02, 2010 5:18 PM
>> To: linux-raid@vger.kernel.org
>> Subject: Replacing a drive in RAID 0
>>
>>
>> Hi,
>>
>> I have a disk in a RAID 0 array that SMART tells me is dying, but
hasn't
>> died yet. I have a warranty replacement on the way, and I'm wondering
if
>> there's any way to copy the data off the dying drive to the new drive
and
>> swap the RAID array to use the new one (assuming the old one lasts long
>> enough to do that, of course). Can I just dd the entire drive over and
>> replace the bad drive? Can the md tools do it somehow? Maybe it's
>> impossible? Obviously nothing on this array is irreplaceable, but it
>> would
>> save me some hassle reinstalling things if I could save it.
>
> Well, yes, although one cannot guarantee there won't be any data
> loss. Of course you will need to take the array offline, and indeed I
> recommend you take it down now - or at least remount it as read-only,
and
> don't do any writes to it until after you have the new drive in place.
> Install the new drive, and then use ddrescue to copy the contents of the
> old
> drive to the new. Read the man page for ddrescue carefully, and take
care
> not to accidentally copy the new drive to the old.
Yeah, I actually did this last night and I double-checked that I was
copying to and from the correct drives about half a dozen times. I used
the Ubuntu Rescue Remix that includes ddrescue to do the actual copy and
everything went perfectly, no lost data according to ddrescue, and the
array came right up once I swapped the new drive in.
Thanks again to everyone for all their help.
-Ben
prev parent reply other threads:[~2010-08-05 14:51 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-08-02 22:18 Replacing a drive in RAID 0 Ben Nemec
2010-08-03 5:22 ` Mikael Abrahamsson
2010-08-03 6:14 ` Neil Brown
2010-08-03 7:46 ` Roman Mamedov
2010-08-03 8:29 ` Neil Brown
2010-08-03 15:28 ` Ben Nemec
2010-08-05 6:59 ` Leslie Rhorer
2010-08-05 14:51 ` Ben Nemec [this message]
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=3215a34c262cfe726c66003c9ab6e025@localhost \
--to=lists@nemebean.com \
--cc=linux-raid@vger.kernel.org \
--cc=lrhorer@satx.rr.com \
/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).