Problems with client configuration
Hi,
I just started to set up a ndb server/client infrastructure for the
first time. I think I got the server part right:
[root@sarkovy ~]# getent ahosts stratoserver.internal
fd46:1ffa:d8e0::18 STREAM stratoserver.internal
fd46:1ffa:d8e0::18 DGRAM
fd46:1ffa:d8e0::18 RAW
192.168.0.18 STREAM
192.168.0.18 DGRAM
192.168.0.18 RAW
[root@sarkovy ~]# nbd-client -l stratoserver.internal
Negotiation: ..
secdata
[root@sarkovy ~]# nbd-client -l fd46:1ffa:d8e0::18
Negotiation: ..
secdata
[root@sarkovy ~]# nbd-client -l 192.168.0.18
Negotiation: ..
secdata
Note, however, that contrary to what 'man 8 nbd-client' states ("-l
Ask the server for a list of available exports. If the server is
exporting over IPv6 as well as over IPv4, this will list all exports
twice; otherwise, it should list them all only once."), there are no
duplications.
Next, I created a file /etc/nbdtab and tried to connect using that by
only giving the full path of the device node as the sole argument, as
stated in 'man 8 nbd-client'.
[root@sarkovy ~]# cat /etc/nbdtab
nbd0 stratoserver.internal secdata
[root@sarkovy ~]# nbd-client nbd0
Negotiation: ..size = 5120MB
Error: Invalid nbd device target
Exiting.
[root@sarkovy ~]# nbd-client /dev/nbd0
Negotiation: ..size = 5120MB
Error: Invalid nbd device target
Exiting.
I then tried without /etc/nbdtab, and this finally worked:
[root@sarkovy ~]# nbd-client stratoserver.internal -name secdata /dev/nbd0
Negotiation: ..size = 5120MB
Connected /dev/nbd0
So it seems that the /etc/nbdtab stuff either does not work as described
by the man page, or not at all.
Reply to: