Hi all,

I have been trying to set up LDM load balancing between two servers 
running ubuntu 9.04 for a couple of days and have failed.  I was 
following the instructions in the ltsp Manual, #ltsp and information I 
found around but did not get there really.

I found out that the get_hosts script needs to be located at 
/opt/ltsp/i386/usr/lib/share/get_hosts so fixed that, The following is 
my lts.conf and my get_hosts script.  For my testing purposes I have 
been loading the results so that the 10.0.0.46 server is returned by the 
script.  The test client I am booting is only listed in the 10.0.0.32 
servers dhcp. So I basically want to be able to send a client to the 
least conjested server and only have that information in one servers 
dhcpd.conf file.

/var/lib/tftpboot/ltsp/i386/lts.conf

 [Default]
LDM_DIRECTX=True
LDM_SESSION=/usr/bin/startkde
SOUND = Y
NBD_SWAP=True
DNS_SERVER="10.0.0.38 10.0.0.39"
SEARCH_DOMAIN="ajrs.com"
MY_SERVER_LIST="10.0.0.32 10.0.0.46

/opt/ltsp/i386/usr/lib/ltsp/get_hosts

#!/bin/bash
# Takes a list of servers from the /var/lib/tftpboot/ltsp/i386/lts.conf 
and sorts that
# list based on the output of the nc rating of that server.
TMP_LIST=""

for i in $MY_SERVER_LIST; do
    let "rank = `nc $i 9571 | grep rating | cut -d: -f2`"
    TMP_LIST="$TMP_LIST\n${rank}_$i"
done
echo -e $TMP_LIST | sort -r | cut -d_ -f2

After making these changes I made sure the script was executable(set 
755) and called a ltsp-update-image -a i386 on my servers, of course 
after making edits in chroot.

This left me at the point where I think the script is running and 
returning the proper information.  I am able to get to an ldm and enter 
a username and password. The screen goes blank immediatly and then goes 
back to the ldm. I got this far by doing some ssh-key work on Gadi from 
#ltsp's advice.

I did a sudo chroot /opt/ltsp/i386

then I would ssh to the host I wanted to be able to connect to accept 
the keys and then logout chroot and sudo ltsp-update-sshkeys and 
ltsp-update-image -a i386

When I am doing this I watch the syslog on the server I want to connect 
to 10.0.0.46 and can see two connection attempts from the client and 
that is all.

Feb  2 14:41:28 ltsp2 ldminfod[16901]: connect from 10.0.2.4 (10.0.2.4)
Feb  2 14:41:28 ltsp2 ldminfod[16904]: connect from 10.0.2.4 (10.0.2.4)


Does anyone have any idea what I am doing wrong here. I personally am 
not sure if I did the ssh keys properly but I know no other way.

Thank you.

Grant


------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
_____________________________________________________________________
Ltsp-discuss mailing list.   To un-subscribe, or change prefs, goto:
      https://lists.sourceforge.net/lists/listinfo/ltsp-discuss
For additional LTSP help,   try #ltsp channel on irc.freenode.net

Reply via email to