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] [PATCH] Recover from corrupt tdb on reboot

To: Markus Armbruster <armbru@xxxxxxxxxx>
Subject: Re: [Xen-devel] [PATCH] Recover from corrupt tdb on reboot
From: John Levon <levon@xxxxxxxxxxxxxxxxx>
Date: Mon, 5 Nov 2007 19:43:19 +0000
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Mon, 05 Nov 2007 11:44:06 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <87wsswr3vw.fsf@xxxxxxxxxxxxxxxxx>
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/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <87wsswr3vw.fsf@xxxxxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.5.9i
On Mon, Nov 05, 2007 at 06:36:19PM +0100, Markus Armbruster wrote:

> Xen cannot work when xenstored's tdb is corrupt.  When that happens
> somehow (and we've seen it happen), even reboot doesn't recover from
> it.  It could: there is no state in tdb that needs to be persisted
> across reboots.

We're putting the tdb in a tmpfs (in the short-term), is there a reason
you can't do that too? Especially as it's way faster.

> The appended patch arranges that tdb is removed before xenstored is
> started, provided it doesn't already run.  This is safe, because:
> 
> * xenstored cannot be restarted.  If it dies, Xen's screwed until
>   reboot.

That will hopefully not always be the case. At that point we'll need a
different solution (tmpfs or not).

regards
john

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