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-tools

Re: [Xen-tools] Re: [Xen-devel] [PATCH] Make xend reject duplicates and

To: Christian.Limpach@xxxxxxxxxxxx
Subject: Re: [Xen-tools] Re: [Xen-devel] [PATCH] Make xend reject duplicates and rename zombies
From: Anthony Liguori <aliguori@xxxxxxxxxx>
Date: Fri, 16 Sep 2005 16:49:58 -0500
Cc: Xen Tools Developers <xen-tools@xxxxxxxxxxxxxxxxxxx>, Xen Developers <xen-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Fri, 16 Sep 2005 21:48:59 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <3d8eece2050916144823f8c859@xxxxxxxxxxxxxx>
List-help: <mailto:xen-tools-request@lists.xensource.com?subject=help>
List-id: Xen control tools developers <xen-tools.lists.xensource.com>
List-post: <mailto:xen-tools@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-tools>, <mailto:xen-tools-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-tools>, <mailto:xen-tools-request@lists.xensource.com?subject=unsubscribe>
References: <87br2uz5yj.fsf@xxxxxxxxxx> <4329C366.2070006@xxxxxxxxxx> <3d8eece205091612523cf7b900@xxxxxxxxxxxxxx> <432B3B13.4070705@xxxxxxxxxx> <3d8eece2050916144823f8c859@xxxxxxxxxxxxxx>
Sender: xen-tools-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mozilla Thunderbird 1.0.6 (X11/20050912)
Christian Limpach wrote:

On 9/16/05, Anthony Liguori <aliguori@xxxxxxxxxx> wrote:
I think renaming would make sense if a domain is crashed.  You might
want to keep the domain around to attach a debugger to it but at the
same time restart a fresh copy as soon as possible.
As long as you can make sure to rename *after* all of the devices have
been properly torn down.

Otherwise, we need to make sure to make it well known that restarting a
domain after a crash can result in very bad things :-)

How so?  The crashed domain is certainly not going to do anything with
those devices anymore...  Actually, I'm not even sure I buy the
"unsafe to reuse devices" argument if the domain is only hanging
around in an almost dead state -- it's almost dead, it's not going to
do any requests on those devices anymore...
I'm thinking specifically about block devices. While the domain may have died, there may be requests in the block devices queues that have not been flushed to disk yet. This is what would lead to problems..

Regards,

Anthony Liguori

So regarding the check for termination in check_name, if we only
switch the state to terminated once the domain is almost dead, reusing
the name should be fine...

   christian



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