All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] QCOW rebases on running VMs
@ 2016-01-27 18:04 Alex Bligh
  2016-01-27 19:01 ` Max Reitz
  2016-01-27 20:47 ` Eric Blake
  0 siblings, 2 replies; 6+ messages in thread
From: Alex Bligh @ 2016-01-27 18:04 UTC (permalink / raw)
  To: qemu-devel; +Cc: Alex Bligh

This question concerns the safety of rebases on backing disks whilst a VM is running from a writing disk.

Assume that we have the following structure:

    QEMU ------->   Writing disk
                    ....
                    backing disk N
                    ....
                    backing disk 1
                    ....
                    backing disk 0

If QEMU is not running, I can happily use 'qemu-img rebase' to merge backing disks 1 ... N (i.e. so backing disk N is now based on backing disk 0).

Is it safe to do this whilst the server is running using the writing disk which is based on backing disk N?

It is attractive to think it might be, as even if QEMU has a stale view of the contents of backing disk N, backing disks N-1 to 1 (inclusive) will still be present, QEMU will still keep an fd open for them, and it will (thus) still be able to read the correct sectors from them.

If not, do I need to use QMP magic instead?

-- 
Alex Bligh

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

end of thread, other threads:[~2016-01-29 20:17 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-01-27 18:04 [Qemu-devel] QCOW rebases on running VMs Alex Bligh
2016-01-27 19:01 ` Max Reitz
2016-01-27 20:47 ` Eric Blake
2016-01-28 12:36   ` Alex Bligh
2016-01-28 15:25     ` Eric Blake
2016-01-29 20:16       ` Alberto Garcia

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.