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

[Xen-users] How to wait for a destroying domU?


  • To: xen-users <xen-users@xxxxxxxxxxxxxxxxxxx>
  • From: "Amos Shapira" <amos.shapira@xxxxxxxxx>
  • Date: Thu, 17 Jul 2008 22:18:10 +1000
  • Delivery-date: Thu, 17 Jul 2008 05:18:48 -0700
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type :content-transfer-encoding:content-disposition; b=Kz8iQ2STMb4BoVrDA43W6V8Gnex+lkMS6YW8IMDoCIc1cXxS2OAG3U4hrHUDBEJiDj wVL3x5weHleJLf2l8Avwihd/tqeJq0j9rozkla7gO9+Er8c60V3saNGtF0dWYeWNkeIf G8m2zQ56rEjtqtIMsx+5a+ShMC1ytCluBc3Ks=
  • List-id: Xen user discussion <xen-users.lists.xensource.com>

Hello,

I have a script for auto-reuild of CentOS 5 DomU's (on top of CentOS 5
Dom0) and basically what it does is:

xm destroy $domain
sleep 2
lvremove ...$domain's LV

Sometimes, the domain doesn't destroy within 2 second and the script fails.
I added tests to check that the domain is destroyed before the
lvremove but was wondering whether there is a more elegant way to just
run a command that will exit when the domain is no longer alive.

Is there?

Thanks,

--Amos

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


 


Rackspace

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