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] tap2:remus:backup_ip:9000|aio:/path_to_disk.img not work

To: Todd Deshane <todd.deshane@xxxxxxx>
Subject: Re: [Xen-users] tap2:remus:backup_ip:9000|aio:/path_to_disk.img not working - OSError: [Errno 2] No such file or directory
From: Manuel Silva <manuel79silva@xxxxxxxxx>
Date: Wed, 22 Dec 2010 18:44:31 +0000
Cc: xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Wed, 22 Dec 2010 10:45:56 -0800
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type; bh=PDkk4/ajv9U/6CGD1IgxS7eg9vokBoE3kdj3l74IKJk=; b=OUysUmrstW/bl3hAavfeMhp87r0B5dT6I1uxXQ5/z7j7hlRCrrgH4gCkKqZjtBiD7W /xqGr4x5As2g9+MnSbHxuiR+emZBV5xiZsIdmHTVZshpmbrlzw7dT70lT3eqw9T7q3f1 4A5yw1+gXJLUdFpF6Y/Twr8aESdUgzlbYroOE=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=lIiyK661Pj9J/b7Evgr/ig5QEIP7VTQToTsXyQxr5lRHSVIbi4qp1DyeHS1XL2qrFP NoN+lteMMnlKL/bEsh55Oun+w1xFfPn7Z3R/72yX+qm8CijKox9kkwrbpweSC9BOt1+R iTgmkdrD5EBLsZrIuFLrrUKHTd3TXf9QQ/Yp4=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <AANLkTikB7AL8ivAJAQdfqmUXoVLEKDbKJL89iHcRuY-n@xxxxxxxxxxxxxx>
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: <AANLkTik=WKUV4QVgXEb+DWjzLOf_Wa5n9_h7+1vCYDcR@xxxxxxxxxxxxxx> <AANLkTikB7AL8ivAJAQdfqmUXoVLEKDbKJL89iHcRuY-n@xxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
Hello Todd,

thank you sou much for your support.
In fact, I can run "remus --no-net myvm backvm".

However, when I try (without --no-net option) "remus -i 1000 myvm backvm", it returns:

Disk is not replicated: tap:aio:/home/xen/domains/lucid/disk.img,xvda1,w
Disk is not replicated: tap:aio:/home/xen/domains/lucid/swap.img,xvda2,w
modprobe -q sch_queue

Traceback (most recent call last):
  File "/usr/bin/remus", line 210, in <module>
    run(cfg)
  File "/usr/bin/remus", line 119, in run
    bufs.append(BufferedNIC(vif))
  File "usr/lib/python2.5/site-packages/xen/remus/device.py", line 284, in __init__
  File "usr/lib/python2.5/site-packages/xen/remus/device.py", line 323, in setup
xen.remus.device.BufferedNICException: could not load sch_queue module

I tried to install sch_queue from "/home/altino/xen-4.0-testing.hg/tools/remus/kmod", but without success.

I'm using Debian Lenny 5 and kernel 2.6.32-bpo.5-xen-686 (from apt-get install linux-image-2.6.32-bpo.5-xen-686).
Should I try linux-image-1.6.18 from xen (hg clone http://xenbits.xensource.com/linux-2.6.18-xen.hg)?

Everything seems to work with Xen, except Remus. I simply cannot synchronize VM's (principal and backup), since I cannot define "tap2:remus:backup_ip:port|aio:path_to_file" (but I can use tap2:aio:path_to_file).


Kind regards,
Manuel





2010/12/22 Todd Deshane <todd.deshane@xxxxxxx>
On Mon, Dec 20, 2010 at 8:01 PM, Manuel Silva <manuel79silva@xxxxxxxxx> wrote:
> Hello,
>
> I'm using Xen (installed from source - "hg clone
> http://xenbits.xen.org/xen-4.0-testing.hg") on Debian Lenny. Dom0 kernel is
> 2.6.32-bpo.5-xen-686.
>
> Until now I have successfully ran the Lucid Ubuntu as domU guest, defining
> disks as (and also as file:):
> disk = ['tap2:aio:/home/xen/domains/lucid/disk.img,xvda1,w',
> 'tap2:aio:/home/xen/domains/lucid/swap.img,xvda2,w']
>
> However, when I try "disk =
> ['tap2:remus:backup_ip:9000|aio:/home/xen/domains/lucid/disk.img,xvda1,w',
> 'tap2:remus:backup_ip:9000|aio:/home/xen/domains/lucid/swap.img,xvda2,w']" I
> have no luck.
>
> Please, can you tell me what's wrong? I have spend so many time googling,
> but no one seems to address this issue.
>
> Can someone tell me if this happens when installing xen hypervisor directly
> from deb packages (version 4.0 for Debian squeeze)?
>
> I'll appreciate your help (I'm really stuck).
> Thanks in advance.
>
> Best regards,
> Manuel Silva
>
>
> PS.: The error follows:
>
> [2010-12-21 00:32:23 2091] DEBUG (XendDomainInfo:101)
> XendDomainInfo.create(['vm', ['name', 'lucid'], ['memory', 128],
> ['on_xend_start', 'ignore'], ['on_xend_stop', 'ignore'], ['vcpus', 1],
> ['oos', 1], ['bootloader', '/usr/bin/pygrub'], ['bootloader_args', ''],
> ['image', ['linux', ['root', '/dev/xvda1 ro'], ['videoram', 4], ['args',
> 'xencons=tty'], ['tsc_mode', 0], ['nomigrate', 0]]], ['s3_integrity', 1],
> ['device', ['tap2', ['uname',
> 'tap2:remus:backup_ip:9000|aio:/home/xen/domains/lucid/disk.img'], ['dev',
> 'xvda1'], ['mode', 'w']]], ['device', ['tap2', ['uname',
> 'tap2:remus:backup_ip:9000|aio:/home/xen/domains/lucid/swap.img'], ['dev',
> 'xvda2'], ['mode', 'w']]], ['device', ['vif']]])
> [2010-12-21 00:32:23 2091] DEBUG (XendDomainInfo:2508)
> XendDomainInfo.constructDomain
> [2010-12-21 00:32:23 2091] DEBUG (balloon:220) Balloon: 132032 KiB free;
> need 16384; done.
> [2010-12-21 00:32:23 2091] DEBUG (XendDomain:464) Adding Domain: 5
> [2010-12-21 00:32:23 2091] DEBUG (XendDomainInfo:2818)
> XendDomainInfo.initDomain: 5 256
> [2010-12-21 00:32:23 2091] ERROR (XendDomainInfo:483) VM start failed
> Traceback (most recent call last):
>   File "usr/lib/python2.5/site-packages/xen/xend/XendDomainInfo.py", line
> 469, 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
> 2820, in _initDomain
>     self._configureBootloader()
>   File "usr/lib/python2.5/site-packages/xen/xend/XendDomainInfo.py", line
> 3245, in _configureBootloader
>     mounted = devtype in ['tap', 'tap2'] and taptype != 'aio' and taptype !=
> 'sync' and not os.stat(fn).st_rdev
> OSError: [Errno 2] No such file or directory:
> 'backup_ip:9000|aio:/home/xen/domains/lucid/disk.img'
> [2010-12-21 00:32:23 2091] DEBUG (XendDomainInfo:3053)
> XendDomainInfo.destroy: domid=5
> [2010-12-21 00:32:23 2091] DEBUG (XendDomainInfo:2416) No device model
> [2010-12-21 00:32:23 2091] DEBUG (XendDomainInfo:2418) Releasing devices
> [2010-12-21 00:32:23 2091] ERROR (XendDomainInfo:106) Domain construction
> failed
> Traceback (most recent call last):
>   File "usr/lib/python2.5/site-packages/xen/xend/XendDomainInfo.py", line
> 104, in create
>     vm.start()
>   File "usr/lib/python2.5/site-packages/xen/xend/XendDomainInfo.py", line
> 469, 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
> 2820, in _initDomain
>     self._configureBootloader()
>   File "usr/lib/python2.5/site-packages/xen/xend/XendDomainInfo.py", line
> 3245, in _configureBootloader
>     mounted = devtype in ['tap', 'tap2'] and taptype != 'aio' and taptype !=
> 'sync' and not os.stat(fn).st_rdev
> OSError: [Errno 2] No such file or directory:
> 'backup_ip:9000|aio:/home/xen/domains/lucid/disk.img'
> [2010-12-21 00:32:23 2091] ERROR (xmlrpclib2:178) Internal error handling
> xend.domain.create
> Traceback (most recent call last):
>   File "usr/lib/python2.5/site-packages/xen/util/xmlrpclib2.py", line 131,
> in _marshaled_dispatch
>     response = self._dispatch(method, params)
>   File "/usr/lib/python2.5/SimpleXMLRPCServer.py", line 415, in _dispatch
>     return func(*params)
>   File "usr/lib/python2.5/site-packages/xen/xend/server/XMLRPCServer.py",
> line 79, in domain_create
>     info = XendDomain.instance().domain_create(config)
>   File "usr/lib/python2.5/site-packages/xen/xend/XendDomain.py", line 982,
> in domain_create
>     dominfo = XendDomainInfo.create(config)
>   File "usr/lib/python2.5/site-packages/xen/xend/XendDomainInfo.py", line
> 104, in create
>     vm.start()
>   File "usr/lib/python2.5/site-packages/xen/xend/XendDomainInfo.py", line
> 469, 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
> 2820, in _initDomain
>     self._configureBootloader()
>   File "usr/lib/python2.5/site-packages/xen/xend/XendDomainInfo.py", line
> 3245, in _configureBootloader
>     mounted = devtype in ['tap', 'tap2'] and taptype != 'aio' and taptype !=
> 'sync' and not os.stat(fn).st_rdev
> OSError: [Errno 2] No such file or directory:
> 'backup_ip:9000|aio:/home/xen/domains/lucid/disk.img

The problem looks to be related to the fact that
backup_ip:9000|aio:/home/xen/domains/lucid/disk.img is not addressable
(see the tail of your error message).

Can you confirm that you have the remus part working correctly?

Hope that helps.

Thanks,
Todd

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