Re: [Qemu-devel] Live Block Migration using Mirroring

2012-03-05 Thread Paolo Bonzini
Il 05/03/2012 18:44, Marcelo Tosatti ha scritto: > OK, can't it be fixed by image streaming on top of a blkmirror device? > This would avoid a duplicate interface (such as no need to snapshot_blkdev > to change to final copy). > > That is, start image streaming to a blkmirror device so that updat

Re: [Qemu-devel] Live Block Migration using Mirroring

2012-03-05 Thread Marcelo Tosatti
On Mon, Mar 05, 2012 at 10:20:36AM -0700, Eric Blake wrote: > On 03/05/2012 09:59 AM, Marcelo Tosatti wrote: > > On Wed, Feb 22, 2012 at 05:13:32PM +, Federico Simoncelli wrote: > >> Hi, > >> recently I've been working on live block migration combining the live > >> snapshots and the blkmirror

Re: [Qemu-devel] Live Block Migration using Mirroring

2012-03-05 Thread Eric Blake
On 03/05/2012 09:59 AM, Marcelo Tosatti wrote: > On Wed, Feb 22, 2012 at 05:13:32PM +, Federico Simoncelli wrote: >> Hi, >> recently I've been working on live block migration combining the live >> snapshots and the blkmirror patch sent by Marcelo Tosatti few months ago. >> >> The design is sum

Re: [Qemu-devel] Live Block Migration using Mirroring

2012-03-05 Thread Marcelo Tosatti
On Wed, Feb 22, 2012 at 05:13:32PM +, Federico Simoncelli wrote: > Hi, > recently I've been working on live block migration combining the live > snapshots and the blkmirror patch sent by Marcelo Tosatti few months ago. > > The design is summarized at this url as "Mirrored-Snapshot": > > htt

Re: [Qemu-devel] Live Block Migration using Mirroring

2012-02-28 Thread Federico Simoncelli
- Original Message - > From: "Paolo Bonzini" > To: qemu-devel@nongnu.org > Sent: Tuesday, February 28, 2012 7:02:40 PM > Subject: Re: [Qemu-devel] Live Block Migration using Mirroring > > Il 28/02/2012 18:46, Federico Simoncelli ha scritto: > > > >

Re: [Qemu-devel] Live Block Migration using Mirroring

2012-02-28 Thread Paolo Bonzini
Il 28/02/2012 18:46, Federico Simoncelli ha scritto: > > > Thank you for getting this. Being able to have a bogus backing file > > > was a bonus but it's not really required for the mirrored live block > > > migration. We can add the support for switching the backing file in the > > > drive-reopen

Re: [Qemu-devel] Live Block Migration using Mirroring

2012-02-28 Thread Federico Simoncelli
- Original Message - > From: "Paolo Bonzini" > To: "Federico Simoncelli" > Cc: "Stefan Hajnoczi" , qemu-devel@nongnu.org, > kw...@redhat.com, mtosa...@redhat.com > Sent: Tuesday, February 28, 2012 6:36:57 PM > Subject: Re: [Qemu-devel] Li

Re: [Qemu-devel] Live Block Migration using Mirroring

2012-02-28 Thread Paolo Bonzini
Il 28/02/2012 18:15, Federico Simoncelli ha scritto: > Thank you for getting this. Being able to have a bogus backing file was > a bonus but it's not really required for the mirrored live block migration. > We can add the support for switching the backing file in the drive-reopen > part. Wait, it'

Re: [Qemu-devel] Live Block Migration using Mirroring

2012-02-28 Thread Paolo Bonzini
Il 28/02/2012 16:47, Stefan Hajnoczi ha scritto: > At this stage we have dst/hd0snap1 opened with BDRV_O_NO_BACKING. If > it has no backing file and the guest issues a write request that is > smaller than a cluster in the image file, the untouched areas of that > cluster will be populated with zer

Re: [Qemu-devel] Live Block Migration using Mirroring

2012-02-28 Thread Federico Simoncelli
- Original Message - > From: "Stefan Hajnoczi" > To: "Federico Simoncelli" > Cc: qemu-devel@nongnu.org, kw...@redhat.com, mtosa...@redhat.com > Sent: Tuesday, February 28, 2012 4:47:48 PM > Subject: Re: [Qemu-devel] Live Block Migration using Mirroring

Re: [Qemu-devel] Live Block Migration using Mirroring

2012-02-28 Thread Stefan Hajnoczi
On Wed, Feb 22, 2012 at 5:13 PM, Federico Simoncelli wrote: > Step 3 - Mirrored Live Snapshot > === > A mirrored live snapshot is issued using src/hd0snap1 and dst/hd0snap1 as > image files. (Where "<-" stands for "has backing file") > > [src/hd0base] <- [src/hd0snap1]

Re: [Qemu-devel] Live Block Migration using Mirroring

2012-02-23 Thread Federico Simoncelli
- Original Message - > From: "Stefan Hajnoczi" > To: "Federico Simoncelli" > Cc: qemu-devel@nongnu.org, kw...@redhat.com, mtosa...@redhat.com > Sent: Thursday, February 23, 2012 5:35:23 PM > Subject: Re: [Qemu-devel] Live Block Migration using Mirrori

Re: [Qemu-devel] Live Block Migration using Mirroring

2012-02-23 Thread Stefan Hajnoczi
On Wed, Feb 22, 2012 at 5:13 PM, Federico Simoncelli wrote: >  recently I've been working on live block migration combining the live > snapshots and the blkmirror patch sent by Marcelo Tosatti few months ago. > > The design is summarized at this url as "Mirrored-Snapshot": > > http://www.ovirt.org

Re: [Qemu-devel] Live Block Migration using Mirroring

2012-02-23 Thread Federico Simoncelli
- Original Message - > From: "Stefan Hajnoczi" > To: "Federico Simoncelli" > Cc: qemu-devel@nongnu.org, kw...@redhat.com, mtosa...@redhat.com > Sent: Thursday, February 23, 2012 4:47:38 PM > Subject: Re: [Qemu-devel] Live Block Migration using Mirrori

Re: [Qemu-devel] Live Block Migration using Mirroring

2012-02-23 Thread Stefan Hajnoczi
On Wed, Feb 22, 2012 at 5:13 PM, Federico Simoncelli wrote: > Preparation > === > > $ mkdir /tmp/{src/dst} > $ qemu-img create -f qcow2 /tmp/src/hd0base.qcow2 20G > Formatting '/tmp/src/hd0base.qcow2', fmt=qcow2 size=21474836480 > encryption=off cluster_size=65536 > > Step 1 - Initital Sce

[Qemu-devel] Live Block Migration using Mirroring

2012-02-22 Thread Federico Simoncelli
Hi, recently I've been working on live block migration combining the live snapshots and the blkmirror patch sent by Marcelo Tosatti few months ago. The design is summarized at this url as "Mirrored-Snapshot": http://www.ovirt.org/wiki/Features/Design/StorageLiveMigration The design assumes tha