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.
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? If it is 2.9.17 or later, you will need an additional option "oldstyle=true" in the generic section. > # 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@centos nbd-2.9.23]$ sudo ./nbd-client debsrv 1234 /dev/nbd0 Negotation: ..size = 2048MB bs=1024, sz=2147483648 bytes [wouter@centos 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. -- The volume of a pizza of thickness a and radius z can be described by the following formula: pi zz a ------------------------------------------------------------------------------ Got Input? Slashdot Needs You. Take our quick survey online. Come on, we don't ask for help often. Plus, you'll get a chance to win $100 to spend on ThinkGeek. http://p.sf.net/sfu/slashdot-survey _______________________________________________ Nbd-general mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/nbd-general
