help regarding nbd

help regarding nbd

Post by asho » Tue, 03 Jul 2001 02:42:56



Hi,

  I Tried to implement nbd. The following are the versions of nbd and kernel
that i use
 nbd-2.4.9 and kernel 2.4.5

  The following is what i have done

 In the server Machine
 a) /tmp/nbd-server 1099 /dev/hda7

 In the Client Machine
 a) insmod /tmp/nbd.o
 b) /tmp/nbd-client ash.enmail.com 1099 /dev/nda

        on issuing the above command i get the following error messages

   nbd-client: client says host name -1 is ash.enmail.com
   nbd-client: client says port -1 is 1099
   nbd-client: client device name is /dev/nda
   nbd-client: client (-1) manager opened NBD device /dev/nda
   nbd-client: Created NBD ioctl buffer size 87016
   nbd-client: client (-1) manager detaches from shell
   nbd-client: client (-1) manager started new process group 660
   nbd-client: client (-1) opened socket 5 to port 1099
   nbd-client: client (-1) introduction begins
   nbd-client: client (-1) read passwd [NBDMAGIC] ok from port 1099
   nbd-client: client (-1) got cliserv magic ok
   nbd-client: client (-1) got size = 139313152
   nbd-client: client (-1) got signature 0x3c4d2d30.. in bffffa84, had
0x0.. in 8051020
   nbd-client: client (-1) suggested blksize 1024 to server
   nbd-client: client (-1) received suggestion blksize 1024
   nbd-client: client (-1) negotiated blksize 1024
   nbd-client: client (-1) received suggestion ro flags 0
   nbd-client: client (-1) negotiated ro flags 0
   nbd-client: client (-1) requested 0 port connections
   nbd-client: client (-1) introduction ends
   nbd-client: client (-1) set size 139313152
   nbd-client: client (-1) set blksize 1024
   nbd-client: client (-1) set ro flags 0 on device
   nbd-client: client (-1) closed socket 5
   and also NBD #2090[0] : nbd_ioctl bytes 2147483647 mismatch with KB
2147483647 in BLKGETSIZE

     and then when i try issuing the command mke2fs /dev/nda the system
hangs.

        What am i missing. I would be very greatful if you sir could help me
in solving the problem by providing your valuable guidance.

       Thanks for the time and Thanks in Advance

Regards
ashok

 
 
 

help regarding nbd

Post by Peter T. Breue » Tue, 03 Jul 2001 03:09:22



>   I Tried to implement nbd. The following are the versions of nbd and kernel
> that i use
>  nbd-2.4.9 and kernel 2.4.5

I replied to you privately. 2.4.25 is the current version. Where
do you get the idea that 2.4.9 is appropriate?

Quote:>  In the server Machine
>  a) /tmp/nbd-server 1099 /dev/hda7

correct.

Quote:>  In the Client Machine
>  a) insmod /tmp/nbd.o
>  b) /tmp/nbd-client ash.enmail.com 1099 /dev/nda

Looks incorrect, no? You're missing all the channel info.

Quote:>    nbd-client: client (-1) received suggestion ro flags 0
>    nbd-client: client (-1) negotiated ro flags 0
>    nbd-client: client (-1) requested 0 port connections

                             ^^^^^^^^^^^^^^^^^^^^^^

Indeed!

Please read "the instructions", and use 2.4.25.

Peter

 
 
 

1. help regarding nbd

Hi,

  I Tried to implement nbd. The following are the versions of nbd and kernel
that i use
 nbd-2.4.9 and kernel 2.4.5

  The following is what i have done

 In the server Machine
 a) /tmp/nbd-server 1099 /dev/hda7

 In the Client Machine
 a) insmod /tmp/nbd.o
 b) /tmp/nbd-client ash.enmail.com 1099 /dev/nda

        on issuing the above command i get the following error messages

   nbd-client: client says host name -1 is ash.enmail.com
   nbd-client: client says port -1 is 1099
   nbd-client: client device name is /dev/nda
   nbd-client: client (-1) manager opened NBD device /dev/nda
   nbd-client: Created NBD ioctl buffer size 87016
   nbd-client: client (-1) manager detaches from shell
   nbd-client: client (-1) manager started new process group 660
   nbd-client: client (-1) opened socket 5 to port 1099
   nbd-client: client (-1) introduction begins
   nbd-client: client (-1) read passwd [NBDMAGIC] ok from port 1099
   nbd-client: client (-1) got cliserv magic ok
   nbd-client: client (-1) got size = 139313152
   nbd-client: client (-1) got signature 0x3c4d2d30.. in bffffa84, had
0x0.. in 8051020
   nbd-client: client (-1) suggested blksize 1024 to server
   nbd-client: client (-1) received suggestion blksize 1024
   nbd-client: client (-1) negotiated blksize 1024
   nbd-client: client (-1) received suggestion ro flags 0
   nbd-client: client (-1) negotiated ro flags 0
   nbd-client: client (-1) requested 0 port connections
   nbd-client: client (-1) introduction ends
   nbd-client: client (-1) set size 139313152
   nbd-client: client (-1) set blksize 1024
   nbd-client: client (-1) set ro flags 0 on device
   nbd-client: client (-1) closed socket 5
   and also NBD #2090[0] : nbd_ioctl bytes 2147483647 mismatch with KB
2147483647 in BLKGETSIZE

     and then when i try issuing the command mke2fs /dev/nda the system
hangs.

        What am i missing. I would be very greatful if you sir could help me
in solving the problem by providing your valuable guidance.

        Thanks for the time and Thanks in Advance

Regards
ashok

2. how to program in linux

3. Urgent Help Required Regarding A Chat Program,PLEASE HELP

4. ORA's latest offering

5. Urgent Help Required Regarding A Chat Program,PLEASE HELP,PLEASE

6. Determine the protocol family from a socket?

7. nbd compile fix - Was: Re: [PATCH] 2.5.8 IDE 36

8. Segmentation faults and exceptions

9. Update URL for NBD.

10. Update NBD URL in documentation.

11. nbd driver for 2.5+: fix for 2.5 block layer (improved)

12. 2.5.73-mm1 nbd: boot hang in add_disk at first call from nbd_init

13. NBD blocksizes!=1024