[libvirt] RFC: APIs for managing a subset of a domain's disks

Daniel P. Berrange berrange at redhat.com
Mon May 9 09:00:19 UTC 2011


On Sat, May 07, 2011 at 03:33:10AM -0500, Igor Serebryany wrote:
> On Fri, May 06, 2011 at 06:00:09PM +0100, Richard W.M. Jones wrote:
> > How about just adding flags into the disk XML, eg:
> >   <disk>
> >     ...
> >     <flags>
> >       <migrate>false</migrate>
> >       <snapshot>false</snapshot>
> >     </flags>
> >   </disk>
> 
> I would love to see this in libvirt. 
> 
> On a somewhat related note ... would this make it possible to
> live-migrate domains where there is shared storage for the data disks
> but a separate, local swap disk? How does swapped-out memory get handled
> during QEMU migration?

Swap data doesn't need to be persisted across OS restarts, but you can't
just discard it upon live migration. The swap disk has to be handled
like any other disk during migration.

Daniel
-- 
|: http://berrange.com      -o-    http://www.flickr.com/photos/dberrange/ :|
|: http://libvirt.org              -o-             http://virt-manager.org :|
|: http://autobuild.org       -o-         http://search.cpan.org/~danberr/ :|
|: http://entangle-photo.org       -o-       http://live.gnome.org/gtk-vnc :|




More information about the libvir-list mailing list