[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] implement lvm-aware P2V to reduce time cost significant
From: |
Stefan Hajnoczi |
Subject: |
Re: [Qemu-devel] implement lvm-aware P2V to reduce time cost significantly for linux server |
Date: |
Fri, 2 Jan 2015 10:19:29 +0000 |
User-agent: |
Mutt/1.5.23 (2014-03-12) |
On Sat, Dec 27, 2014 at 09:28:53AM +0800, Haoyu Zhang wrote:
> I want to P2V a redhat server to kvm vm, and lvm was used to manage disks
> in the redhat server.
> I want to only migrate the really used storage to vm image, which can
> reduce the time cost significantly sometimes,
> so I need the information of logical volume to physical disks bitmap, to
> know which physical sectors were really used,
> any ideas?
> Is there a tool off-the-shelf have implemented the target?
Have you looked at virt-p2v(1)?
http://libguestfs.org/virt-p2v.1.html
I'm not sure if it sparsifies the disk image during conversion or
whether you would have to run virt-sparsify(1) afterwards
(http://libguestfs.org/virt-sparsify.1.html). virt-sparsify(1) can
definitely unmap LVM's unused space.
Stefan
pgp8NHZ0DE34i.pgp
Description: PGP signature
- Re: [Qemu-devel] implement lvm-aware P2V to reduce time cost significantly for linux server,
Stefan Hajnoczi <=