[linux-lvm] Rebuilding ext4 filesystem on an LV
Stuart D. Gathman
stuart at bmsi.com
Mon Jul 5 18:27:51 UTC 2010
On Mon, 5 Jul 2010, Ken Bass wrote:
> But what bothers me is this message I get when I run e2fsck (which runs
> "e2fsck: Invalid argument while trying to open
> 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.) I also noticed that the lvdisplay
you posted says LogVolX belongs to VolGroupW, not VolGroupX. Perhaps you
sanitized the names and that is a typo - otherwise, there is something screwy.
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).
Stuart D. Gathman <stuart at 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.
More information about the linux-lvm