Re: Moving RAID distro

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux RAID Wiki]     [ATA RAID]     [Linux SCSI Target Infrastructure]     [Linux Block]     [Linux IDE]     [Linux SCSI]     [Linux Hams]     [Device Mapper]     [Device Mapper Cryptographics]     [Kernel]     [Linux Admin]     [Linux Net]     [GFS]     [RPM]     [git]     [Yosemite Forum]


  Powered by Linux