xfs
[Top] [All Lists]

Re: XFS - hard drive dying

To: linux-xfs@xxxxxxxxxxx
Subject: Re: XFS - hard drive dying
From: evilninja <evilninja@xxxxxxx>
Date: Fri, 12 Aug 2005 14:24:44 +0200
Cc: A JM <vbtalent@xxxxxxxxx>
In-reply-to: <a0f05e890508120419a8d4066@mail.gmail.com>
References: <ecartis-08112005145056.16602.2@oss> <a0f05e89050811145023cc24b6@mail.gmail.com> <a0f05e8905081114525e29891f@mail.gmail.com> <42FC7C02.1090106@g-house.de> <a0f05e890508120419a8d4066@mail.gmail.com>
Sender: linux-xfs-bounce@xxxxxxxxxxx
User-agent: Mozilla Thunderbird 1.0.6 (X11/20050804)
A JM schrieb:
> So the dd_rhelp command line for the entire drive to recover to
> another drive would read like? (dd_rhelp /dev/VGforMyth/video
> /dev/hdc/video)

i don't know much about LVM but when /dev/VGforMyth/video is your bad
drive, /dev/hdc/video should be the good drive of the *same* size:

% dd_rescue /dev/VGforMyth/video /dev/hdc/video

i guess the "outfile" could be a FILE too:

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

later on you could loopmount VGforMyth.img or use losetup to check the
filesystem.

> Does this need to be done in "single user" mode? 

not necessarily, but for unmounting /dev/VGforMyth/video all applications
that have a lock on the data must be shutdown. i'd recommend "single user"
mode.

Christian.

-- 
BOFH excuse #59:

failed trials, system needs redesigned


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