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

Re: [Xen-users] lock domU file backed vbd's?

To: "Wayde Nie" <xen@xxxxxx>
Subject: Re: [Xen-users] lock domU file backed vbd's?
From: "Todd Deshane" <deshantm@xxxxxxxxx>
Date: Thu, 14 Aug 2008 10:18:03 -0400
Cc: Xen Users <xen-users@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Thu, 14 Aug 2008 07:18:43 -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:reply-to :to:subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=eASQRetgmZIZbbJH7Grv22lFJ4C68St7cI5r+RJEN0s=; b=tFe3YE8HqItLOKNVTpf9B6z/eCpYXYlnREQHDT75gDrJ5U/18qCSoX7b9qNQypK0ky Vbr9D0TqJD1am2T8TFbmG1JDa9/+MV7UPZKWiDKSkEX4UKMEIrTOIrqJ/1EdqHf//M0n aM4kMPG2TfjWc6FwzHfVCUISruCd9/ckr3ETM=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:reply-to:to:subject:cc:in-reply-to :mime-version:content-type:content-transfer-encoding :content-disposition:references; b=QGj7nnnfOzPbLrTKydAeESpxXwlV88zQBsuAAA4Fh3bKtR7rgEMm0esP1KwSR+uhUU nmon742AiGRYpktSQVW01z0wCAgKTQ1EDnuiKpcfTdQlKZv8TV1FgepQRnVsOs86xzf4 ju9RUcQlyaRN+lX3N+gLRQvSEcaMgGe30zTtI=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <1218232815.6030.1.camel@pc-wnie>
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>
References: <1218232815.6030.1.camel@pc-wnie>
Reply-to: deshantm@xxxxxxxxx
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
On Fri, Aug 8, 2008 at 6:00 PM, Wayde Nie <xen@xxxxxx> wrote:
> Hi Everyone,
>
> Does anyone have suggestions on the best way to implement some sort of
> interlock so that a VM with a file-backed vbd can only be started on one
> node at any given time? I haven't had much luck with Google or the
> archive searches so far...
>
> Some background:
>
> I've got a 2 node setup based on Debian Etch and the stock Debian Xen
> 3.0.3. Each node has local storage connected together in an
> active-active drbd8 cluster with osfs2 and I'm using file backed vdb's
> on the shared storage for my domU's.
>
> I can start a domU on either node and live migration is working great.
> Unfortunately, there doesn't appear to be any locking done on the file
> backed vbd's which makes it a bit to easy to start a VM on both nodes at
> the same time (trashing the disk file in the process...)
>
> Any pointers would be appreciated!
>

A thread on the topic:
http://xen.markmail.org/search/?q=device+lock#query:device
lock+page:1+mid:ouugxur56hqikqty+state:results

Cheers,
Todd


-- 
Todd Deshane
http://todddeshane.net
check out our book: http://runningxen.com

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

<Prev in Thread] Current Thread [Next in Thread>