LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices



Reply
 
Search this Thread
Old 11-28-2007, 05:44 PM   #1
Micro420
Senior Member
 
Registered: Aug 2003
Location: Berkeley, CA
Distribution: Mac OS X Leopard 10.6.2, Windows 2003 Server/Vista/7/XP/2000/NT/98, Ubuntux64, CentOS4.8/5.4
Posts: 2,986

Rep: Reputation: 45
How to create software raid on existing /?


Is there any way to create a software raid 1 on the / partition without losing data?

I've installed Ubuntu on a hard drive. I added a 2nd hard drive and now want to create a software raid 1 mirror for the / partition. How do I do this? If I used the mdadm command, it says that the device is busy or in use.

I have tried using the rescue boots and creating the raid using fdisk and mdadm and editing grub to reflect the new /dev/md0, but when I boot I get some kernel panicks.

Is there any way to create a software raid 1 on the / partition?
 
Old 11-29-2007, 12:03 AM   #2
dkm999
Member
 
Registered: Nov 2006
Location: Seattle, WA
Distribution: Fedora
Posts: 407

Rep: Reputation: 35
Warren Togami, of RedHat, has come up with a scheme that is alleged to work, at least on RedHat distributions. I think it will generalize, and the web page is good reading anyway, to let you know what is involved in booting from a RAID volume. Your kernel panics are almost certainly a side effect of not having the RAID stuff started by the time that the kernel first starts up; I saw the same thing when I was confused about the difference between Software RAID and FakeRAID. Here is the link to Warren's page: http://togami.com/~warren/guides/remoteraidcrazies/
 
Old 11-29-2007, 03:19 AM   #3
Micro420
Senior Member
 
Registered: Aug 2003
Location: Berkeley, CA
Distribution: Mac OS X Leopard 10.6.2, Windows 2003 Server/Vista/7/XP/2000/NT/98, Ubuntux64, CentOS4.8/5.4
Posts: 2,986

Original Poster
Rep: Reputation: 45
Thanks for the link! I appreciate it. Looks like it's going to be pretty tricky to get it going, but I will let you know if it works on an Ubuntu machine. I will first test it in VMware
 
  


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
How can I grow my existing software raid 1? sn_kp Linux - Hardware 0 07-23-2007 06:38 AM
Use existing software RAID with new Rocketraid 2320 Zotty Linux - Hardware 4 05-27-2007 05:50 AM
Software RAID on an existing system endfx Linux - General 3 12-18-2006 02:05 PM
How do I add a spare to existing software RAID 5 ? philforrest Linux - Software 1 12-28-2003 10:33 PM
add software raid-1 to existing system hoover93 Linux - Hardware 1 10-07-2003 11:52 AM


All times are GMT -5. The time now is 11:52 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration