Menu

Cloning LVM metadata separately from the command line

Help
1 day ago
23 hours ago
  • Giorgio Busatto

    Hi,

    first of all, thanks a lot for this very useful software.

    I have a question regarding LVM volumes.

    As far as I know, clonezilla uses partclone to clone known filesystems such as ext4 or xfs by copying only the used sectors.
    I have used partclone separately from the command line to clone and restore my filesystems.

    Furthermore, as far as I understand, clonezilla also supports cloning disks containing LVM volumes.

    My question: is there a separate tool in the clonezilla package so that I can only clone the LVM metadata of an LVM physical volume
    and then restore them later?
    What I would like to do, is to copy all the sectors from an LVM physical volume that do not contain any data.
    I would then take an image of the data using partclone separately.

    I would then first restore the LVM physical volume by

    *
    writing back the metadata sectors to the target partition,
    *
    activating the logical volumes contained in the restored physical volume, and
    *
    restoring the filesystems to the logical volumes using partclone.

    Is there such a tool to create a binary backup of LVM metadata and restore it? Can I use such a tool in isolation without starting the whole clonezilla, like I do with partclone for filesystems?

    Thanks a lot,

    Giorgio

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.