Skip to contentSkip to conversation

KVM call agenda for Oct 19

Qemu-devel Ayal Baron 2 participants 2 messages Oct 19, 2010 1 message not in the archive KVM

lore
Share & tools
lore

Ayal Baron

author
#1 lore raw
In reply to a message not in the archive
Quoted 44 lines · ----- "Anthony Liguori
Quoted 17 lines · Ayal Baron
Quoted 14 lines · ----- "Anthony Liguori
Quoted 12 lines · Dor Laor
Quoted 10 lines · Chris Wright
Quoted 2 lines · * Juan Quintela ([email protected]) wrote:

Please send in any agenda items you are interested in covering.

- 0.13.X -stable handoff
- 0.14 planning
- threadlet work
- virtfs proposals

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

- Live snapshots
- We were asked to add this feature for external qcow2 images. Will simple approach of fsync + tracking each

requested

Quoted 6 lines
Quoted 6 lines
Quoted 2 lines

backing file (it can be per vDisk) and re-open the new image

would

Quoted 2 lines

be accepted?

Quoted 7 lines
Quoted 7 lines

I had assumed that this would involve:

qemu -hda windows.img

(qemu) snapshot ide0-disk0 snap0.img

1) create snap0.img internally by doing the equivalent of

`qemu-img

Quoted 8 lines
Quoted 8 lines

create -f qcow2 -b windows.img snap0.img'
2) bdrv_flush('ide0-disk0')
3) bdrv_open(snap0.img)
4) bdrv_close(windows.img)
5) rename('windows.img', 'windows.img.tmp')
6) rename('snap0.img', 'windows.img')
7) rename('windows.img.tmp', 'snap0.img')

Quoted 5 lines
Quoted 1 line

All the rename logic assumes files, need to take into account

devices as well (namely LVs)

Quoted 1 line

Sure, just s/rename/lvrename/g.

No can do. In our setup, lvm is running in a clustered env in a single writer multiple readers configuration. Vm may be running on a reader which is not allowed to lvrename (would corrupt the entire VG).

Quoted 7 lines

The renaming step can be optional and a management tool can take care of
that. It's really just there for convenience since the user expectation
is that when you give a name of a snapshot, that the snapshot is reflected in that name not that the new in-use image is that name.

So keeping it optional is good.

Quoted 17 lines
Quoted 2 lines

Also, just to make sure, this should support multiple images

(concurrent snapshot of all of them or a subset).

Quoted 1 line

Yeah, concurrent is a little trickier. Simple solution is for a management tool to just do a stop + multiple snapshots + cont. It's equivalent to what we'd do if we don't do it aio which is probably how

we'd do the first implementation.

But in the long term, I think the most elegant solution would be to expose the freeze api via QMP and let a management tool freeze multiple
devices, then start taking snapshots, then unfreeze them when all snapshots are complete.

Quoted 3 lines

Regards,

Anthony Liguori

qemu should call the freeze as part of the process (for all of the relevant devices) then take the snapshots then thaw.

Quoted 44 lines
Quoted 15 lines

Otherwise looks good.

Quoted 11 lines

Regards,

Anthony Liguori

Quoted 3 lines

- Integration with FS freeze for consistent guest app snapshot Many apps do not sync their ram state to disk correctly or

frequent

Quoted 1 line

enough. Physical world backup software calls fs freeze on

xfs

Quoted 5 lines
Quoted 5 lines
Quoted 1 line

and

Quoted 2 lines

VSS for windows to make the backup consistent. In order to integrated this with live snapshots we need a

guest

Quoted 13 lines
Quoted 13 lines
Quoted 3 lines

agent to trigger the guest fs freeze.
We can either have qemu communicate with the agent directly

through

Quoted 3 lines

virtio-serial or have a mgmt daemon use virtio-serial to communicate with the guest in addition to QMP messages about

the

Quoted 3 lines

live snapshot state.
Preferences? The first solution complicates qemu while the

Quoted 7 lines
Quoted 7 lines

second

Quoted 5 lines

complicates mgmt.

Signature · 3 lines
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to [email protected]
More majordomo info at 

http://vger.kernel.org/majordomo-info.html

Quoted 1 line
Quoted 1 line
Quoted 1 line
#2 lore raw
Quoted 12 lines · Ayal Baron
Quoted 12 lines

Yeah, concurrent is a little trickier. Simple solution is for a management tool to just do a stop + multiple snapshots + cont. It's equivalent to what we'd do if we don't do it aio which is probably how

we'd do the first implementation.

But in the long term, I think the most elegant solution would be to expose the freeze api via QMP and let a management tool freeze multiple
devices, then start taking snapshots, then unfreeze them when all snapshots are complete.

Quoted 6 lines
Quoted 4 lines

Regards,

Anthony Liguori

qemu should call the freeze as part of the process (for all of the relevant devices) then take the snapshots then thaw.

Yeah, I'm not opposed to us providing simpler interfaces in addition to or in lieu of lower level interfaces.

Regards,

Anthony Liguori