提交 78290b16 编写于 作者: J Josh Durgin 提交者: Eric Blake

qemu: add rbd to whitelist of migration-safe formats

QEMU (and librbd) flush the cache on the source before the
destination starts, and the destination does not read any
changeable data before that, so live migration with rbd caching
is safe.

This makes 'virsh migrate' work with rbd and caching without the
--unsafe flag.
Reported-by: NVladimir Bashkirtsev <vladimir@bashkirtsev.com>
Signed-off-by: NJosh Durgin <josh.durgin@inktank.com>
上级 30a30a7a
...@@ -28,7 +28,8 @@ ...@@ -28,7 +28,8 @@
<supriyak@linux.vnet.ibm.com> <supriyak@in.ibm.com> <supriyak@linux.vnet.ibm.com> <supriyak@in.ibm.com>
<neil@aldur.co.uk> <neil@brightbox.co.uk> <neil@aldur.co.uk> <neil@brightbox.co.uk>
<stefanb@us.ibm.com> <stefanb@linux.vnet.ibm.com> <stefanb@us.ibm.com> <stefanb@linux.vnet.ibm.com>
<josh.durgin@dreamhost.com> <joshd@hq.newdream.net> <josh.durgin@inktank.com> <joshd@hq.newdream.net>
<josh.durgin@inktank.com> <josh.durgin@dreamhost.com>
# Name consolidation: # Name consolidation:
# Preferred author spelling <preferred email> # Preferred author spelling <preferred email>
......
...@@ -144,7 +144,7 @@ Patches have also been contributed by: ...@@ -144,7 +144,7 @@ Patches have also been contributed by:
Hu Tao <hutao@cn.fujitsu.com> Hu Tao <hutao@cn.fujitsu.com>
Laurent Léonard <laurent@open-minds.org> Laurent Léonard <laurent@open-minds.org>
MORITA Kazutaka <morita.kazutaka@lab.ntt.co.jp> MORITA Kazutaka <morita.kazutaka@lab.ntt.co.jp>
Josh Durgin <josh.durgin@dreamhost.com> Josh Durgin <josh.durgin@inktank.com>
Roopa Prabhu <roprabhu@cisco.com> Roopa Prabhu <roprabhu@cisco.com>
Paweł Krześniak <pawel.krzesniak@gmail.com> Paweł Krześniak <pawel.krzesniak@gmail.com>
Kay Schubert <kayegypt@web.de> Kay Schubert <kayegypt@web.de>
......
...@@ -847,6 +847,9 @@ qemuMigrationIsSafe(virDomainDefPtr def) ...@@ -847,6 +847,9 @@ qemuMigrationIsSafe(virDomainDefPtr def)
continue; continue;
else if (cfs < 0) else if (cfs < 0)
return false; return false;
} else if (disk->type == VIR_DOMAIN_DISK_TYPE_NETWORK &&
disk->protocol == VIR_DOMAIN_DISK_PROTOCOL_RBD) {
continue;
} }
qemuReportError(VIR_ERR_MIGRATE_UNSAFE, "%s", qemuReportError(VIR_ERR_MIGRATE_UNSAFE, "%s",
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册