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

Re: [Xen-devel] Xen domain save file should be deleted/renamed after suc

To: Michal Novotny <minovotn@xxxxxxxxxx>
Subject: Re: [Xen-devel] Xen domain save file should be deleted/renamed after successful restore operation
From: Ian Jackson <Ian.Jackson@xxxxxxxxxxxxx>
Date: Wed, 25 Mar 2009 11:56:29 +0000
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Wed, 25 Mar 2009 04:56:57 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <49C9F5BC.50602@xxxxxxxxxx>
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>
Newsgroups: chiark.mail.xen.devel
References: <49C9F5BC.50602@xxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Michal Novotny writes ("[Xen-devel] Xen domain save file should be 
deleted/renamed after successful restore operation"):
> Hello everybody,
> I have found a problem about the checkpoint file (saved domain file) 
> that has been already used to restore a domain. The second time 
> restoring domain from the same saved domain file will result in disk 
> corruption and kernel of VM saved in this save file is in an 
> inconsistent state then.

Yes.  Don't do that then.

> You can replicate this by eg. creating some PV domain, saving it using 
> `xm save` command to /var/lib/xen/save directory and restoring it again. 
> The domain save file is not deleted or anything so when rebooting dom0 
> `xendomains` script starts this machine again but this results in disk 
> corruption of disk used for this guest.

In particular, the /var/lib/xen/save directory is for use by the
automatic domain management scripts like `xendomains'.  Do not
manually save a domain into it and absolutely do not restore a domain
from it manually!

Ian.

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

<Prev in Thread] Current Thread [Next in Thread>