recommendations on how to recover a corrupted, LVM-based hard drive?

Robert Nichols rnicholsNOSPAM at comcast.net
Thu Feb 13 15:06:17 UTC 2014


On 02/12/2014 02:08 PM, Robert P. J. Day wrote:
>    it was 2G that was overwritten, not just 2M. so i'm quite willing to
> believe that it's unrecoverable. but that "testdisk" utility claims to
> be finding *something*, so i'll just let it finish and post what it
> reports.
>
>    as for disk partitioning, i was told that half the drive was
> allocated to a "home" LV, but i have no idea where that would have
> started or how badly it would have been corrupted.

In /etc/lvm/backup you should find a file describing that volume group.
It will show what partition each PV was on ("Hint only") and where the
extents for each LV were located. If you can figure out where the PV's
partition started and re-create that in the partition table, you can
then do a "vgcfgrestore" to rebuild the VG metadata. If your old home
LV was beyond the overwritten area, you should get it back.

If you don't find the VG in /etc/lvm/backup, try /etc/lvm/archive.

-- 
Bob Nichols     "NOSPAM" is really part of my email address.
                 Do NOT delete it.



More information about the users mailing list