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

Re: [linux-lvm] Partition Recovery in LVM



On 08/16/2010 05:45 AM, Andrew Ragone 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?

No; LVM2 sits a level above partitioning. If you had a partition table
on the devices that were being used by LVM2 when you backed up you
should put it back before you restore (and back it up separately of course).

Note also that if you were using partitions then you'll need to
re-create the PVs on the appropriate partitions after restoring those
before you can restore the LVM2 metadata.

If you're just using whole-disk devices then there are no partitions or
partition tables to worry about.

If you mean partition tables that are stored _inside_ logical volumes
(e.g. where the LV is a whole-disk image for a virtual machine
containing partitions) then the answer's no as well; in this case the
partition table is just ordinary data on the LV and LVM2 doesn't know or
care about it at all (so you need to back it up separately, just like
any other data stored in an LV).

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

Run the tools agains the logical volume (LV), not the physical volume (PV).

Regards,
Bryn.


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