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] Re: using DRBD VBDs with Xen

To: xen-users@xxxxxxxxxxxxxxxxxxx
Subject: Re: [Xen-users] Re: using DRBD VBDs with Xen
From: Vidar Salberg Normann <vidarno@xxxxxxxxx>
Date: Sat, 16 Oct 2010 01:14:36 +0200
Delivery-date: Fri, 15 Oct 2010 16:15:53 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=1HQ/y+V+GGHav9KLckKzhPeVuCXeOoTM2XFgt8xxUsE=; b=tGKNfi7Lcj9tL1xz5BsHw32xDdobQP8JbmDA5VP4Jl6nM6kc3kHYVqLjbIQrZPLEIV fUuVEz86zNBk9vib45JLfPD3BGYEcc8L2k1xISejCP19atBrfZQay6glsvcPAJh+COFt US9Jup30PSeRp4unATdY4Te1B4D7vyREZWX+k=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=cj0TuCgVasUrhbkAm8O3ChxrV2MmxZrV92tbViUePyLi+pu06LtNK9XtDOMTLM3LhV t4ZRvlQUBuPYwEwM24sxP+S/x3ysgZTh2O403lA4IVda9a9p8z6rjJTYaBi+lO043mah iRsdz+nGPMEx54cS9vTEIkPBcMfKXarGwdAI8=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <20100930214839.GA27649@xxxxxxxxxxxxxxxxx>
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: <20100930023250.GA7001@xxxxxxxxxxxxxxxxx> <1285822146190-3046546.post@xxxxxxxxxxxxx> <20100930153740.GA23009@xxxxxxxxxxxxxxxxx> <1285867814866-3047365.post@xxxxxxxxxxxxx> <20100930191105.GA10531@xxxxxxxxxxxxxxxxx> <1285880128651-3047649.post@xxxxxxxxxxxxx> <1285881507287-3047692.post@xxxxxxxxxxxxx> <20100930214839.GA27649@xxxxxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
On Thu, Sep 30, 2010 at 11:48 PM, Jean-Francois Malouin
<Jean-Francois.Malouin@xxxxxxxxxxxxxxxxx> wrote:
> * khris4 <khris4@xxxxxxxxx> [20100930 17:19]:
>>
>> okay, now my memory is coming back on setting up DRBD. The reason it's not
>> working is because your tell xen to start the domu with drbd script. If you
>> look at the block-drbd script in the /etc/xen/script/ directory to wil see
>> the drbd only handles making the drbd resource primary and then hands off
>> the device listed under disk in your drbd config to the domu to boot the
>> operation system.  Let give you an example,
>>
>> Here is my setup at my office.
>>
>> hardware raid10 --> lvm -> drbd -> domu   <- what this mean is my server has
>> raid into setup in lvm, then I create lv's for each
>> drbd virtual disk I wanted to create.  so /dev/XEN00/proxy --> is setup as a
>> disk in drbd.conf as resource proxy. Now when you look in my domU proxy
>> config you will see this  disk = [ 'drbd:proxy,xvda,w' ]. This works because
>> each virtual drbd resource has a lv parition with an operating system behind
>> it.
>>
>> The reason your setup is not working is because you handing the domu an drbd
>> virtual device that has file-system behind it and when you domu boot up xen
>> doesn't know it need to mount the drbd and then give a file back-end. You
>> going to need to write a script to handle some of this work or ask if anyone
>> had a script already made.
>
> hmmm, now I'm really confused.
>
> This is what I'm doing on one node:
>
> raid1 ----> lv -> drbd (r1) -> ocfs2 (mount point /xen_cluster/r1)
>       \->  lv -> drbd (r2) -> ocfs2 (mount point /xen_cluster/r2)
>
> so the VBD should look like
>
> disk = [ 'file:/xen_cluster/r1/xennode-1/disk.img,xvda2,w',
>         'file:/xen_cluster/r2/xennode-1/swap.img,xvda1,w', ]
>
> as I've read in the drbd user guide on how to integrate drbd, ocfs2
> and Xen. If I use that VBD file: type in the DomU config I can perform
> live migration.
>
> I don't understand what you're telling me here!
> what is /dev/XEN00/proxy?
>
> sorry for being dense,
> jf

I experienced the same problem and discovered this link:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=588406

It seems there is an error in /etc/xen/scripts/block for Xen packaged for
Debian Squeeze, perform the changes mentioned in that link and I
believe you will be able to use your drbd resource as a disk - it worked for me.

Regards,
Vidar

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

<Prev in Thread] Current Thread [Next in Thread>
  • Re: [Xen-users] Re: using DRBD VBDs with Xen, Vidar Salberg Normann <=