Re: Rebuilding ext4 filesystem on an LV

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.)  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@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.

_______________________________________________
linux-lvm mailing list
linux-lvm@redhat.com
https://www.redhat.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/


[Index of Archives]     [Gluster Users]     [Kernel Development]     [Linux Clusters]     [Device Mapper]     [Security]     [Bugtraq]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]

  Powered by Linux