From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Daniel P. Berrange" Subject: Re: Should "xm restore" be able to create two domains with the same name? Date: Fri, 18 May 2007 15:08:03 +0100 Message-ID: <20070518140803.GE338@redhat.com> References: <907625E08839C4409CE5768403633E0B018E1D48@sefsexmb1.amd.com> Reply-To: "Daniel P. Berrange" Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Keir Fraser Cc: "Petersson, Mats" , xen-devel List-Id: xen-devel@lists.xenproject.org On Fri, May 18, 2007 at 02:55:22PM +0100, Keir Fraser wrote: > > > > On 18/5/07 14:49, "Petersson, Mats" wrote: > > > If I do "xm save dom file", followed by "xm restore file; xm restore > > file", I get two domains with the same name. Surely, that's not quite > > right? [Particularly since they both will be using the same disk-image, > > etc]. > > You shouldn't do that. ;-) > > The second restore ought to fail when xend (or the hotplug scripts) realise > that the block device is already in use. The second restore ought to fail before it gets anywhere near hotplug scripts. XenD should be enforcing name & UUID uniqueness when creating guest VMs. Even 'xm create' lets you start the same guest twice http://lists.xensource.com/archives/html/xen-devel/2007-04/msg00279.html Dan. -- |=- Red Hat, Engineering, Emerging Technologies, Boston. +1 978 392 2496 -=| |=- Perl modules: http://search.cpan.org/~danberr/ -=| |=- Projects: http://freshmeat.net/~danielpb/ -=| |=- GnuPG: 7D3B9505 F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505 -=|