<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://kb.linux-vs.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Vbg</id>
		<title>LVSKB - User contributions [en]</title>
		<link rel="self" type="application/atom+xml" href="https://kb.linux-vs.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Vbg"/>
		<link rel="alternate" type="text/html" href="https://kb.linux-vs.org/wiki/Special:Contributions/Vbg"/>
		<updated>2026-06-18T11:49:41Z</updated>
		<subtitle>User contributions</subtitle>
		<generator>MediaWiki 1.26.2</generator>

	<entry>
		<id>https://kb.linux-vs.org/wiki?title=Building_Linux_Terminal_Service_Cluster_using_LVS&amp;diff=4382</id>
		<title>Building Linux Terminal Service Cluster using LVS</title>
		<link rel="alternate" type="text/html" href="https://kb.linux-vs.org/wiki?title=Building_Linux_Terminal_Service_Cluster_using_LVS&amp;diff=4382"/>
				<updated>2007-08-13T05:14:54Z</updated>
		
		<summary type="html">&lt;p&gt;Vbg: /* Configuration Example */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Introduction ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Architecture ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Configuration Example ==&lt;br /&gt;
&lt;br /&gt;
The basic issue faced by me during LVS configuration using piranha was that Nanny could not monitor the service and would frequently give a READ TIME OUT.&lt;br /&gt;
&lt;br /&gt;
The configuration otherwise was a standard LVS-NAT configuration in rr mode. Once the connection with a Terminal Server was established, there would be direct communication with the selected Terminal Server.&lt;br /&gt;
&lt;br /&gt;
Environment -&amp;gt; &lt;br /&gt;
&lt;br /&gt;
LVS-Piranha Server(s) -&amp;gt; RHEL 5 (2.6.18-8.el5) running piranha (2 in number)&lt;br /&gt;
Real Servers -&amp;gt; RHEL 4 (2.6.9-42.ELSmp) acting as Terminal Servers (xdm-&amp;gt;gdm)&lt;br /&gt;
&lt;br /&gt;
To get around the Nanny read time out, issue -&amp;gt;&lt;br /&gt;
&lt;br /&gt;
On the Real servers -&amp;gt;&lt;br /&gt;
&lt;br /&gt;
a) Enable remote shell access by the LVS server(s)&lt;br /&gt;
                   For RHEL 4 -&amp;gt; install rsh-server rpm&lt;br /&gt;
                   edit /etc/securetty&lt;br /&gt;
                   enable rsh and rlogin&lt;br /&gt;
                   restart xinetd&lt;br /&gt;
                   create .rhosts file in the home folder of the user (in my case root) to allow remote access from                   LVS Server(s)&lt;br /&gt;
&lt;br /&gt;
b) Create a small script in /usr/local/bin (let's say xdmstatus) -&amp;gt;&lt;br /&gt;
                  #!/bin/bash&lt;br /&gt;
&lt;br /&gt;
                   RESULT=`netstat -an | grep 177 | grep udp | awk '{ print $1 }'`&lt;br /&gt;
                   echo $RESULT&lt;br /&gt;
&lt;br /&gt;
c) make this script executable (chmod a+x)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
On the LVS Server(s) -&amp;gt;&lt;br /&gt;
&lt;br /&gt;
modify /etc/sysconfig/ha/lvs.cf to contain (please see snippet) -&amp;gt;&lt;br /&gt;
              send_program = &amp;quot;/usr/bin/rsh %h /usr/local/bin/xdmstatus&amp;quot;&lt;br /&gt;
              expect = &amp;quot;udp&amp;quot;&lt;br /&gt;
&lt;br /&gt;
== Conclusion ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== External Links ==&lt;br /&gt;
&lt;br /&gt;
* http://www.ltsp.org/&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{lvs-example-stub}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:LVS Examples|Terminal]]&lt;/div&gt;</summary>
		<author><name>Vbg</name></author>	</entry>

	</feed>