qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [Qemu-block] [PATCH RFC 0/7] COLO block replication sup


From: Hailiang Zhang
Subject: Re: [Qemu-devel] [Qemu-block] [PATCH RFC 0/7] COLO block replication supports shared disk case
Date: Wed, 23 Nov 2016 09:47:51 +0800
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.5.1

On 2016/11/22 18:33, Stefan Hajnoczi wrote:
On Thu, Oct 20, 2016 at 09:57:33PM +0800, zhanghailiang wrote:
COLO block replication doesn't support the shared disk case,
Here we try to implement it.

Just as the scenario of non-shared disk block replication,
we are going to implement block replication from many basic
blocks that are already in QEMU.
The architecture is:

          virtio-blk                     ||                               
.----------
              /                          ||                               | 
Secondary
             /                           ||                               
'----------
            /                            ||                                 
virtio-blk
           /                             ||                                     
 |
           |                             ||                               
replication(5)
           |                    NBD  -------->   NBD   (2)                      
 |
           |                  client     ||    server ---> hidden disk <-- 
active disk(4)
           |                     ^       ||                      |
           |              replication(1) ||                      |
           |                     |       ||                      |
           |   +-----------------'       ||                      |
          (3)  |drive-backup sync=none   ||                      |
--------. |   +-----------------+       ||                      |
Primary | |                     |       ||           backing    |
--------' |                     |       ||                      |
           V                     |                               |
        +-------------------------------------------+            |
        |               shared disk                 | <----------+
        +-------------------------------------------+
1) Primary writes will read original data and forward it to Secondary
    QEMU.
2) The hidden-disk will buffers the original content that is modified
    by the primary VM. It should also be an empty disk, and
    the driver supports bdrv_make_empty() and backing file.
3) Primary write requests will be written to Shared disk.
4) Secondary write requests will be buffered in the active disk and it
    will overwrite the existing sector content in the buffe

This design looks good.  I have not reviewed the patches in detail but
will review the next revision.


Thanks very much, I'll update it with the recent upstream. :)

Stefan





reply via email to

[Prev in Thread] Current Thread [Next in Thread]