LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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 06-21-2006, 09:17 PM   #1
catfishk
Member
 
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
onelung02
Member
 
Registered: Oct 2003
Location: utah
Distribution: Slackware 10.0, Gentoo 2006.0
Posts: 289

Rep: Reputation: 30
http://www.networknewz.com/2003/0113.html
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
onelung02
Member
 
Registered: Oct 2003
Location: utah
Distribution: Slackware 10.0, Gentoo 2006.0
Posts: 289

Rep: Reputation: 30
Also you might appreciate this:

http://www.tldp.org/HOWTO/Software-RAID-HOWTO.html#toc6
 
Old 06-23-2006, 09:21 PM   #4
tvynr
Member
 
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:
Code:
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!
 
  


Reply



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:01 PM.

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
Open Source Consulting | Domain Registration