From owner-freebsd-questions@FreeBSD.ORG Tue Nov 14 18:30:25 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EB8AE16A412 for ; Tue, 14 Nov 2006 18:30:25 +0000 (UTC) (envelope-from greg@wholemeal.net) Received: from mail9.messagelabs.com (mail9.messagelabs.com [194.205.110.133]) by mx1.FreeBSD.org (Postfix) with SMTP id 26A8543D5D for ; Tue, 14 Nov 2006 18:30:24 +0000 (GMT) (envelope-from greg@wholemeal.net) X-VirusChecked: Checked X-Env-Sender: greg@wholemeal.net X-Msg-Ref: server-6.tower-9.messagelabs.com!1163529021!22426330!1 X-StarScan-Version: 5.5.10.7; banners=-,-,- X-Originating-IP: [212.135.210.82] Received: (qmail 28405 invoked from network); 14 Nov 2006 18:30:21 -0000 Received: from dsl-212-135-210-82.dsl.easynet.co.uk (HELO warprecords.com) (212.135.210.82) by server-6.tower-9.messagelabs.com with SMTP; 14 Nov 2006 18:30:21 -0000 Received: from [192.168.100.38] (HELO [192.168.0.2]) by warprecords.com (CommuniGate Pro SMTP 5.0.10) with ESMTPS id 6970065 for freebsd-questions@freebsd.org; Tue, 14 Nov 2006 18:30:20 +0000 Mime-Version: 1.0 (Apple Message framework v752.2) Content-Transfer-Encoding: 7bit Message-Id: <377AB060-5521-4F50-A7B3-6A47968EC773@wholemeal.net> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed To: freebsd-questions@freebsd.org From: Greg Eden Date: Tue, 14 Nov 2006 18:30:26 +0000 X-Mailer: Apple Mail (2.752.2) Subject: Rescuing mangled RAID5 array X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 14 Nov 2006 18:30:26 -0000 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.