[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] Many same managed domain


  • To: Masaki Kanno <kanno.masaki@xxxxxxxxxxxxxx>,xen-devel@xxxxxxxxxxxxxxxxxxx
  • From: Mats Petersson <mats@xxxxxxxxxxxxxxxxx>
  • Date: Sun, 22 Jul 2007 11:30:52 +0100
  • Delivery-date: Tue, 24 Jul 2007 09:00:38 -0700
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=beta; h=received:x-mailer:date:to:from:subject:in-reply-to:references:mime-version:content-type:sender:message-id; b=h4HYsqct/toRoiYqkc5Qdn1lKkzOAQCuIMwnOQWDXuoFQdfC1p3obEAN1CBOE5L672ddXZlKcMIfzvkHIVprs7DgRZRhT1lZg6vbVjrtTR535WcihuFNoya7rr62nBZp3WI4TXnkZTp+1sh6YEj98PqWf5IzLldnpTnnX6LVdWE=
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>

At 06:09 22/07/2007, Masaki Kanno wrote:
Hi,

When I tested xm new command without uuid parameter repeatedly,
I saw many same managed domain as follows.

# xm list
Name ID Mem VCPUs State Time(s)
Domain-0                                     0   941     2     r-----     51.9
# xm new /xen/vm1.conf
Using config file "/xen/vm1.conf".
# xm new /xen/vm1.conf
Using config file "/xen/vm1.conf".
# xm new /xen/vm1.conf
Using config file "/xen/vm1.conf".
# xm list
Name ID Mem VCPUs State Time(s)
Domain-0                                     0   941     2     r-----     56.3
vm1                                              256     1                 0.0
vm1                                              256     1                 0.0
vm1                                              256     1                 0.0


But, when I tested xm new command with uuid parameter repeatedly,
I did not see same managed domain as follows.

# xm list
Name ID Mem VCPUs State Time(s)
Domain-0                                     0   941     2     r-----     69.9
# xm new /xen/vm1.conf uuid="aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee"
Using config file "/xen/vm1.conf".
# xm new /xen/vm1.conf uuid="aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee"
Using config file "/xen/vm1.conf".
# xm new /xen/vm1.conf uuid="aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee"
Using config file "/xen/vm1.conf".
# xm list
Name ID Mem VCPUs State Time(s)
Domain-0                                     0   941     2     r-----     74.4
vm1                                              256     1                 0.0


I think that xm new command should cause a command error if without
uuid parameter.  What do you think?


Either that, or check that the name isn't a duplicate - I added such a check for "xm create" and "xm restore" about two months ago, because it would allow multiple instances of the same domain (with the same UUID - something I never got to the bottom of).

--
Mats



Best regards,
 Kan



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


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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.