Setting up your K12LTSP or LTSP loadbalancing



Similar documents
DKTCOMEGA AONode Management Module User Documentation

50.XXX is based on your station number

Installing RHEL 6.x from beginning to end using PXE and Kickstart

SUSE Linux Enterprise Server 11 SP2 for UEFI Clients

Cork Institute of Technology Master of Science in Computing in Education National Framework of Qualifications Level 9

OPEN SOURCE SOFTWARE LAB TECHNICAL ANALYSIS: DHCP

Deskpool Quick Start. Version: V2.1.x. Based on Hyper-V Server 2012 R2. Shenzhen Jieyun Technology Co., Ltd (

pp=pod number, xxx=static IP address assigned to your pod

Setting up a Raspberry Pi as a WiFi access point

Configuring DHCP Tags for HP Device Manager

Savvius Insight Initial Configuration

Table 1-1. PXE Server Side Requirements

TCP/IP Configuration and DHCP Configuration For Red Hat Linux 9 (RHL9) Presentation Report

Linux Networking Basics

VERITAS NetBackup Bare Metal Restore 6.0

Altor Virtual Network Security Analyzer v1.0 Installation Guide

DHCP & Firewall & NAT

WiNG 5.X Reference. DHCP Options. Part No. TME REV A

How to Configure an Initial Installation of the VMware ESXi Hypervisor

NOC PS manual. Copyright Maxnet All rights reserved. Page 1/45 NOC-PS Manuel EN version 1.3

THE HONG KONG POLYTECHNIC UNIVERSITY Department of Electronic and Information Engineering

Setting up a Linux PXE server and integrating clients

Home Linux Networking Lab (202) This Howto shows how to recreate the CIS Lab environment at home.

Embedded Asterisk. A Crazy Man s Approach to VoIP. Terry Dunlap. 5/12/2007 terrydunlap.com

Linux Terminal Server Project

DHCP Server. Heng Sovannarith

FOG Guide. IPBRICK International. July 17, 2013

Deploying Windows Streaming Media Servers NLB Cluster and metasan

Chapter 6 Using Network Monitoring Tools

Note: This case study utilizes Packet Tracer. Please see the Chapter 5 Packet Tracer file located in Supplemental Materials.

Comtrend 1 Port Router Installation Guide CT-5072T

Setup-Instructions for ircddbgateway with Icom hardware for DD-Mode

Aspen Cloud Server Management Console

Home Networking In Linux

It should be noted that the installer will delete any existing partitions on your disk in order to install the software required to use BLËSK.

Building a diskless Linux Cluster for high performance computations from a standard Linux distribution

Comtrend 4 Port Router Installation Guide CT-5361T

ON HOLD ANNOUNCER. Once you receive your audio announcer, check the packaging to ensure that all of the following items are enclosed:

WLAN Outdoor CPE For 2.4G. Quick Installation Guide

Draytek Vigor 2820/2830 Configuration. A guide for Exa Resellers and IT Contractors

ACP ThinManager Tech Notes ThinManager and PXE Boot

Ithaca itherm, POSjet & BANKjet Printers Ethernet Adapters Setup Guide

Using a simple crossover RJ45 cable, you can directly connect your Dexter to any computer.

How To Use 1Bay 1Bay From Awn.Net On A Pc Or Mac Or Ipad (For Pc Or Ipa) With A Network Box (For Mac) With An Ipad Or Ipod (For Ipad) With The

System Compatibility. Enhancements. Security. SonicWALL Security Appliance Release Notes

Open Network Install Environment (ONIE) LinuxCon North America 2015

Chapter 2 Preparing Your Network

NETFORT LANGUARDIAN INSTALLING LANGUARDIAN ON MICROSOFT HYPER V

Network Documentation Checklist

Mobility System Software Quick Start Guide

Quick Installation Guide

VMware Auto Deploy Administrator s Guide

Apple Mac. AT&T DSL Internet Service Implementation Planner Apple Mac PC Configuration Guide Version 1.2 Page 1

Digium Switchvox AA65 PBX Configuration

Quick Installation Guide

Argon Client Management Services- Frequently Asked Questions (FAQ)

Setting up the Swann HD IP cameras

Ethernet Interface Manual Thermal / Label Printer. Rev Metapace T-1. Metapace T-2 Metapace L-1 Metapace L-2

Application Protocols for TCP/IP Administration

Chapter 6 Using Network Monitoring Tools

SSL VPN. Virtual Appliance Installation Guide. Virtual Private Networks

SevOne NMS Download Installation and Implementation Guide

Configuring SSL VPN on the Cisco ISA500 Security Appliance

Honeywell Internet Connection Module

Multi-Homing Security Gateway

Chapter 1 Configuring Basic Connectivity

Symantec NetBackup Bare Metal Restore Administrator's Guide

Chapter 9 Monitoring System Performance

Configuring Routers and Their Settings

Quick DDNS Quick Start Guide

StarMOBILE Network Configuration Guide. A guide to configuring your StarMOBILE system for networking

Actiontec GT784WN Router

ADConnect SSO over Network Load Balance Cluster

Quick Installation Guide DAP Wireless N 300 Access Point & Router

From a Finder window choose Applications (shown circled in red) and then double click the Tether icon (shown circled in green).

Dynamic Host Configuration Protocol (DHCP) 02 NAT and DHCP Tópicos Avançados de Redes

Quick Installation Guide For Mac users

ACP ThinManager Tech Notes Troubleshooting Guide

It is recommended that you use a clean installation of Lion client before upgrading to Lion Server.

Intel Entry Storage System SS4000-E

AP6511 First Time Configuration Procedure

Broadband Phone Gateway BPG510 Technical Users Guide

DHCP and DNS Protocols

How to setup camera with NAS

Configuring a customer owned router to function as a switch with Ultra TV

ASUS WL-5XX Series Wireless Router Internet Configuration. User s Guide

Networking Guide Redwood Manager 3.0 August 2013

APPLICATION NOTE. CC5MPX Digital Camera and IPn3Gb Cellular Modem 10/14. App. Note Code: 3T-Z

AT-S60 Version Management Software for the AT-8400 Series Switch. Software Release Notes

ALOHA Load Balancer Quickstart guide

GSatTrack. Fleet Broadband Tracker. User Manual April 2011 GSE. Global Satellite Engineering. : gsat.us

Quick DDNS Quick Start Guide

Offline Scanner Appliance

NF3ADV VoIP Setup Guide (for TPG)

Release Notes. NCP Secure Entry Mac Client. Major Release 2.01 Build 47 May New Features and Enhancements. Tip of the Day

Configuring a BEC 7800TN Wireless ADSL Modem

Load Balancing ContentKeeper With RadWare

Transcription:

Setting up your K12LTSP or LTSP loadbalancing and dhcp failover. What you'll need: Two servers running K12LTSP or LTSP in single NIC mode A good solid high speed connection (gigabit recommended) An external home directory location is preferred, but not necessary...(example: Samba/LDAP running on a 3 rd server) First, set up your network in such a way that the two LTSP servers can be used as the dhcp servers for your network. Both servers should be set up as close to identical as possible...including DHCP. (In fact the dhcpd.conf files will be almost identical except for one section which will identify each as either the primary or secondary...and some IP addresses). Edit your /etc/dhcpd.conf file to look something like this...begin with the server you wish to be the primary server. (Note: the highlighted part is essentially what I've added...also note that the whole vendor class section is missing...this will be declared in an included file calle dhcpd.master) REMEMBER...this is the configuration for the primary server. Sample configuration file for ISCD dhcpd Don't forget to set run_dhcpd=1 in /etc/init.d/dhcpd once you adjusted this file and copied it to /etc/dhcpd.conf. default-lease-time 21600; max-lease-time 21600; ddns-update-style none; one-lease-per-client true; authoritative; allow booting; allow bootp; option subnet-mask 255.255.240.0; option broadcast-address 10.0.0.255; option routers 10.0.14.253; option domain-name-servers 10.0.14.253; option domain-name "vcs.u52.k12.me.us"; option root-path "10.0.14.253:/opt/ltsp/i386"; option option-128 code 128 = string; option option-129 code 129 = text; option option-221 code 221 = text; DHCP Failover and load balance statements

failover peer "ltsp" primary; address 10.0.14.253; port 519; peer address 10.0.15.253; peer port 520; mclt 3600; max-response-delay 30; max-unacked-updates 10; load balance max seconds 3; split 128; hba ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff: 00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00; include "/etc/dhcpd.master"; example configurations for specifying specific kernels to specific clients group use-host-decl-names on; option log-servers 10.0.14.253; Apple Specific Settings host ws007 hardware ethernet 00:30:65:69:23:60; fixed-address 10.0.0.4; option root-path "10.0.14.253:/opt/ltsp/ppc"; filename "yaboot"; option vendor-class-identifier "AAPLBSDPC"; Static Workstations host bs001.vcs.u52.k12.me.us hardware ethernet 00:03:93:21:55:99; fixed-address 10.0.0.201; host bs002.vcs.u52.k12.me.us hardware ethernet 00:03:93:21:41:9d; fixed-address 10.0.0.202; host bs003.vcs.u52.k12.me.us hardware ethernet 00:03:93:20:f0:43; fixed-address 10.0.0.203;

host bs004.vcs.u52.k12.me.us hardware ethernet 00:03:93:21:96:f9; fixed-address 10.0.0.204; -snip- Ok...now let's move over to the secondary server and edit the dhcpd.conf file on that machine. Following the guidelines above...make it look something like this... Sample configuration file for ISCD dhcpd Don't forget to set run_dhcpd=1 in /etc/init.d/dhcpd once you adjusted this file and copied it to /etc/dhcpd.conf. default-lease-time 21600; max-lease-time 21600; ddns-update-style none; allow booting; allow bootp; option subnet-mask 255.255.240.0; option broadcast-address 10.0.0.255; option routers 10.0.15.253; option domain-name-servers 10.0.15.253; option domain-name "vcs.u52.k12.me.us"; option root-path "10.0.15.253:/opt/ltsp/i386"; option option-128 code 128 = string; option option-129 code 129 = text; option option-221 code 221 = text; DHCP failover and load balancing stuff failover peer "ltsp" secondary; address 10.0.15.253; port 520; peer address 10.0.14.253; peer port 519; max-response-delay 30; max-unacked-updates 10; load balance max seconds 3; include "/etc/dhcpd.master";

example configurations for specifying specific kernels to specific clients group use-host-decl-names on; option log-servers 10.0.15.253; Apple Specific Settings host ws007 hardware ethernet 00:30:65:69:23:60; fixed-address 10.0.0.4; option root-path "10.0.15.253:/opt/ltsp/ppc"; filename "yaboot"; option vendor-class-identifier "AAPLBSDPC"; Static Workstations host bs001.vcs.u52.k12.me.us hardware ethernet 00:03:93:21:55:99; fixed-address 10.0.0.201; host bs002.vcs.u52.k12.me.us hardware ethernet 00:03:93:21:41:9d; fixed-address 10.0.0.202; Be sure to pay attention to the IP addresses in this file and make sure they are appropriate for that particular server. Note that in the configuration for the primary server we put in an option for split=128 which is commented out an just below it is a hash declaration. Hashes allow for more fine tuning as to how the actual load may be split up. My servers are nearly identical so I chose a 50/50 split (or 128), but you can fine tune this...there's a good description of how this works here... http://theseus.sourceforge.net/projects/ets/supplemental.htmlsupplemental_information Now we need to make the /etc/dhcpd.master file. In a text editor create a file called / etc/dhcpd.master and make it look similar to this..be sure to use you own IP addresses and make sure you put the correct IP addresses for the server you are working with...this file (with it's appropriate IP addresses) needs to be created on both servers. subnet 10.0.0.0 netmask 255.255.240.0 pool failover peer "ltsp";

range 10.0.0.100 10.0.15.252; deny dynamic bootp clients; option routers 10.0.15.253; use-host-decl-names on; option log-servers 10.0.15.253; trick from Peter Rundle <peter.rundle@au.interpath.net> newer Macs if substring (option vendor-class-identifier, 0, 9) = "AAPLBSDPC" filename "yaboot"; option vendor-class-identifier "AAPLBSDPC"; really old imacs elsif substring (option option-221, 0, 5) = "Apple" filename "yaboot"; option vendor-class-identifier "AAPLBSDPC"; Intel PXE elsif substring (option vendor-class-identifier, 0, 9) = "PXEClient" NOTE: kernels are specified in /tftpboot/lts/pxe/pxelinux.cfg/ filename "/lts/pxe/pxelinux.0"; default to an i386 BOOTP image else filename "/lts/vmlinuz.ltsp"; if substring (option vendor-class-identifier, 20, 3) = "ppc" option root-path "10.0.15.253:/opt/ltsp/ppc"; elsif substring (option option-221, 0, 5) = "Apple" filename "yaboot"; option vendor-class-identifier "AAPLBSDPC"; Intel PXE elsif substring (option vendor-class-identifier, 0, 9) = "PXEClient" NOTE: kernels are specified in /tftpboot/lts/pxe/pxelinux.cfg/ filename "/lts/pxe/pxelinux.0"; default to an i386 BOOTP image else

filename "/lts/vmlinuz.ltsp"; if substring (option vendor-class-identifier, 20, 3) = "ppc" option root-path "10.0.15.253:/opt/ltsp/ppc"; else option root-path "10.0.15.253:/opt/ltsp/i386"; Believe it or not...that's it! Start DHCP on both servers and set it to start when the server starts. If you are not using something like Samba/LDAP you will need to set up something like rsync to synchronize your usernames, passwords, groups, and home directories between servers. If you are using Samba/LDAP simply point the two LTSP servers to authenticate to Samba/LDAP using something like authconfig. You can find a how-to for setting up Samba/LDAP here... http://www.vcsvikings.org/linux/smbldap and you can download the latest smbldap-installer from here... http://www.majen.net/smbldap/ (if using FC4 or K12LTSP 4.4...use the 2.0 version) Testing it out! What I did was changed the background on my gdm login screen so that I could easily tell which server the LTSP terminal booted from. You may want to reboot both servers after setting them up and then once they are ready...start turning on terminals. You should get a pretty even split of terminals booting up alternately to the two servers. This is the load-balancing in action, and the other bonus is failover...should one server fail...the other will take over (the client may need to be rebooted to connect to the other server, but the DHCP operation will switch over seamlessly).