[ubuntu 14.04]
Given the following config file:
---- /etc/nbd-server/config ----
[generic]
# If you want to run everything as root rather than the nbd user, you
# may either say "root" in the two following lines, or remove them
# altogether. Do not remove the [generic] section, however.
user = nbd
group = nbd
oldstyle = true
# What follows are export definitions. You may create as much of them as
# you want, but the section header has to be unique.
[disk1]
exportname = /data/sda1
port = 9000
------------
When you restart nbd-server the following severe-sounding warning is reported:
------------
# service nbd-server restart
Restarting the Network Block Device server is pretty harsh on clients still using it.
waiting 5 seconds...You have been warned!
Restarting Network Block Device server: Stopping Network Block Device server: nbd-server.
** (process:19655): WARNING **: A port was specified, but oldstyle exports were not requested. This may not do what you expect.
** (process:19655): WARNING **: Please read 'man 5 nbd-server' and search for oldstyle for more info
nbd-server.