Hi Wouter,
* Wouter Verhelst <wou...@debian.org> [2018-01-18; 23:42]:
> On Thu, Jan 18, 2018 at 12:01:48AM +0100, Gregor Zattler wrote:
>> $ sudo nbd-client  -name "server-media" shi /dev/nbd1
>> Negotiation: ..Error: Read failed: End of file
>> Exiting.
>
> What does your syslog say at that point in time? nbd-server should log
> something when it fails.

I changed the config to "server-media" as name for the export and
did a 'sudo systemctl restart nbd-server.service' on the server and
then I connected from the client via 'sudo nbd-client -name "server-media" shi 
/dev/nbd1': 

Jan 19 11:05:55 shi nbd-server[20236]: Stopping Network Block Device server: 
nbd-server.
Jan 19 11:05:55 shi nbd-server[20239]:  nbd-server.
Jan 19 11:06:13 shi nbd_server[20241]: Spawned a child process
Jan 19 11:06:13 shi nbd_server[20257]: Connection not allowed (unknown by 
parent?!?)
Jan 19 11:06:13 shi nbd_server[20257]: Modern initial negotiation failed
Jan 19 11:06:13 shi nbd_server[20241]: Child exited with 1

Then I changed the name of the export back to "shi-media", did
the same to restart and connected from the client to shi-media:

Jan 19 11:08:16 shi nbd-server[20597]: Stopping Network Block Device server: 
nbd-server.
Jan 19 11:08:16 shi nbd-server[20599]:  nbd-server.
Jan 19 11:08:23 shi nbd_server[20601]: Spawned a child process
Jan 19 11:08:23 shi nbd_server[20615]: virtstyle ipliteral
Jan 19 11:08:23 shi nbd_server[20615]: connect from 192.168.1.22, assigned file 
is /dev/sda5
Jan 19 11:08:23 shi nbd_server[20615]: No authorization file, granting access.
Jan 19 11:08:23 shi nbd_server[20615]: Size of exported file/device is 
966367641600
Jan 19 11:08:23 shi nbd_server[20615]: Starting to serve


In order to get the above excerpt of syslog I did 'sudo grep nbd
/var/log/syslog' on the server.


HTH and thanks for looking into this.  ATM I'm hearing music
thanks to your nbd related efforts.    Regards, Gregor

Reply via email to