From: Adam T. <ad...@io...> - 2004-03-06 19:21:13
|
On Sat, 2004-03-06 at 12:08, Steven Looman wrote: > Hi, > > Can you give the exact error message nbd-client gives? > > Maybe you started it the wrong way. This is how i started it: > server: nbd-server 33221 /usr/diskless/cube.swap > client: nbd-client 192.168.2.1 33221 /dev/swap Here's how I'm starting the server: <adam> dev-linux:~/nbd-2.6 $ dd if=/dev/zero of=64MB.swap bs=1M count=64 64+0 records in 64+0 records out <adam> dev-linux:~/nbd-2.6 $ ./nbd-server 33221 /home/adam/nbd-2.6/64MB.swap Then, on the cube: cube:~# ls -l /dev/swap brw-r--r-- 1 root uucp 43, 0 Mar 1 12:04 /dev/swap cube:~# ./nbd-client 192.168.1.4 33221 /dev/swap Error: Can not open NBD: No such device or address If I hit a machine that doesn't exist, as expected, the command hangs. If I hit a machine that isn't running NBD, as expected, I get "Connection refused": cube:~# ./nbd-client 192.168.1.1 33221 /dev/swap Error: Connect: Connection refused So clearly I'm hitting something on port 33221 of the appropriate machine...but it isn't acting right. OK, so, u32 and u64 aren't defined, so that the configure check for nbd.h fails because the types are undefined and therefore the test compilation for usability of nbd.h fails. But cliserv.h *does* that. And other than a comparison between signed and unsigned I get warned about, compilation and running appear OK. cube:~# ./nbd-client 192.168.1.13 33221 /dev/swap Error: Can not open NBD: No such device or address I get the same thing if I run nbd-server I've apt-gotten for Debian Sarge. Adam |