All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Richard W.M. Jones" <rjones@redhat.com>
To: Stefan Hajnoczi <stefanha@gmail.com>
Cc: Haoyu Zhang <zhhy.zhanghaoyu@gmail.com>,
	Paolo Bonzini <pbonzini@redhat.com>,
	qemu-devel <qemu-devel@nongnu.org>,
	kvm-devel <kvm@vger.kernel.org>
Subject: Re: [Qemu-devel] implement lvm-aware P2V to reduce time cost significantly for linux server
Date: Sat, 3 Jan 2015 00:47:10 +0000	[thread overview]
Message-ID: <20150103004710.GD9693@redhat.com> (raw)
In-Reply-To: <20150102101929.GA10823@stefanha-thinkpad.redhat.com>

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/

WARNING: multiple messages have this Message-ID (diff)
From: "Richard W.M. Jones" <rjones@redhat.com>
To: Stefan Hajnoczi <stefanha@gmail.com>
Cc: Haoyu Zhang <zhhy.zhanghaoyu@gmail.com>,
	qemu-devel <qemu-devel@nongnu.org>,
	kvm-devel <kvm@vger.kernel.org>,
	Paolo Bonzini <pbonzini@redhat.com>
Subject: Re: [Qemu-devel] implement lvm-aware P2V to reduce time cost significantly for linux server
Date: Sat, 3 Jan 2015 00:47:10 +0000	[thread overview]
Message-ID: <20150103004710.GD9693@redhat.com> (raw)
In-Reply-To: <20150102101929.GA10823@stefanha-thinkpad.redhat.com>

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/

  reply	other threads:[~2015-01-03  0:47 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
2015-01-03  0:47     ` Richard W.M. Jones
2015-01-03  0:52     ` Richard W.M. Jones

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20150103004710.GD9693@redhat.com \
    --to=rjones@redhat.com \
    --cc=kvm@vger.kernel.org \
    --cc=pbonzini@redhat.com \
    --cc=qemu-devel@nongnu.org \
    --cc=stefanha@gmail.com \
    --cc=zhhy.zhanghaoyu@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.