* implement lvm-aware P2V to reduce time cost significantly for linux server
@ 2014-12-27 1:28 ` Haoyu Zhang
0 siblings, 0 replies; 7+ messages in thread
From: Haoyu Zhang @ 2014-12-27 1:28 UTC (permalink / raw)
To: kvm-devel, qemu-devel; +Cc: Paolo Bonzini
[-- Attachment #1: Type: text/plain, Size: 428 bytes --]
Hi,
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?
Thanks,
Zhang Haoyu
[-- Attachment #2: Type: text/html, Size: 564 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Qemu-devel] implement lvm-aware P2V to reduce time cost significantly for linux server
@ 2014-12-27 1:28 ` Haoyu Zhang
0 siblings, 0 replies; 7+ messages in thread
From: Haoyu Zhang @ 2014-12-27 1:28 UTC (permalink / raw)
To: kvm-devel, qemu-devel; +Cc: Paolo Bonzini
[-- Attachment #1: Type: text/plain, Size: 428 bytes --]
Hi,
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?
Thanks,
Zhang Haoyu
[-- Attachment #2: Type: text/html, Size: 564 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [Qemu-devel] implement lvm-aware P2V to reduce time cost significantly for linux server
2014-12-27 1:28 ` [Qemu-devel] " Haoyu Zhang
@ 2015-01-02 10:19 ` Stefan Hajnoczi
-1 siblings, 0 replies; 7+ messages in thread
From: Stefan Hajnoczi @ 2015-01-02 10:19 UTC (permalink / raw)
To: Haoyu Zhang; +Cc: kvm-devel, qemu-devel, Paolo Bonzini
[-- Attachment #1: Type: text/plain, Size: 788 bytes --]
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
[-- Attachment #2: Type: application/pgp-signature, Size: 473 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [Qemu-devel] implement lvm-aware P2V to reduce time cost significantly for linux server
@ 2015-01-02 10:19 ` Stefan Hajnoczi
0 siblings, 0 replies; 7+ messages in thread
From: Stefan Hajnoczi @ 2015-01-02 10:19 UTC (permalink / raw)
To: Haoyu Zhang; +Cc: Paolo Bonzini, qemu-devel, kvm-devel
[-- Attachment #1: Type: text/plain, Size: 788 bytes --]
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
[-- Attachment #2: Type: application/pgp-signature, Size: 473 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [Qemu-devel] implement lvm-aware P2V to reduce time cost significantly for linux server
2015-01-02 10:19 ` Stefan Hajnoczi
@ 2015-01-03 0:47 ` Richard W.M. Jones
-1 siblings, 0 replies; 7+ messages in thread
From: Richard W.M. Jones @ 2015-01-03 0:47 UTC (permalink / raw)
To: Stefan Hajnoczi; +Cc: Haoyu Zhang, Paolo Bonzini, qemu-devel, kvm-devel
On Fri, Jan 02, 2015 at 10:19:29AM +0000, Stefan Hajnoczi wrote:
> 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.
It sparsifies automatically during conversion. No need to run
virt-sparsify afterwards :-)
Rich.
--
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
virt-df lists disk usage of guests without needing to install any
software inside the virtual machine. Supports Linux and Windows.
http://people.redhat.com/~rjones/virt-df/
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [Qemu-devel] implement lvm-aware P2V to reduce time cost significantly for linux server
@ 2015-01-03 0:47 ` Richard W.M. Jones
0 siblings, 0 replies; 7+ messages in thread
From: Richard W.M. Jones @ 2015-01-03 0:47 UTC (permalink / raw)
To: Stefan Hajnoczi; +Cc: Haoyu Zhang, qemu-devel, kvm-devel, Paolo Bonzini
On Fri, Jan 02, 2015 at 10:19:29AM +0000, Stefan Hajnoczi wrote:
> 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.
It sparsifies automatically during conversion. No need to run
virt-sparsify afterwards :-)
Rich.
--
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
virt-df lists disk usage of guests without needing to install any
software inside the virtual machine. Supports Linux and Windows.
http://people.redhat.com/~rjones/virt-df/
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [Qemu-devel] implement lvm-aware P2V to reduce time cost significantly for linux server
2015-01-03 0:47 ` Richard W.M. Jones
(?)
@ 2015-01-03 0:52 ` Richard W.M. Jones
-1 siblings, 0 replies; 7+ messages in thread
From: Richard W.M. Jones @ 2015-01-03 0:52 UTC (permalink / raw)
To: Stefan Hajnoczi; +Cc: Haoyu Zhang, qemu-devel, kvm-devel, Paolo Bonzini
On Sat, Jan 03, 2015 at 12:47:10AM +0000, Richard W.M. Jones wrote:
> On Fri, Jan 02, 2015 at 10:19:29AM +0000, Stefan Hajnoczi wrote:
> > 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.
>
> It sparsifies automatically during conversion. No need to run
> virt-sparsify afterwards :-)
I should note this statement only applies to the new version of
virt-p2v/virt-v2v, >= 1.28. The old version, 0.9.x, did not do this.
The old version is not supported or maintained.
Rich.
--
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
virt-df lists disk usage of guests without needing to install any
software inside the virtual machine. Supports Linux and Windows.
http://people.redhat.com/~rjones/virt-df/
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2015-01-03 0:52 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-12-27 1:28 implement lvm-aware P2V to reduce time cost significantly for linux server Haoyu Zhang
2014-12-27 1:28 ` [Qemu-devel] " Haoyu Zhang
2015-01-02 10:19 ` Stefan Hajnoczi
2015-01-02 10:19 ` Stefan Hajnoczi
2015-01-03 0:47 ` Richard W.M. Jones
2015-01-03 0:47 ` Richard W.M. Jones
2015-01-03 0:52 ` Richard W.M. Jones
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.