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] Xen/drbd - vbd devices locked after domain reboot

To: xen-users@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-users] Xen/drbd - vbd devices locked after domain reboot
From: Simon Cozens <simon@xxxxxxxxxxxxxxxx>
Date: Wed, 18 Nov 2009 15:23:40 +0000
Cc: Mark Barratt <markb@xxxxxxxxxxxxxxx>
Delivery-date: Wed, 18 Nov 2009 07:24:36 -0800
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
User-agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-GB; rv:1.9.1.1) Gecko/20090715 Thunderbird/3.0b3
We've had some problems recently with Xen domains not restarting after
they are shut down. I've narrowed it down to locking problems with
the drbd backend.

We're using Xen 3.2-1 and drbd 8.3.2 both from Debian. The symptoms
are, when this happens, that a domain won't start:

pox:~# xm create /etc/xen/shared/bird-flu
Using config file "/etc/xen/shared/bird-flu".
Error: Device 769 (vbd) could not be connected.
/etc/xen/scripts/block failed; error detected.

Attempting to manipulate the underlying drbd device with drbdadm
tells me that someone has the device held open, and drbd-overview
would say something like

25:bird-flu        Connected    Primary/Secondary   UpToDate/UpToDate C
    r----          xen-vbd: _bird-flu
 26:bird-flu-swap   Connected    Primary/Secondary   UpToDate/UpToDate C
    r----          xen-vbd: _bird-flu

Yet xm list confirms that the domain (a managed domain) is not running:

bird-flu                                        1024     1
   0.0

So something somewhere is holding a lock open and not shutting it
properly. I can't find out exactly what's holding it or how to manually
clear it, so I end up prodding wildly and eventually it rights itself.
Sometimes rebooting the Xen server doesn't even clear the lock.

Any clues on what this might be or how to fix it? Or should I just bite
the bullet and go to Remus?

Thanks,
Simon

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-users] Xen/drbd - vbd devices locked after domain reboot, Simon Cozens <=