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] Xen 3.3 + Drbd - block device script broken?

To: Xen-users@xxxxxxxxxxxxxxxxxxx
Subject: Re: [Xen-users] Xen 3.3 + Drbd - block device script broken?
From: Nathan Flynn <mlist@xxxxxxxx>
Date: Thu, 18 Sep 2008 09:20:55 +0100
Cc:
Delivery-date: Thu, 18 Sep 2008 01:22:45 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <48D1FA98.3020905@xxxxxxxxxxxxx>
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: <48D1FA98.3020905@xxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
I also have the same problem.

The problem appears to be the addition off;

/usr/lib/python2.5/site-packages/xen/xend/server/blkif.py
          try:
              (typ, params) = string.split(uname, ':', 1)
              if typ not in ('phy', 'file', 'tap'):
                  raise VmError(
                      'Block device must have "phy", "file" or "tap" '
                      'specified to type')

I can get around it by adding drbd to it but means I have to edit each dom0 and restart xend.

On 18 Sep 2008, at 07:52, Albert wrote:

Hi

I have two box  xen 3.2.1 and 3.3.

On the 3.3 box I can't use  drbd as a device in the domu cfg.

xm create -c test.cfg
Using config file "/etc/xen/test.cfg".
Error: Block device must have "phy", "file" or "tap" specified to type

cat /etc/xen/test.cfg

# Configuration file for the Xen instance test, created
# by xen-tools 3.8 on Tue Sep 16 12:02:36 2008.
#

#
#  Kernel + memory size
#
kernel      = '/boot/vmlinuz-2.6.24-21-xen'
ramdisk     = '/boot/initrd.img-2.6.24-21-xen'
memory      = '128'

#
#  Disk device(s).
#
root        = '/dev/xvda2 ro'
#disk        = [
#                  'phy:/dev/vg/test-swap,xvda1,w',
#                  'phy:/dev/vg/test-disk,xvda2,w',
#              ]
disk       = [
               'drbd:test-swap,xvda1,w',
               'drbd:test-disk,xvda2,w',
            ]

#
#  Hostname
#
name        = 'test'

#
#  Networking
#
vif         = [ 'ip=192.168.1.224,mac=00:16:3E:E7:E9:17' ]

#
#  Behaviour
#
on_poweroff = 'destroy'
on_reboot   = 'restart'
on_crash    = 'restart'

#extra = '2 console=xvc0'
extra='xencons=tty'

Something is was changed ?

Albert



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


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

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