[linux-lvm] Partition Recovery in LVM

Bryn M. Reeves bmr at redhat.com
Mon Aug 16 14:25:00 UTC 2010

On 08/16/2010 02:02 PM, Romeo Theriault wrote:
> On Mon, Aug 16, 2010 at 13:45, Andrew Ragone <ajr9166 at rit.edu> wrote:
>> I’ve been searching like crazy to find an answer to this question to no avail: when you restore a backup of LVM does the backup contain partition table information as well?
> What kind of backup are you taking? Agent Client based or SAN snapshot based?
>> I recently recovered an LVM that had a partition inside of it, but it has since been unable to mount. Most recovery utilities such as TestDisk will only find the LVM so I’m unsure of how to proceed and “recover” the partition.
> I don't know the exact lvm commands off the top of my head, but first
> I think you need to import the VG with something like 'vgimportclone'

Only if you're backing up the VG by cloning the storage (SAN clone/snap,
dd image, MD split mirror etc.).

> and then once the volume group is imported you should be able to see
> the partitions that reside in the VG. Not sure but you may need to run
> a 'kpartx -a' to get the kernel to see the new partitions that are
> available in the VG. Then I think it should be a matter of mounting
> the partition in /dev/mapper/<VG>

This is only needed if the LVs contain partition tables themselves (e.g.
VM storage). Any partitions containing PVs on the cloned storage should
be detected automatically by the kernel.


More information about the linux-lvm mailing list