xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
* Race condition in /etc/xen/scripts/block
@ 2010-07-16  9:59 Bastian de Groot
  2010-07-16 10:07 ` James Harper
  0 siblings, 1 reply; 5+ messages in thread
From: Bastian de Groot @ 2010-07-16  9:59 UTC (permalink / raw)
  To: xen-devel

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2010-07-20 11:56 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-07-16  9:59 Race condition in /etc/xen/scripts/block Bastian de Groot
2010-07-16 10:07 ` James Harper
2010-07-16 11:28   ` Bastian de Groot
2010-07-16 11:35     ` James Harper
2010-07-20 11:56       ` Bastian de Groot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).