Moving RAID distro

2007-08-15 Thread Richard Grundy
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 [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: Moving RAID distro

2007-08-15 Thread David Greaves

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 [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html