Menu

How to use LVM2 backup to make image

david
2012-01-01
2013-04-05
  • david

    david - 2012-01-01

    As my machine's disk was dying I made a backup using Clonezilla Live

    -----------version---------------------------
    clonezilla-live-1.2.6-59-amd64
    This Clonezilla live iso file was created by this command:
    ocs-iso -s -i 1.2.6-59-amd64

    This is the list of files created by the backup
    -----files---------------
    disk
    Info-dmi.txt
    Info-lshw.txt
    Info-lspci.txt
    Info-packages.txt
    lvm_logv.list
    lvm_vg_dev.list
    lvm_VolGroup.conf
    parts
    sda1.ntfs-ptcl-img.gz.*  (I omit full list)

    sda2.ext4-ptcl-img.gz.*  (I omit full list)

    sda-chs.sf
    sda-hidden-data-after-mbr
    sda-mbr
    sda-pt.parted
    sda-pt.sf
    swappt-VolGroup-lv_swap.info

    VolGroup-lv_home.ext4-ptcl-img.gz.* (I omit full list)

    VolGroup-lv_root.ext4-ptcl-img.gz.*  (I omit full list)

    So far I have manually created disk image files following the instructions for the
    ntfs and ext4 (sda1 and sda2, respectively) using cat, gzip and partclone.restore.
    I mount these with loop and pick a few files to recover.

    My question is if there is a similar procedure for dealing with the LVM2
    pieces? I would like to process the pieces so that I can ultimately
    create a mountable disk image (not under LVM control).

    Is there a recipe that I can follow?

    Thanks very much.

     
  • Steven Shiau

    Steven Shiau - 2012-01-05

    I suggest that you use the same method, but reverse way to restore the image you have saved to the disk, i.e.
    use cat, gzip and partclone to restore the image.

    Steven.

     

Log in to post a comment.

Auth0 Logo