Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I have a disk failure in software RAID (1) and marked a broken disk as fault (mdadm --manage /dev/md0 --fail /dev/sda1). Unfortunately I destroyed data on the second disk after that. Is it possible to restore data from disk I marked as failed (/dev/sda1)? If so, how?

UPDATE: OK, I've found the solution, I have to create a new md device: mdadm --assemble /dev/md10 /dev/sda4 --run

After that I had some troubles because of duplicate LVM PVs, but with a little effort I was able to get some data. Not all - because the hard drive is severely damaged...

share|improve this question
add comment

2 Answers

Restore your backup. You do have backups right? RAID is not a backup system. RAID is an availability system

If you don't have backups, then since these disks were in a RAID-1 you can treat each disk as a "normal" standalone disk and use any of the many data recovery tools available to try and recover data.

share|improve this answer
    
Of course I have backups, but they are almost 24h old, so I'd like to try to restore some new files from the RAID. –  Narel Nov 6 '13 at 0:28
    
On a side note, if you need your backups to be more current then you need to run them more often. Determine what your recovery point objective is and then run backups on that interval. –  joeqwerty Nov 6 '13 at 0:37
add comment

thats possible. Try to run mdadm and rescan array. Have you used LVM there?

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.