8

Ack, I think I screwed up bad. I had a power failure on a RAID5 array which caused the metadata to be inconsistent between drives.

I followed the advice here except a case of fat fingers caused me to run the --create command without a missing parameter. Running the Perl script that permutates through the various combination leads me unable to mount an array. I have several questions:

  1. Am I totally screwed here, is there anything else I can do? The drives themselves seem to be fine. Does the missing parameter blow out any chance I have of recovering my data?

  2. Is there anyway I can get some data, but mounting the drives? I'm not that familiar with how data is striped across disks so I don't know if it possible to recover some files.

5
  • 1
    Degraded means it is still working, just without redundancy.
    – psusi
    Jan 21, 2013 at 13:48
  • 2
    What is the output of cat /proc/mdstat?
    – Chris Down
    Jan 21, 2013 at 14:48
  • 2
    If you still have all the disks in the array but one, the data is recoverable. To help you, we need to know the current state of the array. What is the output of mdadm -D /dev/md0 (replace md0 by md255 or whatever the appropriate number is)? What are the original components of the array, which ones went bad? Jan 21, 2013 at 21:53
  • It would also be good to know the event count of every member disk. So you should also post the output of mdadm -E /dev/sdXY for every member disk of the corresponding array.
    – teissler
    Feb 22, 2013 at 13:02
  • Not necessarily, for RAID5 you have to have N-1 disks. So if your RAID-5 array was 5 disks, you need 4 of them to rebuild. RAID-5 can only handle one disk being
    – sparticvs
    May 23, 2013 at 17:18

1 Answer 1

2

I'm sorry, but you've just hit the very common problem known as "write hole". In short words you do not have any chance to recover your array. More information on Wikipedia: http://en.wikipedia.org/wiki/RAID_5_write_hole

Expensive RAID controllers are equipped with batteries to avid this problem.

I hope you have a backup, that's the last chance of yours.

2
  • The write hole does not corrupt the whole array!
    – Totor
    Dec 6, 2013 at 21:30
  • Right you are, it corrupts an area(s) of unpredictable size and location in the array. Dec 7, 2013 at 10:24

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .