LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 09-15-2006, 05:26 AM   #1
davidsaxton
LQ Newbie
 
Registered: Jan 2005
Location: UK
Distribution: Debian
Posts: 2

Rep: Reputation: 0
Recovering data on RAID 5 with semi-faulty hdd


Hi everyone!

I have a raid 5 array from /dev/sd[abcd], with one redundant disc. After my computer crashed, I found the raid array being rebuilt for /dev/sdc.

However, about three-quarters the way through the rebuilding process (as determined by /proc/mdstat), I start getting kernel hdd errors from /dev/sdd, and the rebuilding process stops. This happens consistently (after restarting the computer).

I can mount the raid device, and all of my data appears usable - the errors on /dev/sdd only appear to occur when rebuilding the array. I intend to buy a new harddisk to replace /dev/sdd, and obviously I want to keep the data from the raid device. However, I do not know how best to replace /dev/sdd. I cannot simply swap out /dev/sdd with the new disk, since the raid array is not built on /dev/sdc and I cannot rebuild the array from only two discs.

Any ideas on how to keep my data? Should I attempt to mirror bit-for-bit the data on /dev/sdd to a new drive, while skipping faulty parts? (if so, how?). Or can I tell mdadm to skip the bad parts of /dev/hdd?
 
Old 09-16-2006, 02:50 PM   #2
gdmellott
LQ Newbie
 
Registered: Jan 2006
Location: Paonia, Colorado USA
Distribution: Red Hat, Debian, trying others.
Posts: 17

Rep: Reputation: 0
Recovering data on RAID 5 with semi-faulty hdd

I suspect the security/safety features are getting in the way of what should be a viable endeavor. (I wish such things could be turned off with a password or the likes). Anyway, I suspect the only way to get the data off is to mount the array as is is. (You say the data is still there. [Two drives in RAID 5 should have it all in it, if three was the active drive count. It is basically a RAID 0 with one extra drive holding a parity checking bit to allow recovery of one lost drive.]) And simply copy it over to another RAID array either on that machine over a network. Otherwise, one might copy to a non-redundant file system (poss. though a USB port). Personally, I lean to LINUX's software RAID 1 arrays. They are a lot happier working alone if nothing else. You just use a lot of drive going that route.

Sincerely,

Gregory D. MELLOTT
 
Old 09-16-2006, 04:45 PM   #3
davidsaxton
LQ Newbie
 
Registered: Jan 2005
Location: UK
Distribution: Debian
Posts: 2

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by gdmellott
And simply copy it over to another RAID array either on that machine over a network. Otherwise, one might copy to a non-redundant file system (poss. though a USB port).
Thanks for the suggestion, but unfortunately I don't have enough spare space to copy all the data (about 600GB) from the raid device. (Still though, the important data is backed up).

Nonetheless, a new harddrive has been bought, and that should be arriving in a few days. Hopefully, "ddrescue" should be able to copy most of the data from the failing harddrive, and then I can plug the new harddrive into the array instead. I think that this is my best/only option.
 
  


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
Q: KT7A-RAID has faulty mouse port - What options might I consider? philstan Linux - Hardware 1 07-01-2006 03:38 PM
Advice needed on transferring data from HDD to HDD denimglen Linux - Newbie 3 03-04-2006 08:33 PM
recovering data from an old RAID -0 dominant Linux - Software 1 01-26-2005 03:42 AM
verify faulty software raid hard drive jwstric2 Linux - Hardware 0 07-06-2004 11:58 PM
software raid - add device wrongly marked faulty back into array? snoozy Linux - General 2 06-27-2003 03:11 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

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