Go Back   Tech Support Forum > Alternative Computing > Linux Support

using mdadm to convert 1 drive system to 2 drive raid

This is a discussion on using mdadm to convert 1 drive system to 2 drive raid within the Linux Support forums, part of the Tech Support Forum category. How would you use mdadm to convert a running pre-installed system on a non-raid single drive to a dual drive


Reply
 
Thread Tools Search this Thread
Old 01-08-2011, 10:14 AM   #1
Registered Member
 
Join Date: Sep 2008
Posts: 6
OS: Window XP Vista Server 2003



How would you use mdadm to convert a running pre-installed system on a non-raid single drive to a dual drive raid system.
I was thinking about plugging in 2 new drives, set them up as raid and then block transfer from the old drive to the raid drives and then remove the old drive.

ex:
/dev/sda = non-raid single drive pre-existing linux system (has 2 partitions)
/dev/sdb = new raid drive #1
/dev/sdc = new raid drive #2

I would shut down the system, insert sdb and sdc and set them up as follows:

Create partitions on sdb, sdc using fdisk on the entire disks.
/dev/sd[bc]1 would be for /dev/sda1
/dev/sd[bc]2 would be for /dev/sda2

mdadm --create --verbose /dev/md0 --level=stripe --raid-devices=2 /dev/sdb1 /dev/sdc1
mdadm --create --verbose /dev/md1 --level=stripe --raid-devices=2 /dev/sdb2 /dev/sdc2

Copy /dev/sda1 to /dev/md0 (how?)
Copy /dev/sda2 to /dev/md1 (how?)

Make sure /dev/md0 is bootable (???)

Shutdown, remove /dev/sda.

And now I should be able to boot from /dev/md0.

How???

Any walkthrus would be great.

I've found this site which has some great info.

https://raid.wiki.kernel.org/index.php/Linux_Raid

Thanks for any info.

__________________
pquiring is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is on
Smilies are on
[IMG] code is on
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Post a Question


» Site Navigation
 > FAQ
  > 10.0.0.2


All times are GMT -7. The time now is 09:12 AM.


Copyright 2001 - 2014, Tech Support Forum

Windows 7 - Windows XP - Windows Vista - Trojan Removal - Spyware Removal - Virus Removal - Networking - Security - Top Web Hosts