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] run a script before creating domain

To: <Xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-devel] run a script before creating domain
From: "James Harper" <james.harper@xxxxxxxxxxxxxxxx>
Date: Fri, 13 Jan 2006 11:57:48 +1100
Delivery-date: Fri, 13 Jan 2006 01:04:29 +0000
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/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>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AcYX3F9gohKwLpViSx+5hnSdm+unLQ==
Thread-topic: run a script before creating domain
I seem to be living in constant fear of starting the same domain on more
than one machine at once. As a way of preventing this, I'd like to be
able to have a script execute as part of an 'xm create' that runs before
doing any of the actual domain creation.

At the moment, all I'd do is do a 'ping' to see if the domain is up and
running. Not foolproof but would save me >99% of the time. In a cluster
environment there should be a way to determine remotely if a domain is
running.

Ideally, there would be a 'dom_check_exists' script automatically run
(if it exists) which could be implemented in a cluster environment, but
for now, where is a good place to hook into this?

Thanks

James

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

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