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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
09-15-2006, 05:26 AM
|
#1
|
LQ Newbie
Registered: Jan 2005
Location: UK
Distribution: Debian
Posts: 2
Rep:
|
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?
|
|
|
09-16-2006, 02:50 PM
|
#2
|
LQ Newbie
Registered: Jan 2006
Location: Paonia, Colorado USA
Distribution: Red Hat, Debian, trying others.
Posts: 17
Rep:
|
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
|
|
|
09-16-2006, 04:45 PM
|
#3
|
LQ Newbie
Registered: Jan 2005
Location: UK
Distribution: Debian
Posts: 2
Original Poster
Rep:
|
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.
|
|
|
All times are GMT -5. The time now is 04:22 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|