Find the answer to your Linux question:
Results 1 to 2 of 2
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    LVM Cloning using Partimage

    I'm trying to clone an LVM partition using partimage.

    The specs say this should work and even the partimage author, Franck, confirmed it here (edit: can't post the link cuz of 15 posts requirement...just google "bookweevil lvm" lol don't ask)

    Here's what I've done:

    1) Took an empty 1.5 TB HDD and 'dd' zerofilled ~30GB to ensure a good chunk of the HDD is cleared of any data
    2) Used fdisk to create an LVM partition on the HDD
    3) Created a logical volume (LV) on the partition via pvcreate, vgcreate, and lvcreate (in that order)
    4) I mount the LV and copy some random files into it.

    5) ...LOL I just figured out what I did wrong while typing this out!!!

    6) ...OK back to what I originally did. I then ran partimage via the command line to save the LVM partition with the newly copied files as dictated in the link above.
    7) The error was "Can't read bitmap block 0 from image".

    SOLUTION: Turns out I had kept the LVM partition mounted. Partimage cannot save/restore mounted partitions! So once I unmounted the LVM partition and ran partimage from the command line, it worked like a charm.

    Anyway, hope this helps someone in the future!

  2. #2
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    I can be found either 40 miles west of Chicago, in Chicago, or in a galaxy far, far away.
    Thanks for posting your solution to this problem. It is a common error for new users to try to modify partitions and volumes when they are mounted. Hopefully this will help other users, and welcome to the forums. BTW, you can post URLs provided you mangle the source name a bit, such as using www(dot)something(dot)net/path - users can then replace the (dot)s with . and get the proper URL. It still protects the system from trolls and spammers, which is what the 15 post requirement is intended to do.
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts