[K12OSN] Server load balancing, made easy

Lewis Holcroft lewis at pcc.com
Tue Mar 8 14:02:29 UTC 2005


Jonathan,

Responding to your rsync portion.

I have a very gross setup with 5 LTSP servers spread around a 25 mile  
area. We needed to provide a way of having users be able to log in at  
any location and have access to their files, but access to the main  
server where files would be located/backed up was via ISDN connections.  
This meant that NFS was not really an option. So I updated  
/etc/X11/gdm/PostSession/Default (get run at logout) to rsync files  
back to a central server. And I also updated  
/etc/X11/gdm/PostLogin/Default (run after a user is authenticated) to  
rsync files to the LTSP box they are loging on to.

To make this all work there are several things that need to be in  
place. ssh needs to be set up so that both machines trust each other.  
You need the correct syntax in your PostLogin and PostSession Default  
files.

In my case I also have my LSTP boxes authenticate against the main  
server using NIS. This way I only have to keep users and passwords up  
to date on a single server.

I'm more than happy to share the files if you need them. Although I'm  
sure I left out something. I spent several months getting this to work.  
I made dozens of tweaks along the way.

Lewis
---------
The instructions said to use Windows 98 or better.... So I installed  
Linux.

On Mar 8, 2005, at 1:01 AM, Jonathan Carter wrote:

> Hi!
>
> I want to set up a lab with two servers and load balancing, and I've  
> found the post below. Is this a good way of doing it? Do anyone  
> perhaps know of some links that points to other methods of doing the  
> below?
>
> I must admit, I'm not familiar with rsync. How do I rsync between two  
> servers' home directories if one server is 192.168.0.254 and the other  
> one 192.168.0.253?
>
> thanks
> Jonathan
>
> Barry R Cisna wrote:
>>     Here is an easy/quick way to acheive load balancing between  
>> K12LTSP servers for your LAN..
>>      We have our school under a two subnet setup ( elem & high school)
>>     This setup works in conjunction with a windows network with no  
>> mods,,to your existing switches,wiring,etc.
>>     Our windows network is on a 172.28.x.x network on each subnet as  
>> well,
>>     I have the LTSP netowrk setup..to the default setup,,of  
>> 192.168.0.x on both subnets.
>>     I have two K12LTSP servers feeding into each subnet.( total four).
>>     Make sure you have disabled DHCP on your firewall..and windows  
>> servers...
>>     Then,, simply run parallel,,DHCP servers( enable DHCP,,on all of  
>> your K112LTSP servers,and then all you have to do is hardcode,, the  
>> IP settings,,on your teachers/staff windows boxes,,( we are trying to  
>> get (almost) completly away from win doze),,
>>     If you have DHCP enabled on your windows servers some clients  
>> will boot up ok,,and some will "kernel panic",,
>>     When your clients bootup under this scenario ..they will randomly  
>> "access" the least busyest server,and will usually end up about  
>> 50/50to each sevrer feeding them, in a  given room of  puters,,
>>     You will not need to even do any config in your hosts.conf...etc..
>>     then, just do a scheduled cron job ,hourly with rsync of your  
>> students home folders( unless your have a centralized server for home  
>> folder redirection),,
>>     this may be a overly simplistic approach,,but works great for our  
>> school scenario.
>>     I tryed to get the XDMCP chooser to work,on clients,,but was too  
>> time consuming.and this approach is "seamless".
>>     Just thought this may help some people trying to "build out" on  
>> their existing K12lTSP setup..
>>      hope this is of some help to someone,,
>>      Take care...
>> ---------------------------------------------------------------------- 
>> --
>> _______________________________________________
>> K12OSN mailing list
>> K12OSN at redhat.com
>> https://www.redhat.com/mailman/listinfo/k12osn
>> For more info see <http://www.k12os.org>
>
> _______________________________________________
> K12OSN mailing list
> K12OSN at redhat.com
> https://www.redhat.com/mailman/listinfo/k12osn
> For more info see <http://www.k12os.org>
>




More information about the K12OSN mailing list