Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Software
User Name
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.


  Search this Thread
Old 06-21-2006, 09:17 PM   #1
Registered: Mar 2004
Location: Portland, OR
Distribution: Gentoo
Posts: 40

Rep: Reputation: 15
Debian Raid 5 rebuild

the drive with the software RAID mdadm.conf layout died, and i now have three 80 GB drives without an array. how can i rebuild this array without losing data? i have a new kernel built (Debian 2.6.8-3-686-smp) and mdadm installed. my /etc/mdadm/mdadm.conf file is empty and i am VERY VERY NERVOUS!
i now realize how important that file is. i should've backed it up and i didn't
Old 06-23-2006, 05:49 PM   #2
Registered: Oct 2003
Location: utah
Distribution: Slackware 10.0, Gentoo 2006.0
Posts: 289

Rep: Reputation: 30
I do have to say it's odd that /etc/mdadm/mdadm.conf is empty. What does this return:

# cat /etc/raidtab


Last edited by onelung02; 06-23-2006 at 05:50 PM.
Old 06-23-2006, 05:50 PM   #3
Registered: Oct 2003
Location: utah
Distribution: Slackware 10.0, Gentoo 2006.0
Posts: 289

Rep: Reputation: 30
Also you might appreciate this:
Old 06-23-2006, 09:21 PM   #4
Registered: Apr 2004
Distribution: Debian
Posts: 143

Rep: Reputation: 15
You should be able to simply reassemble the array manually. You know which devices comprise the array, right? If they were /dev/sda, /dev/sdb, and /dev/sdc for the RAID5 at /dev/md0, for example, I think this'll work:
mdadm --assemble /dev/md0 /dev/sda /dev/sdb /dev/sdc
You can go ahead and try that. To the best of my knowledge, you can't actually damage an array with a simple assemble. The rest of the information that mdadm needs it should be able to find in the RAID superblock on one of the disks. I'm a novice when it comes to Linux software RAIDs but I just put my second one together a couple weeks ago and I had to do that at one point.

Good luck!


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
RAID 1 rebuild Roberto Colmegna Linux - Hardware 1 12-07-2005 07:58 PM
How to rebuild a damaged raid 1 array? mrpc_cambodia Linux - General 1 04-12-2005 08:22 AM
How can I rebuild an RPM in debian? linx win Debian 4 01-03-2005 09:42 AM
rebuild kernel 2.6 boot fail on soft RAID fs Ducko Fedora 4 10-05-2004 08:40 PM
Rebuild Software RAID 1 thadco Linux - Newbie 1 06-03-2004 04:06 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:14 PM.

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