From: Mike Hardy <mhardy@h3c.com>
To: linux-raid@vger.kernel.org
Subject: Re: Expanding array by changing disks (one by one)
Date: Thu, 14 Apr 2005 08:08:10 -0700 [thread overview]
Message-ID: <425E875A.2010503@h3c.com> (raw)
In-Reply-To: <Pine.LNX.4.56.0504141148400.14678@lion.drogon.net>
Gordon Henderson wrote:
> On Thu, 14 Apr 2005, Laurent CARON wrote:
>>
>>- Copy the data over a new array and replace the disks
>
>
> Do this! You know it makes sense. If nothing else, it'll make sure you
> have an archive of the data. Do verify the copy before you replace the
> disks too.
Definitely make a backup, and once you do that the rest is just testing
anyway, isn't it?
>>- Replace each disk (one after the other(after resync)) of the existing
>>array with a bigger one.
>
> You would have to guarantee that each disk had zero surface defects before
> you started this. Use badblocks (or dd) to do a surface scan of each disk.
> One bad block and you'll be in the 2-disk failure mode which will likely
> cause loss of all data.
Alternatively, you could do a round of SMART long tests via smartctl.
If you have one bad block you will be in 2-disk failure mode, but this
will not result in loss of all data. It will result in loss of whichever
file had the bad block in it. Even then, there are now tools (namely a
script I've posted a couple times) that can calculate the contents of a
given parity block or disk block just from the disk contents (while the
array is offline) so its possible to manually correct single block
failures as long as the rest of the blocks in the stripe are okay.
That solves the most usual scenario, albeit via a process that is pretty
ugly. Should make you feel safer if you feel like experimenting though.
The real takeaway is that making a backup, verifying it, and then doing
your maintenance is going to be the fastest and safest way to do this,
even if the disk-by-disk swap / mdadm grow way works
-Mike
next prev parent reply other threads:[~2005-04-14 15:08 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-04-14 10:11 Expanding array by changing disks (one by one) Laurent CARON
2005-04-14 10:15 ` Andy Smith
2005-04-14 11:02 ` Gordon Henderson
2005-04-14 15:08 ` Mike Hardy [this message]
2005-04-14 11:04 ` 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=425E875A.2010503@h3c.com \
--to=mhardy@h3c.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 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).