qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH v1] migration: add incremental mode on drive-mirror
@ 2018-12-19  6:50 mahaocong
  2018-12-19  6:50 ` mahaocong
  0 siblings, 1 reply; 4+ messages in thread
From: mahaocong @ 2018-12-19  6:50 UTC (permalink / raw)
  To: qemu-block; +Cc: jcody, kwolf, mreitz, qemu-devel, mahaocong

From: mahaocong <mahaocong@didichuxing.com>

Hi all,

This patch adds possibility to start mirroring with specific dirty-bitmap.
The use-case is, for live migration with ceph rbd image.
1.create rbd image in ceph cluster, and map nbd device with rbd image.
2.create a new bitmap attached to drive.
3.create a full backup on nbd device and sync it to the rbd image.
4.create new image in destination host and set it's backingfile as rbd image.
5.start incremental mirroring to destination with dirty-bitmap from step 2.
6.live migrate VM to destination, bitmap should be migrated too.
7.unmap nbd in source host and map in destination.

Then I can use incremental backup to sync data and renew bitmap. If live migrate
VM again, repeat step 4 to step 7.

mahaocong (1):
  migration: add incremental mode on drive-mirror

 block/dirty-bitmap.c         | 14 ++++++++++
 block/mirror.c               | 63 +++++++++++++++++++++++++++++++++++---------
 blockdev.c                   | 36 +++++++++++++++++++++++--
 include/block/block_int.h    |  3 ++-
 include/block/dirty-bitmap.h |  3 +++
 include/qemu/hbitmap.h       |  2 ++
 qapi/block-core.json         |  4 ++-
 util/hbitmap.c               | 28 ++++++++++++++++++++
 8 files changed, 136 insertions(+), 17 deletions(-)

-- 
1.8.3.1

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2018-12-24  9:34 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-12-19  6:50 [Qemu-devel] [PATCH v1] migration: add incremental mode on drive-mirror mahaocong
2018-12-19  6:50 ` mahaocong
2018-12-19 14:47   ` Eric Blake
2018-12-24  9:33     ` 马昊骢(滴滴云)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).