linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Moving RAID distro
@ 2007-08-15 16:06 Richard Grundy
  2007-08-15 17:34 ` David Greaves
  0 siblings, 1 reply; 2+ messages in thread
From: Richard Grundy @ 2007-08-15 16:06 UTC (permalink / raw)
  To: linux-raid

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.

Would it just be a case of running:

sudo mdadm --create --verbose /dev/md0 --level=5 –raid-devices=5
/dev/sdb /dev/sdc etc

Or do I need to run some other command.

Thanks,

Rich
-
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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Moving RAID distro
  2007-08-15 16:06 Moving RAID distro Richard Grundy
@ 2007-08-15 17:34 ` David Greaves
  0 siblings, 0 replies; 2+ messages in thread
From: David Greaves @ 2007-08-15 17:34 UTC (permalink / raw)
  To: Richard Grundy; +Cc: linux-raid

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-08-15 17:34 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-08-15 16:06 Moving RAID distro Richard Grundy
2007-08-15 17:34 ` David Greaves

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).