SWAP causes connection loss

Bug #172459 reported by Brendan Grieve
Affects Status Importance Assigned to Milestone
ltsp (Ubuntu)
Fix Released
Oliver Grawert

Bug Description

My first bug report.
Gutsy 7.10 Host. Gutsy 7.10 LTSP Client Chroot.

When booting an LTSP client, using NBD and squashfs (Default in LTSP 5+), I kept getting an error where the squashfs volume would just disappear.

Traced it down to the script:

When enabling SWAP over nbd, all hell breaks loose. For example, I have the following in the clients /boot/lts.conf (which is copied to the correct place when the host executes ltsp-update-kernels)

The reason is that the SWAP nbd is using /dev/nbd0. So is the currently mounted /rofs which is a component of the / unionfs.

The fix is to change the file to use /dev/nbd1.

 - Brendan

Related branches

Revision history for this message
Oliver Grawert (ogra) wrote :

you can drop the NBD_PORT and NBD_SERVER directives both are set automatically ...
actually the device in /opt/ltsp/i386/etc/init.d/ltsp-client-setup is hardcoded to nbd0 ...
you can work around it by changing teh device name on line 65 and 66 (and run ltsp-update-image afterwards)

i'll work on a proper autodetection mechanism that automatically takes the last free device for hardy (8.04)

Changed in ltsp:
assignee: nobody → ogra
milestone: none → ubuntu-8.04
status: New → Confirmed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package ltsp - 5.0.40~bzr20080212-0ubuntu1

ltsp (5.0.40~bzr20080212-0ubuntu1) hardy; urgency=low

  * new upstream version with fixes for the following bugs:
   LP: #149006 (default to 24bit colordepth)
   LP: #190419 (move .nbi image out of the way before regeneration)
   LP: #113709 (security server sources.list entry handling)
   LP: #135419 (chroot upgrade issues)
   LP: #177926 (documentation fix)
   LP: #184316 (client locale handling (default to en_GB if none is set)
   LP: #189237 (fix path handling, remove trailing slashes from arguments)
   LP: #132397 (handle proxies with apt)
   LP: #148109 (only use getltscfg if lts.conf is valid)
   LP: #172459 (only use free nbd devices to do network swapping)
  * install our own dhcpd.conf
  * add rdesktop to ltsp-client deps (LP: #153589)
  * fix xorg deps of ltsp-client (LP: #158735)
  * add plugin for mythbuntu kiosk setup (LP: #188413), thanks to Michael Haas

 -- Oliver Grawert <email address hidden> Mon, 12 Feb 2008 17:48:48 +0100

Changed in ltsp:
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers