Hi Wouter,
this configuration works and might be used as a workaround:
===============
# Name of the first used nbd /dev-entry:
NBD_DEVICE[0]="/dev/nbd0"
#
# Type; s=swap, f=filesystem (with entry in /etc/fstab), r=raw (no
other setup
# than to run the client)
NBD_TYPE[0]="s"
#
# The host on which the nbd-server process is running
NBD_HOST[0]="swapserver"
#
# The port on which this client needs to connect
NBD_PORT[0]="10809"
#
# Any extra parameters you would want to specify
NBD_EXTRA[0]="-N swap"
===============
However, it is not possible to get it from dpkg-reconfigure:
root@mainserver:/# dpkg-reconfigure nbd-client
sed: -e expression #6, char 30: unterminated `s' command
The space in "-N swap" kills sed.
And, btw, from the man page:
-N Specifies the name of the export that we want to use.
Required if the port is not specified, not allowed in the other
case. ^^^^^^^^^^^
Contradicts the working example.
Best regards,
Andi
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]