linux-lvm.redhat.com archive mirror
 help / color / mirror / Atom feed
From: Ken Bass <daytooner@gmail.com>
To: LVM general discussion and development <linux-lvm@redhat.com>
Subject: Re: [linux-lvm] Rebuilding ext4 filesystem on an LV
Date: Mon, 12 Jul 2010 11:57:58 -0700	[thread overview]
Message-ID: <AANLkTikgXu9hKUQ7rq7_8KauyvrKGgDASxeyBM08GRXW@mail.gmail.com> (raw)
In-Reply-To: <Pine.LNX.4.64.1007081510460.10077@bmsred.bmsi.com>

[-- Attachment #1: Type: text/plain, Size: 2778 bytes --]

On Thu, Jul 8, 2010 at 12:13 PM, Stuart D. Gathman <stuart@bmsi.com> wrote:

> On Thu, 8 Jul 2010, Stuart D. Gathman wrote:
>
> > Method 2:
> > With both new and failed drive connected, use dd_rescue or equivalent to
> > copy (most/some of) the failed drive to the new drive.  Remove failed
> > drive and bring up VG.  If UUID was not readable on failed drive, use
> > pvcreate to restore it on new drive.
>
>
(Question: does new drive need to be same physical size? can Or can I just
create a new partition with the old size - new drive is bigger.)

The real problem seems to be that the LV appears to the LVM as not
formatted. I am guessing this is because not only the partition got trashed,
but also the superblock(s)  data. I have tried to find backup superblocks,
but I keep getting the ioctl error, even from mke2fs. I will try dd_rescue -
I have to install it, since it is not by default.

I added a new drive to the LV, and tried pvmove, but, I got the ioctl error
again with that.

I should mention that an external case-free USB adapter is the best way
> to attempt recovery of failed drives.  You can even run the IDE/SATA/Power
> cable to a box in the freezer (and the USB adapter can sit on top of the
> freezer and a long USB cable go to your computer) - which often helps
> recover
> data from failing drives.
>
>
If the mountain won't come to Mohammed... I can always just get a large bag
of ice and (carefully wrapped up in waterproof cover) put the drive into it.
Will try that also :-).

FWIW: I did run dmsetup _table, and from /var/log/messages:

____________
Jul 12 09:17:25 Elmer kernel: device-mapper: ioctl: error adding target to
table
Jul 12 09:24:16 Elmer kernel: device-mapper: table: device 253:3 too small
for target
____________

Couple of thoughts:
* Using dd_rescue, is there a utility that can read through the physical
blocks on the drive, searching for something that looks like a superblock?

* Or, is it possible to physically disconnect the bad drive, bring up the
remainder of the LV with the hope of recovering whatever data was on those
drives. Att this point, I am resigned to the fact that the first drive is
dead or on its last gasp (SMARTD says something like: "Danger (Will
Robinson!) drive failure imminent. Back up data immediately.)" But the other
drives in the LV should have something on them still. Right?

As always thanks for the help.

             Stuart D. Gathman <stuart@bmsi.com>
>    Business Management Systems Inc.  Phone: 703 591-0911 Fax: 703 591-6154
> "Confutatis maledictis, flammis acribus addictis" - background song for
> a Microsoft sponsored "Where do you want to go from here?" commercial.
>
>
"All consuming fires of hell" - very loose translation from Mozart's
unfinished Mass for the Dead :-)

ken

[-- Attachment #2: Type: text/html, Size: 3731 bytes --]

      reply	other threads:[~2010-07-12 18:58 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-07-05  1:30 [linux-lvm] Rebuilding ext4 filesystem on an LV Ken Bass
2010-07-05  5:54 ` Bryan Whitehead
2010-07-05  8:52   ` Ken Bass
2010-07-05 10:06     ` Bryan Whitehead
2010-07-05 15:39       ` Ken Bass
2010-07-05 18:27     ` Stuart D. Gathman
2010-07-05 21:16       ` Ken Bass
2010-07-06 16:17       ` Malahal Naineni
2010-07-08  2:46         ` Ken Bass
2010-07-08 18:59           ` Malahal Naineni
2010-07-08 19:06           ` Stuart D. Gathman
2010-07-08 19:13             ` Stuart D. Gathman
2010-07-12 18:57               ` Ken Bass [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=AANLkTikgXu9hKUQ7rq7_8KauyvrKGgDASxeyBM08GRXW@mail.gmail.com \
    --to=daytooner@gmail.com \
    --cc=linux-lvm@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).