[CentOS] Converting to Raid1

Wed Dec 1 09:04:27 UTC 2010
Tom H <tomh0665 at gmail.com>

On Tue, Nov 30, 2010 at 12:17 PM, John Kennedy <skebi69 at gmail.com> wrote:
> On Tue, Nov 30, 2010 at 11:59, Matt <lm7812 at gmail.com> wrote:

>> Have a CentOS 4.x 32 bit server running on a single 500M SATA drive.
>> What is easiest way to convert too RAID 1 on it?  Anyone have a link?
>> Would be open to hardware or software just do not want to reinstall
>> the entire mess.

> Why would you mirror a single disk? You need to get another 500Gb hard drive
> to mirror with.


> Once you get the second drive, you need to make sure LVM is installed.

Not really. You can choose not to use LVM.

> I think you then need to add your partitions as physical drives and partition
> the new drive to match your existing one.

I don't understand the above. Basically both disks have to be
partitioned in the same way and, assuming that sda is the current disk
and sdb is the new disk, you can do so with "sfdisk -d /dev/sda |
sfdisk /dev/sdb".