From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bastian de Groot Subject: Race condition in /etc/xen/scripts/block Date: Fri, 16 Jul 2010 11:59:10 +0200 Message-ID: <201007161159.10982.degroot@univention.de> Mime-Version: 1.0 Content-Type: Text/Plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org Hello, I am trying to figure out the behavior of the hook-script for block devices (/etc/xen/scripts/block). Here is the problem: I want to start a VM. It shall boot from a dm-device, which is setup by a script executed in the script /etc/xen/scripts/block. The dm-device doesn't exist when "xm start " is executed . When I place the setup script at the top of the block-script, everything works fine (http://pastebin.com/UYYbGupC). But when the script is placed in the phy case branch of the block-script, the VM won't start (http://pastebin.com/iPdJ65AH). Whether the VM starts or not, also depends on the runtime of the setup script. When the script is executed fast, it is much more likely that the VM starts. So, is there a way to setup a device in the hook-script? My configuration: Xen 3.4 on a 2.6.32 Kernel I would appreciate your help on that very much, Bastian