|
|
|
|
|
|
|
|
|
|
xen-devel
[Xen-devel] demo code to create lvm snapshots for checkpointed domains
Here's some terrible code that demonstrates how one might create
synchronised LVM snapshots of running domains. It hooks into the
external-device-migrate script to call lvcreate -s at xm save time
during migrate round 2. There's also an awful wrapper around xm save
-c that rewrites the resulting save record to use the snapshot as its
vbd instead of the parent device. It'd be really nice if there were a
way to rewrite the config at save time instead of afterwards.
This code will probably set your computer on fire. I'm just posting it
because it's hard to play with checkpoints without some kind of disk
snapshot mechanism.
The pieces: a vbd-migrate.sh script that goes into /etc/xen/scripts to
be sourced by external-device-migrate, an lvm-save script called by
vbd-migrate to do the actual work of creating the snapshot, and a
checkpoint wrapper to create the checkpoint and rewrite the resulting
image. They're not useful out of the box unless your home directory is
/users/brendan.
vbd-migration.sh
Description: Text document
lvm-save
Description: Text document
checkpoint
Description: Text document
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
|
<Prev in Thread] |
Current Thread |
[Next in Thread> |
- [Xen-devel] demo code to create lvm snapshots for checkpointed domains,
Brendan Cully <=
|
|
|
|
|