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] drbd integration in Xen3.3(Ubuntu)

To: Matt <brimstone@xxxxxxxxxxxx>
Subject: Re: [Xen-users] drbd integration in Xen3.3(Ubuntu)
From: Longina Przybyszewska <longina@xxxxxxxxxxxx>
Date: Thu, 27 Aug 2009 16:40:41 +0200 (CEST)
Cc: Xen mailinglist <xen-users@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Thu, 27 Aug 2009 07:40:23 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <4A9697BA.30504@xxxxxxxxxxxx>
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: <alpine.DEB.2.00.0908271513130.14638@xxxxxxxxxxxxxxxxxxxx> <4A969381.3000304@xxxxxxxxxxxx> <alpine.DEB.2.00.0908271620060.14638@xxxxxxxxxxxxxxxxxxxx> <4A9697BA.30504@xxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Alpine 2.00 (DEB 1167 2008-08-23)
Just tried it, as well as tried to compile:

python /usr/lib/python2.5/py compile.py *.py

- still getting the same error.

Some debugging shows that - when I run 'xm create test.cfg' - fail comes from /usr/lib/python2.5/site-packages/xen/util/blkif.py

xen-utils-3.3
xen-hypervisor-3.3

kernel 2.6.24-24-xen


Longina On Thu, 27 Aug 2009, Matt wrote:

Longina Przybyszewska wrote:

On Thu, 27 Aug 2009, Matt wrote:

Longina Przybyszewska wrote:
Hi,
it seems that Xen3.3 in Ubuntu Hardy is missing integration with drbd:

I get -
Error: "Block device must have "phy", "file", or "tap" specified to
type"
when I try 'xm create test.cfg".

VM 'test' has in config file 'drbd' resource as block device.

disk    = ['drbd:test-swap,xvda1,w', 'drbd:test-disk,xvda2,w' ]

Does anybody have success with this type of configuration on Ubuntu
Hardy?

I had the same problems with my block-iscsi script. Maybe the
attached patch will work for you. This works for my paravirtualized
domUs, but not fully virtualized domUs.

How you patched - and compiled? Do I have to get Xen-source from Ubuntu
distribution?

No, you have to edit a plain text python file,
/usr/lib/python2.5/site-packages/xen/xend/server/blkif.py around
line 59 it should say something like:

if typ not in ('phy', 'file', 'tap'):

Change it to say:

if typ not in ('phy', 'file', 'tap', 'drbd'):

That should at least get you in the right direction if it doesn't
immediately help you.

#matt



--
--
Longina Przybyszewska, system programmer
IT@Naturvidenskab

IMADA, Department of Mathematics and Computer Science

University of Southern Denmark, Odense
Campusvej 55,DK-5230 Odense M, Denmark

tel: +45 6550 2359 - http://www.imada.sdu.dk
email: longina@xxxxxxxxxxxx
--

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