linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: David Greaves <david@dgreaves.com>
To: Richard Grundy <richguk@gmail.com>
Cc: linux-raid@vger.kernel.org
Subject: Re: Moving RAID distro
Date: Wed, 15 Aug 2007 18:34:09 +0100	[thread overview]
Message-ID: <46C33911.7060108@dgreaves.com> (raw)
In-Reply-To: <622273920708150906t196689c8l48836b170986a713@mail.gmail.com>

Richard Grundy wrote:
> Hello,
> 
> I was just wonder if it's possible to move my RAID5 array to another
> distro, same machine just a different flavor of Linux.
Yes.

The only problem will be if it is the root filesystem (unlikely).


> Would it just be a case of running:
> 
> sudo mdadm --create --verbose /dev/md0 --level=5 –raid-devices=5
> /dev/sdb /dev/sdc etc

No
That's kinda dangerous since it overwrites the superblocks (it prompts first). 
If you make the slightest error in, eg, the order of the devices (which may be 
different under a new kernel since modules may load in a different order etc) 
then you'll end up back here asking about recovering from a broken array (which 
you can do but you don't want to.)


> Or do I need to run some other command.

yes
You want to use mdadm --assemble

It's quite possible that your distro will include mdadm support scripts that 
will find and assemble the array automatically.

David
-
To unsubscribe from this list: send the line "unsubscribe linux-raid" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

      reply	other threads:[~2007-08-15 17:34 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-08-15 16:06 Moving RAID distro Richard Grundy
2007-08-15 17:34 ` David Greaves [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=46C33911.7060108@dgreaves.com \
    --to=david@dgreaves.com \
    --cc=linux-raid@vger.kernel.org \
    --cc=richguk@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).