Re: [Libguestfs] [Qemu-block] v2v: -o rhv-upload: Long time spent zeroing the disk

2018-04-15 Thread Eric Blake
On 04/12/2018 05:24 AM, Richard W.M. Jones wrote: > I don't think we have nbd-server in RHEL, and in any case wouldn't it > be better to use qemu-nbd? > > You just start a new qemu-nbd process instead of faffing around with > configuration files, kill the qemu-nbd process when you're done, and >

Re: [Libguestfs] [Qemu-block] v2v: -o rhv-upload: Long time spent zeroing the disk

2018-04-15 Thread Nir Soffer
On Thu, Apr 12, 2018 at 2:07 AM Nir Soffer wrote: > On Tue, Apr 10, 2018 at 6:53 PM Richard W.M. Jones > wrote: > ... > Dan Berrange pointed out earlier on that it might be easier if imageio >> > just exposed NBD, or if we found a way to tunnel NBD requests over web >> sockets (in the format ca

Re: [Libguestfs] [Qemu-block] v2v: -o rhv-upload: Long time spent zeroing the disk

2018-04-12 Thread Richard W.M. Jones
On Thu, Apr 12, 2018 at 03:44:26PM +, Nir Soffer wrote: > On Thu, Apr 12, 2018 at 5:42 PM Eric Blake wrote: > > > On 04/12/2018 05:24 AM, Richard W.M. Jones wrote: > > > > > I don't think we have nbd-server in RHEL, and in any case wouldn't it > > > be better to use qemu-nbd? > > > > > > You

Re: [Libguestfs] [Qemu-block] v2v: -o rhv-upload: Long time spent zeroing the disk

2018-04-12 Thread Nir Soffer
On Thu, Apr 12, 2018 at 5:42 PM Eric Blake wrote: > On 04/12/2018 05:24 AM, Richard W.M. Jones wrote: > > > I don't think we have nbd-server in RHEL, and in any case wouldn't it > > be better to use qemu-nbd? > > > > You just start a new qemu-nbd process instead of faffing around with > > configu

Re: [Libguestfs] [Qemu-block] v2v: -o rhv-upload: Long time spent zeroing the disk

2018-04-12 Thread Richard W.M. Jones
On Thu, Apr 12, 2018 at 09:22:16AM +, Nir Soffer wrote: > I think we can expose NBD using ndb-server and dynamic exports. > It can work like this: > > 0. Install nbd and enable nbd-server on a host, running >as vdsm:kvm, not exporting anything. > > 1. User starts transfer session via oVir

Re: [Libguestfs] [Qemu-block] v2v: -o rhv-upload: Long time spent zeroing the disk

2018-04-11 Thread Nir Soffer
On Tue, Apr 10, 2018 at 6:53 PM Richard W.M. Jones wrote: > On Tue, Apr 10, 2018 at 03:25:47PM +, Nir Soffer wrote: > > On Tue, Apr 10, 2018 at 5:50 PM Richard W.M. Jones > > wrote: > > > > > On Tue, Apr 10, 2018 at 02:07:33PM +, Nir Soffer wrote: > > > > This makes sense if the device i

Re: [Libguestfs] [Qemu-block] v2v: -o rhv-upload: Long time spent zeroing the disk

2018-04-10 Thread Nir Soffer
On Tue, Apr 10, 2018 at 6:00 PM Eric Blake wrote: > On 04/10/2018 09:40 AM, Richard W.M. Jones wrote: > >> When the destination is a block device we cannot avoid zeroing since a > block > >> device may contain junk data (we usually get dirty empty images from our > >> local > >> xtremio server).

Re: [Libguestfs] [Qemu-block] v2v: -o rhv-upload: Long time spent zeroing the disk

2018-04-10 Thread Richard W.M. Jones
On Tue, Apr 10, 2018 at 03:25:47PM +, Nir Soffer wrote: > On Tue, Apr 10, 2018 at 5:50 PM Richard W.M. Jones > wrote: > > > On Tue, Apr 10, 2018 at 02:07:33PM +, Nir Soffer wrote: > > > This makes sense if the device is backed by a block device on oVirt side, > > > and the NBD support eff

Re: [Libguestfs] [Qemu-block] v2v: -o rhv-upload: Long time spent zeroing the disk

2018-04-10 Thread Richard W.M. Jones
On Tue, Apr 10, 2018 at 09:52:40AM -0500, Eric Blake wrote: > Didn't Rich already try to do that? > > +def emulate_zero(h, count, offset): > +# qemu-img convert starts by trying to zero/trim the whole device. > +# Since we've just created a new disk it's safe to ignore these > +# reque

Re: [Libguestfs] [Qemu-block] v2v: -o rhv-upload: Long time spent zeroing the disk

2018-04-10 Thread Nir Soffer
On Tue, Apr 10, 2018 at 5:50 PM Richard W.M. Jones wrote: > On Tue, Apr 10, 2018 at 02:07:33PM +, Nir Soffer wrote: > > This makes sense if the device is backed by a block device on oVirt side, > > and the NBD support efficient zeroing. But in this case the device is > backed > > by an empty

Re: [Libguestfs] [Qemu-block] v2v: -o rhv-upload: Long time spent zeroing the disk

2018-04-10 Thread Eric Blake
On 04/10/2018 09:40 AM, Richard W.M. Jones wrote: >> When the destination is a block device we cannot avoid zeroing since a block >> device may contain junk data (we usually get dirty empty images from our >> local >> xtremio server). > > (Off topic for qemu-block but ...) We don't have enough in

Re: [Libguestfs] [Qemu-block] v2v: -o rhv-upload: Long time spent zeroing the disk

2018-04-10 Thread Eric Blake
On 04/10/2018 09:07 AM, Nir Soffer wrote: > On Tue, Apr 10, 2018 at 4:48 PM Kevin Wolf wrote: > >> Am 10.04.2018 um 15:03 hat Nir Soffer geschrieben: >>> On Tue, Apr 10, 2018 at 1:44 PM Richard W.M. Jones >>> wrote: >>> We now have true zeroing support in oVirt imageio, thanks for that. >>>

Re: [Libguestfs] [Qemu-block] v2v: -o rhv-upload: Long time spent zeroing the disk

2018-04-10 Thread Richard W.M. Jones
On Tue, Apr 10, 2018 at 02:07:33PM +, Nir Soffer wrote: > This makes sense if the device is backed by a block device on oVirt side, > and the NBD support efficient zeroing. But in this case the device is backed > by an empty sparse file on NFS, and oVirt does not support yet efficient > zeroing

Re: [Libguestfs] [Qemu-block] v2v: -o rhv-upload: Long time spent zeroing the disk

2018-04-10 Thread Nir Soffer
On Tue, Apr 10, 2018 at 4:48 PM Kevin Wolf wrote: > Am 10.04.2018 um 15:03 hat Nir Soffer geschrieben: > > On Tue, Apr 10, 2018 at 1:44 PM Richard W.M. Jones > > wrote: > > > > > We now have true zeroing support in oVirt imageio, thanks for that. > > > > > > However a problem is that ‘qemu-img c

Re: [Libguestfs] [Qemu-block] v2v: -o rhv-upload: Long time spent zeroing the disk

2018-04-10 Thread Richard W.M. Jones
On Tue, Apr 10, 2018 at 03:48:11PM +0200, Kevin Wolf wrote: > Am 10.04.2018 um 15:03 hat Nir Soffer geschrieben: > > On Tue, Apr 10, 2018 at 1:44 PM Richard W.M. Jones > > wrote: > > > > > We now have true zeroing support in oVirt imageio, thanks for that. > > > > > > However a problem is that ‘q

Re: [Libguestfs] [Qemu-block] v2v: -o rhv-upload: Long time spent zeroing the disk

2018-04-10 Thread Kevin Wolf
Am 10.04.2018 um 15:03 hat Nir Soffer geschrieben: > On Tue, Apr 10, 2018 at 1:44 PM Richard W.M. Jones > wrote: > > > We now have true zeroing support in oVirt imageio, thanks for that. > > > > However a problem is that ‘qemu-img convert’ issues zero requests for > > the whole disk before starti