Source: nbd-server Severity: normal Dear Maintainer,
I am trying to make swap space available to diskless clients using nbd on a squeeze network. However, using the third option as described in the debconf template fails: You can export a real block device (for instance "/dev/hda1"); a normal file (such as "/export/nbd/bl1"); or a bunch of files all at once. For the third option, you can use "%s" in the filename, which will be expanded to the IP-address of the connecting client. An example would be "/export/swaps/swp%s". I tried "/opt/swp%s" with and without '"', and prepared the file /opt/swp10.0.0.201 like: dd if=/dev/zero of=swp10.0.0.201 bs=1024k count=0 seek=64 mkswap swp10.0.0.201 but the clients complain about not enough swap area to use on /dev/nbd0. As soon as I prepare a file /opt/swp%s in the same way, swap space is available on the client and anything works fine. If I use the swap damon /usr/sbin/nbdswapd from the ltsp-server package which creates swapfiles on the fly using inetd, it works too. So it looks as if %s is not replaced by the IP-address of the client. Or is there anything I missunderstood in using %s? Best regards, Andi -- System Information: Debian Release: wheezy/sid APT prefers stable-updates APT policy: (500, 'stable-updates'), (500, 'testing'), (500, 'stable') Architecture: amd64 (x86_64) Kernel: Linux 3.1.0-1-amd64 (SMP w/2 CPU cores) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org