LVM Snapshots for KVM virtual machine

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi
   How to co-ordinate VM snapshots and disk snapshots ? Here is a sequence I am thinking of automating..

  1.Tell VM to sync (say via ssh or some special agent)
     * This will do "sync" and any application specific hook to make it quiescent.

  2. Tell VM/Hypervisor to flush all disk buferes ?  (HOW ??? )
     * Anything at this level?

  3. Pause the VM

  4. migrate file://... (To save the VMs state in to checkpoint file.)
      (This may take more time !)

  5. Take LVM snapshot for each disk.

  6. Unpause the VM

  7. Application level resume if any.
 
  7. Use the snapshot to copy each disks ?!!!! (either dd or mount followed by cp/rsync)  (This can be big! Any optimization suggestions )   

  8. discard snapshot.


Would the above sequence work ?

Any suggestions on individual steps ?


Does anyone know how similar functionality is implemented in XenServer (HVM) product or Virtual Iron or anyone else?


Would also like to know if qcow2 snapshot (savevm) would work. I read somewhere that there were problems with KVM version of qemu at some point.

Thanks
-nb



      

--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux