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: Longina Przybyszewska <longina@xxxxxxxxxxxx>
Subject: Re: [Xen-users] drbd integration in Xen3.3(Ubuntu)
From: Matt <brimstone@xxxxxxxxxxxx>
Date: Thu, 27 Aug 2009 09:09:05 -0500
Cc: Xen mailinglist <xen-users@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Thu, 27 Aug 2009 07:10:03 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <alpine.DEB.2.00.0908271513130.14638@xxxxxxxxxxxxxxxxxxxx>
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>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mozilla-Thunderbird 2.0.0.22 (X11/20090701)
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.

#matt

--- blkif.py    2009-08-16 15:25:50.000000000 -0500
+++ /usr/lib/python2.5/site-packages/xen/xend/server/blkif.py   2009-08-16 
15:26:04.000000000 -0500
@@ -56,7 +56,7 @@
         else:
             try:
                 (typ, params) = string.split(uname, ':', 1)
-                if typ not in ('phy', 'file', 'tap'):
+                if typ not in ('phy', 'file', 'tap', 'iscsi'):
                     raise VmError(
                         'Block device must have "phy", "file" or "tap" '
                         'specified to type')

Attachment: signature.asc
Description: OpenPGP digital signature

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