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: Fri, 24 Dec 2010 12:05:58 +0000
Cc: xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Fri, 24 Dec 2010 04:07:30 -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=mdNA0keyAe9j7x+0k+29y06p113MKgYbSgMvp2DskFg=; b=Kjq7jIpSovuGQb2vbT3Mz7BZwRHWmLUyFPn7LIwpmRzoV5Xi4/0SsWUW8hkdiaSqvk w+gJsrlBvjhX5/CMYx5d5YfmUP1x+z07q9WlieUgn22RPjeo9lUgMNuyvvY/Cx+Mo4gS K3ZPXp7qNpt7j3z6afWFfJnwfiXGRf2+32bgI=
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=H8BuQD+Sb6SLJcU1LBhkoTxRWdz+MzX1F9b8wnp/ocuQSXxR6koC+xPTPshqD0OA+f 0gCTmxmUVyBE+KO/24Qc+RIuLX7dm6Ih3DWBqet1t57QApZFO87P0BB/6Nqk+X32FwYw u+Kcjlfk6SvYa5oGyJAy9MhgTPUskC5Ft2uBU=
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
Dear Todd,

I have Xen and this features working:
 - xm migrate --live myvm mybckphost
 - remus -i 200 myvm mybckphost

However, I just simply cannot put remus working in order to synchronize disks. It's impossible to specify  "tap2:remus:backup_ip:port|aio:path_to_file".

It keeps giving me the error "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
"

What do you mean with "backup_ip:9000|aio:/home/xen/domains/lucid/disk.img is not addressable"?
Image file /home/xen/domains/lucid/disk.img does exists and works when specifying "tap2:aio:/home/xen/domains/lucid/disk.img" (in this case without Remus).

Note: I'm using Paravirtualized, not HVM.

Really, after googling weeks, I don't know what else do...


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