[DRBD-user] Xen 3.3 + Drbd block device script broken?

Nathan Flynn eper at eper.net
Wed Sep 10 18:14:43 CEST 2008

Note: "permalinks" may not be as permanent as we would like,
direct links of old sources may well be a few messages off.


Hello,

I have a xen 3.2.1 box and a xen 3.3 box.

Ont he 3.3 box it is unable to use drbd as a device in the domu cfg.

The problem appears to be the addition off;

             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')


in /usr/lib/python2.5/site-packages/xen/xend/server/blkif.py

My domu cfg file;

vif = [ 'bridge=brxen, vifname=abaddon, mac=aa:00:00:50:02:07',  
'bridge=brxendedi, vifname=abaddondedi, mac=aa:00:00:50:03:07' ]
kernel = "/boot/abaddon/vmlinuz-2.6.21-xen-pae"
memory = 256
maxmem = 2048
name = "abaddon"
disk = ['drbd:abaddon-root,xvda,w','drbd:abaddon-swap,xvdb,w']
#disk = ['phy:/dev/domu2/abaddon-root,xvda,w','phy:/dev/domu2/abaddon- 
swap,xvdb,w']
root = "/dev/xvda ro"

azazel scripts # xm create abaddon
Using config file "/etc/xen/abaddon".
Error: Block device must have "phy", "file" or "tap" specified to type

[2008-09-10 18:17:00 4707] DEBUG (XendDomainInfo:2028)  
XendDomainInfo.constructDomain
[2008-09-10 18:17:00 4707] DEBUG (balloon:132) Balloon: 1865712 KiB  
free; need 2048; done.
[2008-09-10 18:17:00 4707] DEBUG (XendDomain:447) Adding Domain: 7
[2008-09-10 18:17:00 4707] DEBUG (XendDomainInfo:2134)  
XendDomainInfo.initDomain: 7 256
[2008-09-10 18:17:00 4707] DEBUG (XendDomainInfo:2215)  
_initDomain:shadow_memory=0x0, memory_static_max=0x80000000,  
memory_static_min=0x0.
[2008-09-10 18:17:00 4707] DEBUG (balloon:132) Balloon: 1865712 KiB  
free; need 270336; done.
[2008-09-10 18:17:00 4707] INFO (image:166) buildDomain os=linux dom=7  
vcpus=1
[2008-09-10 18:17:00 4707] DEBUG (image:631) domid          = 7
[2008-09-10 18:17:00 4707] DEBUG (image:632) memsize        = 256
[2008-09-10 18:17:00 4707] DEBUG (image:633) image          = /boot/ 
abaddon/vmlinuz-2.6.21-xen-pae
[2008-09-10 18:17:00 4707] DEBUG (image:634) store_evtchn   = 1
[2008-09-10 18:17:00 4707] DEBUG (image:635) console_evtchn = 2
[2008-09-10 18:17:00 4707] DEBUG (image:636) cmdline        = root=/ 
dev/xvda ro
[2008-09-10 18:17:00 4707] DEBUG (image:637) ramdisk        =
[2008-09-10 18:17:00 4707] DEBUG (image:638) vcpus          = 1
[2008-09-10 18:17:00 4707] DEBUG (image:639) features       =
[2008-09-10 18:17:00 4707] INFO (XendDomainInfo:1900) createDevice:  
vbd : {'uuid': '1822f3a6-8d1d-206e-7449-6049c5294021', 'bootable': 1,  
'driver': 'paravirtualised', 'dev': 'xvda', 'uname': 'drbd:abaddon- 
root', 'mode': 'w'}
[2008-09-10 18:17:00 4707] ERROR (XendDomainInfo:2264)  
XendDomainInfo.initDomain: exception occurred
Traceback (most recent call last):
   File "usr/lib/python2.5/site-packages/xen/xend/XendDomainInfo.py",  
line 2256, in _initDomain
     self._createDevices()
   File "usr/lib/python2.5/site-packages/xen/xend/XendDomainInfo.py",  
line 1902, in _createDevices
     devid = self._createDevice(devclass, config)
   File "usr/lib/python2.5/site-packages/xen/xend/XendDomainInfo.py",  
line 1869, in _createDevice
     return  
self.getDeviceController(deviceClass).createDevice(devConfig)
   File "usr/lib/python2.5/site-packages/xen/xend/server/ 
DevController.py", line 90, in createDevice
     (devid, back, front) = self.getDeviceDetails(config)
   File "usr/lib/python2.5/site-packages/xen/xend/server/blkif.py",  
line 61, in getDeviceDetails
     'Block device must have "phy", "file" or "tap" '
VmError: Block device must have "phy", "file" or "tap" specified to type
[2008-09-10 18:17:00 4707] ERROR (XendDomainInfo:445) VM start failed
Traceback (most recent call last):
   File "usr/lib/python2.5/site-packages/xen/xend/XendDomainInfo.py",  
line 425, in start
     XendTask.log_progress(31, 60, self._initDomain)
   File "usr/lib/python2.5/site-packages/xen/xend/XendTask.py", line  
209, in log_progress
     retval = func(*args, **kwds)
   File "usr/lib/python2.5/site-packages/xen/xend/XendDomainInfo.py",  
line 2267, in _initDomain
     raise exn
VmError: Block device must have "phy", "file" or "tap" specified to type
[2008-09-10 18:17:00 4707] DEBUG (XendDomainInfo:2389)  
XendDomainInfo.destroy: domid=7
[2008-09-10 18:17:00 4707] DEBUG (XendDomainInfo:2406)  
XendDomainInfo.destroyDomain(7)
[2008-09-10 18:17:00 4707] DEBUG (XendDomainInfo:1939) Destroying  
device model
[2008-09-10 18:17:00 4707] DEBUG (XendDomainInfo:1946) Releasing devices
[2008-09-10 18:17:00 4707] DEBUG (XendDomainInfo:1944) No device model
[2008-09-10 18:17:00 4707] DEBUG (XendDomainInfo:1946) Releasing devices
[2008-09-10 18:17:00 4707] ERROR (XendDomainInfo:94) Domain  
construction failed
Traceback (most recent call last):
   File "usr/lib/python2.5/site-packages/xen/xend/XendDomainInfo.py",  
line 92, in create
     vm.start()
   File "usr/lib/python2.5/site-packages/xen/xend/XendDomainInfo.py",  
line 425, in start
     XendTask.log_progress(31, 60, self._initDomain)
   File "usr/lib/python2.5/site-packages/xen/xend/XendTask.py", line  
209, in log_progress
     retval = func(*args, **kwds)
   File "usr/lib/python2.5/site-packages/xen/xend/XendDomainInfo.py",  
line 2267, in _initDomain
     raise exn
VmError: Block device must have "phy", "file" or "tap" specified to type




More information about the drbd-user mailing list