xfs
[Top] [All Lists]

Re: XFS - hard drive dying

To: "linux-xfs@xxxxxxxxxxx" <linux-xfs@xxxxxxxxxxx>
Subject: Re: XFS - hard drive dying
From: evilninja <evilninja@xxxxxxx>
Date: Sun, 14 Aug 2005 21:18:42 +0200
Cc: A JM <vbtalent@xxxxxxxxx>
In-reply-to: <a0f05e8905081310564413f17c@xxxxxxxxxxxxxx>
References: <ecartis-08112005145056.16602.2@oss> <a0f05e89050811145023cc24b6@xxxxxxxxxxxxxx> <a0f05e8905081114525e29891f@xxxxxxxxxxxxxx> <42FC7C02.1090106@xxxxxxxxxx> <a0f05e89050813105523368bee@xxxxxxxxxxxxxx> <a0f05e8905081310564413f17c@xxxxxxxxxxxxxx>
Sender: linux-xfs-bounce@xxxxxxxxxxx
User-agent: Mozilla Thunderbird 1.0.6 (X11/20050804)
(please respond on-list, so everyone can help, especially when i enjoyed
an offline-weekend ;-))

A JM schrieb:
> I have an identical drive to the one that is failing. Does that drive
> need to be formatted for this to work?

no, if you dd(_rescue) to the device (the good harddrive) itsself, it does
not have to be formatted. even if it was formatted, say with ext3 - it
will all be overwritten by dd. IOW the target disk should contain no
(valuable) data.

if you dd to a file:

% dd_rescue /dev/VGforMyth/video /tmp/VGforMyth.img

then /tmp/ has to be accessible (and thus mounted) of course.


> What in particular would you run on the new disk after moving the data?
> 
> xfs_repair -n -v /dev/hdc/video

yes, looks good. but what exactly is "/dev/hdc/video" ? is it a volume
group or something? my new IDE disk on the 2nd IDE-channel (master) would
appear as "/dev/hdc". without the "/video".

if you saved the data to a file you might add "-f" to xfs_repair (although
my xfs_repair-v2.6.28 does without the option too):

% xfs_repair -f -n -v /tmp/VGforMyth.img

good luck,
Christian.
-- 
BOFH excuse #445:

Browser's cookie is corrupted -- someone's been nibbling on it.


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