LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices



Reply
 
Search this Thread
Old 08-18-2008, 07:02 PM   #1
Ossar
Member
 
Registered: Oct 2004
Distribution: Debian, Ubuntu
Posts: 38

Rep: Reputation: 15
Migrate to a raid1 with mdadm


Hello all,

been a while since I was here but here goes:

To my astonishment the ubuntu installer CD does not come with the option of creating a md-raid so I installed my system onto a single disk thinking it would be easy to migrate it to a raid1 system later.

My current system is on sda1, a big ext3 partition, so I created a degraded md0 with sdb1 (reiserfs). So far so good. I did a tar pipe copying all the data and createda new initrd, installed grub to md0, crossed my fingers and rebooted.

The boot hangs on "Waiting for root file system". I've seen this before but in a totally different scenario. After a few minutes the boot drops to an initramfs shell complaining it cannot find the uuid specified. The strange part is that if I do a "mdadm --assemble /dev/md0 /dev/sdb1" and then continue the boot process all works well.

What have I missed in my devious masterplan to secure my data?

Last edited by Ossar; 08-18-2008 at 07:04 PM.
 
Old 08-19-2008, 12:08 PM   #2
Quakeboy02
Senior Member
 
Registered: Nov 2006
Distribution: Debian Squeeze 2.6.32.9 SMP AMD64
Posts: 3,245

Rep: Reputation: 121Reputation: 121
It's been awhile since I messed with mdadm, but I remember a number of threads on what you're trying to do. Have you used the search function here on LQ? ------------->

I believe that with mdadm, you have to have a boot partition that's separate from your raid partition(s).
 
Old 08-19-2008, 12:55 PM   #3
Ossar
Member
 
Registered: Oct 2004
Distribution: Debian, Ubuntu
Posts: 38

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by Quakeboy02 View Post
It's been awhile since I messed with mdadm, but I remember a number of threads on what you're trying to do. Have you used the search function here on LQ? ------------->

I believe that with mdadm, you have to have a boot partition that's separate from your raid partition(s).
Yeah, tried searching for my particular problem. I've also tried several guides on how to migrate to a md-raid.

Your guess that you have a separate partition that is separate is not true. I've run and am running several debian installations that does exactly what I'm trying to accomplish. Debian is easier to setup the way I want to due to the raid option being present in the installer by default.

Back to the problem,
my investigations so far indicate either a problem with the initramfs package or udev not populating the /dev correctly. But though some have the same problem as I do I have found no solution to the problem.
 
  


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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Raid1 MDADM, root volume weirdness SanRamonCA Linux - Server 17 07-25-2010 08:57 AM
mdadm error creating raid1 Ezplan Fedora 7 07-26-2007 11:35 AM
Software RAID1 with mdadm bujecas Debian 0 10-26-2006 10:56 AM
Problems with setting up raid1 with mdadm on slackware kikola Slackware 0 08-21-2006 06:29 AM
raid1 using mdadm? help plz akadidm Linux - Hardware 3 06-09-2005 05:58 AM


All times are GMT -5. The time now is 05:57 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