On Fri, Feb 12, 2010 at 11:29 PM, Rajeev R. K. rajeevrk@gmail.com wrote:
On Fri, Feb 12, 2010 at 2:02 PM, Nadeem M. Khan nadeem.m.khan@gmail.comwrote:
Sadly Not. Notice, he mentions software raid, which needs to be a separate physical partition type. and even many hardware raid controllers will wipe the contents while initialising an array. You can only swap disks without data loss after the raid 1 array is running.
If he hasn't formatted the partitions as "Linux raid autodetect", then yes the procedure becomes complicated, but not impossible -
1. copy disk1's partition table to disk2 2. create the raid array consisting of disk2 only. 3. with one cp command, copy all data from disk1 to the raid array 4. modify grub.conf for the system to boot from the new raid array (mdX) instead of sdX. 5. Initialize disk1 and add it to the array.
Regards, NMK.