Re: ltsp_nbd: work around some udev/upstart issues?

Michael Shigorin <[email protected]> Wed, 15 Sep 2010 14:46:57 +0300
Newsgroups gmane.linux.terminal-server.devel
Message-ID <[email protected]>
On Wed, Sep 15, 2010 at 11:34:05AM +0300, Alkis Georgopoulos wrote:
> I've had reports of fast clients not booting, possibly because of udev
> or upstart problems, and with the following patch they were solved.

OTOH just in case, in case of fast clients which are device-rich,
modest tmpfs size/inodes might become insufficient (it was a real
bugreport with one-line patch which fixed the trouble for them).

https://bugzilla.altlinux.org/show_bug.cgi?id=23608
https://attachments.bugzilla.altlinux.org/attachment.cgi?id=4425

> It just makes nbd-client retry connecting up to 10 times, if it fails.
> On the problematic clients, it succeeds on the 2-4 try.

If the problem is with udev not yet done with devices by the time
nbd tries to use them, maybe calling err... "udevadm settle"
before nbd-client might help.  Just guessing though.

> -    if nbd-client $NBD_CLIENT_ROOT_SERVER $NBD_ROOT_PORT /dev/nbd0 ; then
> +    # Try up to 10 times with 2 sec interval because of udev/upstart bugs

-- 
 ---- WBR, Michael Shigorin <mike-u2l5PoMzF/[email protected]>
  ------ Linux.Kiev http://www.linux.kiev.ua/

------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
_____________________________________________________________________
Ltsp-developer mailing list.   To un-subscribe, or change prefs, goto:
      https://lists.sourceforge.net/lists/listinfo/ltsp-developer
For additional LTSP help,   try #ltsp channel on irc.freenode.net