WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] coordinating VM snapshot with LVM snapshot.

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] coordinating VM snapshot with LVM snapshot.
From: J Nb <j_nwb@xxxxxxxxx>
Date: Sun, 3 Jan 2010 18:17:58 -0800 (PST)
Delivery-date: Sun, 03 Jan 2010 18:18:18 -0800
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1262571478; bh=YyI7KgJSYumkpFko88AZny6sUCMHSVVv/IGWhI+Tbxg=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type; b=ZtY+uGMgQe3ErvdFCXRcp611cKJhWK9zFVUzu6ZEvV1K+KeJAreU5eM/4XjYhJpwOuKvnFG5wFIgVclfaNJybHpogotJ59VumsZTd/2A4UD4ENwTtxFu5yN4srr1LlNgOa2yZsiE6tNWnH8mdgk3HpqRsmSG3eG28a6X63aRuXI=
Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type; b=FYzj8cE8mfYtE+ld/Iz6xBJPE6lNYjeYO/mmvR0aK0AxGBysqpkqiUIOXCjR+Ka68SVOJJTTJJ7ddfvTiTi9mU3ozdgOZYRs0QLPvcdpMFOOVQ9RkpB59jWDW49N6VJylAN+z5vPm1HAphMeqxBBMidUDRLNf2dvd9fv6Ux6M1k=;
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
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. xm save -c (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 ?

Anything specific for PV and HVM virtual machines?

Is there a backdoor to qemu-dm console ?

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

-nb


      


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] coordinating VM snapshot with LVM snapshot., J Nb <=