Rescuing mangled RAID5 array



Hello

I'm trying to recover data from a broken RAID5 array (drive removed whilst array was rebuilding!).

What's the best way to get an image of the corrupted partition and how would I run fsck -y on the image. The corrupted partition is 1.3TB, /dev/da1s1d, usually mounted as /raid. I have another empty 2TB partition handy, /dev/da2s1d currently mounted as /raid2.

Following this thread

http://lists.freebsd.org/pipermail/freebsd-questions/2006-November/ 134984.html

I'm trying

dd if=/dev/da1s1d of=/raid2/rescueimage

but it's proceeding very slowly (2MB/sec) and I'm not entirely sure I'm going to be able to mount and fix the resulting image with fsck at the end of it.

So is there a faster way to clone a partition (unfortunately the drive array itself doesn't offer this functionality) and can you fsck an md mounted image. assuming i should use md to mount the image?

There's nothing wrong with the drives physically, just mangled metadata I think. I can actually mount the partition readonly but many directories are missing or listed as 'Bad file descriptor'. I've copied about 20% of the data off but the most important 50% doesn't even have it's directory listed any more :(

Thanks in advance for any help

Greg.
_______________________________________________
freebsd-questions@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscribe@xxxxxxxxxxx"



Relevant Pages

  • Re: Adding another Raid - How Best to go about it.
    ... It's _almost_ as easy to create the array at BIOS level. ... so the layout and use(size of parts, %free space, files on it). ... I would adjust the swapfile on the OS partition to RAM+20MB ... Plug in drives, ...
    (microsoft.public.windows.server.sbs)
  • RE: Fault tolerance with spanned drives
    ... This post is provided "AS IS" and without warranty, ... I created the raid array. ... plus another and space from a third, I can create my 53G partition. ... but these drives have no fault tolerance. ...
    (microsoft.public.windows.server.general)
  • Re: Expanding a partition - DiskPart.exe
    ... You won't be able to extend the C:\ is there isn't any space after. ... You shouldn't convert to dynamic just to extend these partition. ... Both my drives are filling up and it's affecting performance. ... I have documentation on using the HP Array Configuration Utility to add the new drive into the array, but am stuck there for then adding that new space to the C and D drives. ...
    (microsoft.public.windows.server.general)
  • Re: Expanding a partition - DiskPart.exe
    ... the extend function is limited. ... You shouldn't convert to dynamic just to extend these partition. ... Both my drives are filling up and it's affecting performance. ... I want to add an additional drive to the array this weekend. ...
    (microsoft.public.windows.server.general)
  • Re: Dual Boot Instructions
    ... If "drive" means a single partition or logical drive, then the negatives you've heard are very true. ... But if "drive" means a physical hard disk drive, then I'm in big trouble because I have SIX versions of Windows installed on my 1 TB Disk 1, my second HDD! ... The name stuck when we added hard disk drives, ...
    (microsoft.public.windows.vista.hardware_devices)