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

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




On Jul 17, 2008, at 05:18 , Amos Shapira wrote:

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?

Well, you easily make a command out of something like this:

   while xenstore-exists /local/domain/$DOMID/vm ; do sleep 1; done

cheers,
robert

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________
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®.