If you write from disk image to virtual LVM device, you will never overwrite LVM metadata. The most convenient way to copy VM image is using qemu-img, since it may not copy unallocated places of VM image, leaving it uninitialized in LVM, which is significantly faster.
2016-07-08 20:52 GMT+05:00 Brian McCullough <[email protected]>: > > I have been hunting for some time over the past couple of days, and find > several documentss that talk about converting from an LVM2 volume to a > raw disk image for Xen, but nothing about the reverse. > > I have a VHD disk file that I would like to put on to an LVM2 volume, > like my other DomU guests. > > I can see using dd, but am concerned about overwriting the LVM2 header. > > > Does anybody have any suggestions? > > > Thanks, > Brian > > > _______________________________________________ > linux-lvm mailing list > [email protected] > https://www.redhat.com/mailman/listinfo/linux-lvm > read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/ > -- Segmentation fault
_______________________________________________ linux-lvm mailing list [email protected] https://www.redhat.com/mailman/listinfo/linux-lvm read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/
