From: John Robinson <john.robinson@anonymous.org.uk>
To: John Powell <powellj@gmail.com>
Cc: linux-raid@vger.kernel.org
Subject: Re: Moving existing RAID5 disks to an alternate server
Date: Thu, 20 Jan 2011 10:28:42 +0000 [thread overview]
Message-ID: <4D380E5A.7030601@anonymous.org.uk> (raw)
In-Reply-To: <AANLkTim4xsHXxBERJf0qucYgAizmzB8__66RR3XnT081@mail.gmail.com>
On 20/01/2011 03:05, John Powell wrote:
[...]
> Anyhow, the point of my post: Is it really as simple as it sounds? Use
> mdadm to recreate the RAID5 volume and away I go? Are there any
> details that one can offer that I may need to be aware of or is simply
> reading the man pages and various HOWTO's out on the net enough to get
> started? Obviously I am taking this slow as the data on the disks is
> important to me.
Well, you might be really lucky and find that a few mdadm --examine
commands give you all you need to know, or even that whatever distro you
run auto-detects and starts your array, but given that the data is
valuable, I'd recommend making images of the discs and working with
those instead.
First up, use smartctl to check the drives don't have bad sectors. If
they do, and perhaps even if they don't, ddrescue or dd_rescue is your
friend (I don't know which is better).
Then, if you have another 4 drives of exactly the same size, that's
perfect, but you probably don't. If your PATA drives are relatively
small, you might be as well dd'ing or dd_rescuing all four drives to
images on a new larger SATA drive, then mounting the images via loopback
devices.
If you have trouble reading any of the drives for any reason, you might
make a backup copy of the image before starting to test it, or look at
some previous ideas on this list about making Copy-on-Write devices on
top of your loopback devices. This may be paranoia but may be worth
reading about, just to give you the option.
Then you can start poking the images with mdadm, dmraid, and perhaps
kpartx to activate any partitions, and report back as Neil suggested in
his post.
Best of luck.
Cheers,
John.
prev parent reply other threads:[~2011-01-20 10:28 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-01-20 3:05 Moving existing RAID5 disks to an alternate server John Powell
2011-01-20 4:48 ` NeilBrown
2011-01-20 10:28 ` John Robinson [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=4D380E5A.7030601@anonymous.org.uk \
--to=john.robinson@anonymous.org.uk \
--cc=linux-raid@vger.kernel.org \
--cc=powellj@gmail.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).