Red Hat Bugzilla – Bug 445072
NBD swap on ltsp client not working
Last modified: 2008-08-04 15:17:28 EDT
Description of problem:
/etc/xinetd.d/nbdswapd on server specify port 9572, but on client side
usr/share/ltsp/ltsp-init-common specify default port 9210. Thus, without
is port 9572 explicitly defined in lts.conf, NBD swap isn't working.
I must add some small delay (sleep 0.5) to /usr/share/ltsp/ltsp-init-common
routine configure_swap after "modprobe nbd", else next command nbd-client
for some reason fail:
nbd-client $SWAP_SERVER $NBD_PORT /dev/nbd0 && ....
Tested on 800MHz PIII/256MB thin client, on slower HW it maybe run OK...
Version-Release number of selected component (if applicable):
Steps to Reproduce:
Thanks for the report. We will look into this.
You might be interested to follow our development mailing list and weekly
Here's an interesting problem:
[root@newcaprica cups]# telnet 172.31.100.254 9572
Connected to 172.31.100.254.
Escape character is '^]'.
/usr/sbin/nbdswapd: line 23: /dev/stderr: No such device or address
Connection closed by foreign host.
Do you see this as well?
oh, sorry, it I resolved by changes (/usr/sbin/nbdswap):
if [ -n "$SWAPDIR" ]; then
if [ -d "$SWAPDIR" ] && [ -w "$SWAPDIR" ]; then
and path to nbd-server is on Fedora diferent:
# start the swap server
-/bin/nbd-server 0 $SWAP $NBD_SERVER_OPTS -C /dev/null > /dev/null 2>&1
+/usr/bin/nbd-server 0 $SWAP $NBD_SERVER_OPTS -C /dev/null > /dev/null 2>&1
# clean up the swap file
And if I remember, directory "/var/lib/ltsp/swapfiles" (defined by SWAPDIR
in /etc/ltsp/nbdswapd.conf) was owned by root:root, mode 755 (I'm not sure).
But xinet daemod start /usr/sbin/nbdswapd as user "nobody", thus
chown nobody:root /var/lib/ltsp/swapfiles
chmod 770 /var/lib/ltsp/swapfiles
Changing version to '9' as part of upcoming Fedora 9 GA.
More information and reason for this action is here:
Please look over the changes I made upstream with are slightly different from
your changes. This works for me. Will be in the next version pushed to updates.
This was fixed in Fedora 9 updates a while ago. You get 64MB NBD swap by default now. Edit /etc/ltsp/nbdswapd.conf to change the amount.