All of lore.kernel.org
 help / color / mirror / Atom feed
From: Sauro Saltini <saltini@shc.it>
To: James Harper <james.harper@bendigoit.com.au>
Cc: xen-devel@lists.xensource.com
Subject: Re: Re: drbd: and hvm
Date: Sat, 01 May 2010 14:19:12 +0200	[thread overview]
Message-ID: <4BDC1C40.5010605@shc.it> (raw)
In-Reply-To: <AEC6C66638C05B468B556EA548C1A77D01919A99@trantor>

I've hit another problem, which seems to be related also to a race 
condition, but this time with Linux PVM's.
I've installed a Slack13 x86_64 PVM which works wery well, when I try to 
migrate (live or not) the PVM is moved on the destination host, but, 
after migration completes, seems hanged... no network, no console, but 
still responds correctly to a "xm shutdown" and closes cleanly.
In this state I've tried also to pause / unpause the VM without any effect.
This happens ONLY if I let block-drbd manage the promotion of drbd 
resource on destination host during the migration !
If I manually promote drbd resource on the destination host just before 
migrating the whole process go well and the PVM is still working on dest 
(not freezed), also the source host is correctly drbd-demoted.

Seems again something like a race condition between block-drbd and VM 
startup...but no qemu-dm now!

Any clues ?

Sauro Saltini


On 30/04/2010 01:44, James Harper wrote:
>> James Harper<james.harper<at>  bendigoit.com.au>  writes:
>>
>>      
>>>        
>>>> What is it that prevents drbd: devices from not working under HVM?
>>>>          
>>> Could
>>>        
>>>> the fix just be as simple as mapping 'drbd:name-of-resource' to
>>>> '/dev/drbd/by-res/<name-of-resource>'?
>>>>
>>>>          
>>> The following patch maps it correctly, but it only works if the
>>>        
> device
>    
>>> is already 'primary', which kind of defeats the purpose... qemu-dm
>>>        
> must
>    
>>> be trying to open the device before the drbd script switches the
>>>        
> local
>    
>>> node to 'primary'. Might it still be a useful addition to qemu-dm
>>> though? (eg it would work in a multiple-primary setup).
>>>        
>> I've managed to make the creation of domU work by simply putting a
>>      
> sleep(5);
>    
>> statement in the middle of your conditional block !
>>      
> I did exactly the same thing. It might still race on a really heavily
> loaded system, but I haven't had a problem with it in a few weeks of
> testing.
>
> James
>
>    

  reply	other threads:[~2010-05-01 12:19 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-04-06  7:12 drbd: and hvm James Harper
2010-04-06  7:33 ` James Harper
2010-04-29 21:58   ` Sauro Saltini
2010-04-29 23:44     ` James Harper
2010-05-01 12:19       ` Sauro Saltini [this message]
2014-01-28  6:23     ` Kamal Kishore

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4BDC1C40.5010605@shc.it \
    --to=saltini@shc.it \
    --cc=james.harper@bendigoit.com.au \
    --cc=xen-devel@lists.xensource.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.