[Top] [All Lists]

Re: Recover a XFS on raid -1 (linear) when one disk is broken

To: linux-xfs@xxxxxxxxxxx
Subject: Re: Recover a XFS on raid -1 (linear) when one disk is broken
From: Ethan Benson <erbenson@xxxxxxxxxx>
Date: Sat, 17 Jul 2004 12:39:43 -0800
In-reply-to: <40F9321C.7060403@grabbarna.nu>
Mail-copies-to: nobody
Mail-followup-to: linux-xfs@xxxxxxxxxxx
References: <40F6DBC1.6050909@grabbarna.nu> <20040715205910.GA9948@taniwha.stupidest.org> <40F9321C.7060403@grabbarna.nu>
Sender: linux-xfs-bounce@xxxxxxxxxxx
User-agent: Mutt/1.3.28i
On Sat, Jul 17, 2004 at 04:05:16PM +0200, Jan Banan wrote:
> I suppose the best stradegy is to get a new disk of the same size and 
> then try to copy the whole damaged disk with "dd" to the new disk and 
> then try to startup the raid again and after that run xfs_repair. What 
> arguments to "dd" would fit best in this case? I think I've read that 
> "dd" will normally abort when it can't read from a damaged disk and the 
> disk is quite big, 250 GB (Maxtor).

dd if=/dev/broken of=/dev/new bs=512 conv=sync,noerror

this will cause dd to continue after errors, and the blocks on the new
disk which could not be read from the old will be filled with null
bytes, rather then random data.  using a 512 byte blocksize will help
reduce the number of blocks which will be filled with nulls.

> sector=243818336
>    Jul 15 21:18:58 d kernel: end_request: I/O error, dev 22:41 (hdh), 
> sector 243818336
> Can I do something to make it better? The disk is only one year old but 
> maybe the temperature has been a little bit to high in the computer box.

ive heard you can sometimes make a disk temporarily become functional
again by shutting it down for a few days.  i think ive even heard that
putting it in a freezer can help.  in any event the most you could
hope for is just enough functional time to recover the data.

Ethan Benson

Attachment: pgpbFijEiaWI7.pgp
Description: PGP signature

<Prev in Thread] Current Thread [Next in Thread>