[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#778919: unblock: nbd/1:3.8-3



On Thu, Mar 05, 2015 at 09:35:04AM +0100, Cyril Brulebois wrote:
> Yeah, I know nbd has to be specifically required/set up for that to be
> used at all. I probably should learn how to test that myself,

FYI, it's really not all that hard:

# create a 10G sparse file:
dd if=/dev/zero of=/srv/nbd/file bs=1024 seek=10M count=0
# install nbd-server:
sudo apt-get install nbd-server
# debconf configuration should allow you to export the file you just
# created, but if that fails for some reason:
cat > /etc/nbd-server/conf.d/d-i-test.conf <<EOF
[d-i-test]
exportname = /srv/nbd/file
EOF
sudo /etc/init.d/nbd-server restart
# Make sure nbd-server can actually modify the file:
chown nbd:nbd /srv/nbd/file

The name of the export is the bit between [] (i.e., in this case,
"d-i-test").

That's all there is to it.

> but I have some other bugs to keep an eye on anyway, so probably
> better if you can spare some time on your own, at least for this
> particular occurrence.

Sure. At any rate, I tend to test it every once in a while, anyway, just
so I can make sure things continue working ;-)

-- 
It is easy to love a country that is famous for chocolate and beer

  -- Barack Obama, speaking in Brussels, Belgium, 2014-03-26


Reply to: