[Pkg-xen-devel] DRBD VBD script not working in squeeze ?

Pasi Kärkkäinen pasik at iki.fi
Mon Jan 24 19:20:48 UTC 2011


On Sun, Jan 23, 2011 at 10:02:49AM +0100, Olivier B. wrote:
> Hi,
>
> since I upgraded from Lenny, DRBD VBD scripts not works at all.
>
> This config works :
> disk        = [ 'phy:/dev/drbd/by-res/ads-disk,xvda,w' ]
>
> But his one doesn't work at all :
> disk        = [ 'drbd:ads-disk,xvda,w' ]
>
> I obtain this error :
> # xm create ads.cfg
> Using config file "/etc/xen/ads.cfg".
> Error: Device 51712 (vbd) could not be connected. Hotplug scripts not working.
>
> and from logs :
> [2011-01-23 09:41:19 2112] INFO (XendDomainInfo:2367) createDevice: vbd : {'uuid': '133a116c-4aee-f8e1-2e51-f4a66b440d77', 'bootable': 1, 'driver': 'paravirtualised', 'dev': 'xvda', 'uname': 'drbd:ads-disk', 'mode': 'w'}
> [2011-01-23 09:41:19 2112] DEBUG (DevController:95) DevController: writing {'virtual-device': '51712', 'device-type': 'disk', 'protocol': 'x86_64-abi', 'backend-id': '0', 'state': '1', 'backend': '/local/domain/0/backend/vbd/56/51712'} to /local/domain/56/device/vbd/51712.
> [2011-01-23 09:41:19 2112] DEBUG (DevController:97) DevController: 
> writing {'domain': 'ads', 'frontend': 
> '/local/domain/56/device/vbd/51712', 'uuid': 
> '133a116c-4aee-f8e1-2e51-f4a66b440d77', 'bootable': '1', 'dev': 'xvda', 
> 'state': '1', 'params': 'ads-disk', 'mode': 'w', 'online': '1', 
> 'frontend-id': '56', 'type': 'drbd'} to 
> /local/domain/0/backend/vbd/56/51712.
> [2011-01-23 09:41:20 2112] INFO (XendDomainInfo:2367) createDevice: vif : {'bridge': 'vlan', 'mac': '0a:00:00:00:0a:d5', 'uuid': 'c47deac7-9157-5d05-1488-a2ca877cad5d'}
> [2011-01-23 09:41:20 2112] DEBUG (DevController:95) DevController: writing {'mac': '0a:00:00:00:0a:d5', 'handle': '0', 'protocol': 'x86_64-abi', 'backend-id': '0', 'state': '1', 'backend': '/local/domain/0/backend/vif/56/0'} to /local/domain/56/device/vif/0.
> [2011-01-23 09:41:20 2112] DEBUG (DevController:97) DevController: 
> writing {'bridge': 'vlan', 'domain': 'ads', 'handle': '0', 'uuid': 
> 'c47deac7-9157-5d05-1488-a2ca877cad5d', 'script': 
> '/etc/xen/scripts/vif-bridge', 'mac': '0a:00:00:00:0a:d5', 'frontend-id': 
> '56', 'state': '1', 'online': '1', 'frontend': 
> '/local/domain/56/device/vif/0'} to /local/domain/0/backend/vif/56/0.
> [2011-01-23 09:41:20 2112] DEBUG (XendDomainInfo:3400) Storing VM 
> details: {'on_xend_stop': 'ignore', 'shadow_memory': '0', 'uuid': 
> '23a03eb9-2640-64f0-72a3-56c51e86303f', 'on_reboot': 'restart', 
> 'start_time': '1295772080.16', 'on_poweroff': 'destroy', 
> 'bootloader_args': '', 'on_xend_start': 'ignore', 'on_crash': 'restart', 
> 'xend/restart_count': '0', 'vcpus': '2', 'vcpu_avail': '3', 'bootloader': 
> '', 'image': "(linux (kernel 
> /usr/lib/xen-4.0/boot/vmlinuz-2.6.32.25-dae-xen) (ramdisk 
> /usr/lib/xen-4.0/boot/initrd.img-2.6.32.25-dae-xen) (args 
> 'root=/dev/mapper/vg--ads-root ro rootflags=data=writeback panic=60') 
> (superpages 0) (tsc_mode 0) (videoram 4) (pci ()) (nomigrate 0) (notes 
> (HV_START_LOW 18446603336221196288) (FEATURES 
> '!writable_page_tables|pae_pgdir_above_4gb') (VIRT_BASE 
> 18446744071562067968) (GUEST_VERSION 2.6) (PADDR_OFFSET 0) (GUEST_OS 
> linux) (HYPERCALL_PAGE 18446744071578882048) (LOADER generic) 
> (SUSPEND_CANCEL 1) (PAE_MODE yes) (ENTRY 18446744071585088000) 
> (XEN_VERSION xen-3.0)))", 'name': 'ads'}
> [2011-01-23 09:41:20 2112] DEBUG (XendDomainInfo:1804) Storing domain 
> details: {'console/ring-ref': '9349619', 'image/entry': 
> '18446744071585088000', 'console/port': '2', 'store/ring-ref': '9349620', 
> 'image/loader': 'generic', 'vm': 
> '/vm/23a03eb9-2640-64f0-72a3-56c51e86303f',  
> 'control/platform-feature-multiprocessor-suspend': '1', 
> 'image/hv-start-low': '18446603336221196288', 'image/guest-os': 'linux', 
> 'cpu/1/availability': 'online', 'image/virt-base': 
> '18446744071562067968', 'memory/target': '1048576', 
> 'image/guest-version': '2.6', 'image/pae-mode': 'yes', 'description': '', 
> 'console/limit': '1048576', 'image/paddr-offset': '0', 
> 'image/hypercall-page': '18446744071578882048', 'image/suspend-cancel': 
> '1', 'cpu/0/availability': 'online', 
> 'image/features/pae-pgdir-above-4gb': '1', 
> 'image/features/writable-page-tables': '0', 'console/type': 
> 'xenconsoled', 'name': 'ads', 'domid': '56', 'image/xen-version': 
> 'xen-3.0', 'store/port': '1'}
> [2011-01-23 09:41:21 2112] DEBUG (DevController:95) DevController: writing {'protocol': 'x86_64-abi', 'state': '1', 'backend-id': '0', 'backend': '/local/domain/0/backend/console/56/0'} to /local/domain/56/device/console/0.
> [2011-01-23 09:41:21 2112] DEBUG (DevController:97) DevController: 
> writing {'domain': 'ads', 'frontend': 
> '/local/domain/56/device/console/0', 'uuid': 
> '2e0846b9-d735-ad7f-be9e-2406ecf4954c', 'frontend-id': '56', 'state': 
> '1', 'location': '2', 'online': '1', 'protocol': 'vt100'} to  
> /local/domain/0/backend/console/56/0.
> [2011-01-23 09:41:21 2112] DEBUG (XendDomainInfo:1891) XendDomainInfo.handleShutdownWatch
> [2011-01-23 09:41:21 2112] DEBUG (DevController:139) Waiting for devices vif2.
> [2011-01-23 09:41:21 2112] DEBUG (DevController:139) Waiting for devices vif.
> [2011-01-23 09:41:22 2112] DEBUG (DevController:144) Waiting for 0.
> [2011-01-23 09:41:22 2112] DEBUG (DevController:628) hotplugStatusCallback /local/domain/0/backend/vif/56/0/hotplug-status.
> [2011-01-23 09:41:22 2112] DEBUG (DevController:642) hotplugStatusCallback 1.
> [2011-01-23 09:41:22 2112] DEBUG (DevController:139) Waiting for devices vscsi.
> [2011-01-23 09:41:22 2112] DEBUG (DevController:139) Waiting for devices vbd.
> [2011-01-23 09:41:22 2112] DEBUG (DevController:144) Waiting for 51712.
> [2011-01-23 09:41:23 2112] DEBUG (DevController:628) hotplugStatusCallback /local/domain/0/backend/vbd/56/51712/hotplug-status.
> [2011-01-23 09:43:03 2112] DEBUG (XendDomainInfo:3053) XendDomainInfo.destroy: domid=56
> [2011-01-23 09:43:03 2112] DEBUG (XendDomainInfo:2411) Destroying device model
> [2011-01-23 09:43:03 2112] DEBUG (XendDomainInfo:2418) Releasing devices
> [2011-01-23 09:43:03 2112] DEBUG (XendDomainInfo:2424) Removing vif/0
> [2011-01-23 09:43:03 2112] DEBUG (XendDomainInfo:1286) XendDomainInfo.destroyDevice: deviceClass = vif, device = vif/0
> [2011-01-23 09:43:03 2112] DEBUG (XendDomainInfo:2424) Removing vbd/51712
> [2011-01-23 09:43:03 2112] DEBUG (XendDomainInfo:1286) XendDomainInfo.destroyDevice: deviceClass = vbd, device = vbd/51712
> [2011-01-23 09:43:03 2112] DEBUG (XendDomainInfo:2424) Removing console/0
> [2011-01-23 09:43:03 2112] DEBUG (XendDomainInfo:1286) XendDomainInfo.destroyDevice: deviceClass = console, device = console/0
> [2011-01-23 09:43:03 2112] DEBUG (DevController:628) hotplugStatusCallback /local/domain/0/backend/vbd/56/51712/hotplug-status.
> [2011-01-23 09:43:03 2112] DEBUG (DevController:628) hotplugStatusCallback /local/domain/0/backend/vbd/56/51712/hotplug-status.
>
>
> Can I do something to help fix that ?
>

IIRC upstream Xen 4.0.2 has some drbd related fixes..

-- Pasi




More information about the Pkg-xen-devel mailing list