On Fri, Feb 12, 2010 at 2:02 PM, Nadeem M. Khan nadeem.m.khan@gmail.com wrote:
On Fri, Feb 12, 2010 at 12:20 PM, Rajeev R. K. rajeevrk@gmail.com wrote:
Well, if you've already installed the first hard disk, then i guess u'll have to shrink it for the raid partition. Ideally, it should be done at install time even. It'll only help if the raid partitions are on physically separate disks to protect against a single disk failure.
Can he not umount the partitions, create the raid arrays by including the second disk, and mount the arrays again?
Yes and no. To simply migrate existing "data" to a software raid1, what I do is :
1. install the new disk, 2. create the raid1 device (size same as the size of 'non-raid' partition) with one device missing. The raid device get activated. Partition type is 'fd' Linux autodetect raid. 3. I copy the data files from the non-raid partition to the raid partition. make the necessary changes in /etc/fstab 4. reboot the system ensure that data on the "new" raid device is accessible. 5. Change the partition type to fd on the "old" partition 6. Add it to the active raid device. 7. Once the second device is added, mirroring process starts - progress can be viewed periodically with "cat /proc/mdstat"
HTH, -- Arun Khan