[linux-lvm] Copying a raw disk image to LVM2

Марк Коренберг socketpair at gmail.com
Sat Jul 9 12:23:10 UTC 2016


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 <bdmc at bdmcc-us.com>:

>
> 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
> linux-lvm at redhat.com
> https://www.redhat.com/mailman/listinfo/linux-lvm
> read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/
>



-- 
Segmentation fault
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/linux-lvm/attachments/20160709/5e01030c/attachment.htm>


More information about the linux-lvm mailing list