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-users

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

To: xen-users <xen-users@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-users] How to wait for a destroying domU?
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
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:mime-version:content-type:content-transfer-encoding :content-disposition; bh=5XwmHLIINj2NnMhmnh21i0ZhApQRl7rtdTSqgftsusc=; b=eTjaPXSPH+3EDiKxqTLyWAE3QT7E2CY02u35RERgBdDwApuSrUh7ltOzdky6Sre9F6 p/oMsXtZxALMythomTRLntiMwe/zHIwn6suA5FBLbp5y4rrVQz5L18Gr0+Oouw+/FqNu v2H/CvrYX1nLgwq8/vEl9h+8AhlSuiPc+H6LA=
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=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
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