Re: [Nbd] [RFC]nbd-client connect error
On Sat, Jul 30, 2011 at 3:07 PM, Wouter Verhelst <w@...112...> wrote:
>
> Hi Harry,
>
> I've removed a few lists that this has little relevance to. In the
> future, please direct your nbd-related questions to the nbd-general
> list.
Thanks, i see.
>
> On Mon, Jul 25, 2011 at 02:13:53PM +0800, harryxiyou wrote:
> > Hi all,
> > When i use ndb-server and nbd-client tools, something wrong(maybe a
> > bug) happens to like following.
> >
> > Server: (IP: 192.168.1.103)
> > # uname -a
> > Linux wangzhe-laptop 2.6.32-33-generic #68-Ubuntu SMP Fri Jun 17
> > 16:25:19 UTC 2011 i686 GNU/Linux
> >
> > # cat /usr/etc/nbd-server/config
> > [generic]
> > [export]
> > exportname = /root/1.c
> > port = 2001
>
> Which version of the server is this?
It is the latest version.
>
> If it is 2.9.17 or later, you will need an additional option
> "oldstyle=true" in the generic section.
I will try this.
>
> > # nbd-server
> >
> > Client: (IP: 192.168.1.30)
> >
> > # uname -a
> > Linux localhost.localdomain 2.6.18-238.12.1.el5 #1 SMP Tue May 31
> > 13:23:01 EDT 2011 i686 i686 i386 GNU/Linux
> >
> > # nbd-client 192.168.1.103 2001 /dev/nbd0
> > Negotiation: ..size = 0MB
> > Error: Ioctl/1.1a failed: Inappropriate ioctl for device
> >
> > Exiting.
>
> So, I've set up a VM running CentOS5, and have installed nbd there:
>
> [wouter@...920... nbd-2.9.23]$ sudo ./nbd-client debsrv 1234 /dev/nbd0
> Negotation: ..size = 2048MB
> bs=1024, sz=2147483648 bytes
> [wouter@...920... nbd-2.9.23]$ uname -r
> 2.6.18-238.12.1.el5
>
> in other words, I can't reproduce this.
>
> Is it possible that your /root/1.c file is 0 bytes large? If so, please
> make a larger file first (e.g., by using 'dd if=/dev/zero of=/root/foo
> bs=1k skip=1M count=0') and export that one.
I am sure it is larger than 0 bytes.
I will try it. If i have any other questions, i will give you a mail
and cc'd nbd-general@lists.sourceforge.net directly.
Thanks for your help.
Harry Wei.
Reply to: