From: Malahal Naineni <malahal@us.ibm.com>
To: linux-lvm@redhat.com
Subject: Re: [linux-lvm] Rebuilding ext4 filesystem on an LV
Date: Tue, 6 Jul 2010 09:17:45 -0700 [thread overview]
Message-ID: <20100706161745.GB31734@us.ibm.com> (raw)
In-Reply-To: <Pine.LNX.4.64.1007051420360.11654@bmsred.bmsi.com>
Stuart D. Gathman [stuart@bmsi.com] wrote:
> On Mon, 5 Jul 2010, Ken Bass wrote:
>
> > But what bothers me is this message I get when I run e2fsck (which runs
> > fsck.ext4):
> > "e2fsck: Invalid argument while trying to open
> > /dev/mapper/VolGroupX-LogVolX"
> >
> > Why am I getting that?
>
> Not an expert, just a user, but I suspect that the ioerr is because
> the metadata for that LV is still pointing to the missing PV. (I know
> you replaced it, but that doesn't update the LV.)
If everything went right, he should have the new PV in the LV, but looks
like something failed while activating the LV. Run 'dmsetup table' to
find out if the LV currently has new PV or old PV. You need
device-mapper knowledge for this.
> I suspect recovering the remaining data will require skipping the (huge)
> chuck of LV that was on the missing PV. Or maybe the experts here
> will recommend editing the metadata to move the extent from the missing
> PV to the new PV. The huge chunk will now have random data from the
> new drive. I would have initialized the new drive to zero (using the
> security erase) before using (maybe you did).
The best course of action would have been 'reading what ever data
available' from old disk to new disk. If the disk is absolutely
thrashed, then zero'ing the new PV may be better.
next prev parent reply other threads:[~2010-07-06 16:19 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 [this message]
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
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=20100706161745.GB31734@us.ibm.com \
--to=malahal@us.ibm.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).