HA.html   [plain text]


<html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>Chapter 12. Performance, Reliability, and Availability</title><link rel="stylesheet" href="samba.css" type="text/css"><meta name="generator" content="DocBook XSL Stylesheets V1.64.1"><link rel="home" href="index.html" title="Samba-3 by Example"><link rel="up" href="index.html" title="Samba-3 by Example"><link rel="previous" href="DomApps.html" title="Chapter 11. Integrating Additional Services"><link rel="next" href="appendix.html" title="Appendix A. Appendix: A Collection of Useful Tid-bits"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">Chapter 12. Performance, Reliability, and Availability</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="DomApps.html">Prev</a> </td><th width="60%" align="center"> </th><td width="20%" align="right"> <a accesskey="n" href="appendix.html">Next</a></td></tr></table><hr></div><div class="chapter" lang="en"><div class="titlepage"><div><div><h2 class="title"><a name="HA"></a>Chapter 12. Performance, Reliability, and Availability</h2></div></div><div></div></div><div class="toc"><p><b>Table of Contents</b></p><dl><dt><span class="sect1"><a href="HA.html#id2567853">Introduction</a></span></dt><dt><span class="sect1"><a href="HA.html#id2567949">Dissection and Discussion</a></span></dt><dt><span class="sect1"><a href="HA.html#id2568423">Guidelines for Reliable Samba Operation</a></span></dt><dd><dl><dt><span class="sect2"><a href="HA.html#id2568453">Name Resolution</a></span></dt><dt><span class="sect2"><a href="HA.html#id2568958">Samba Configuration</a></span></dt><dt><span class="sect2"><a href="HA.html#id2569314">Use and Location of BDCs</a></span></dt><dt><span class="sect2"><a href="HA.html#id2569397">Use One Consistent Version of MS Windows Client</a></span></dt><dt><span class="sect2"><a href="HA.html#id2569419">For Scalability, Use SAN Based Storage on Samba Servers</a></span></dt><dt><span class="sect2"><a href="HA.html#id2569472">Distribute Network Load with MSDFS</a></span></dt><dt><span class="sect2"><a href="HA.html#id2569532">Replicate Data to Conserve Peak-Demand Wide-Area Bandwidth</a></span></dt><dt><span class="sect2"><a href="HA.html#id2569581">Hardware Problems</a></span></dt><dt><span class="sect2"><a href="HA.html#id2569747">Key Points Learned</a></span></dt></dl></dd></dl></div><p><a class="indexterm" name="id2567811"></a><a class="indexterm" name="id2567819"></a><a class="indexterm" name="id2567827"></a>
	Well, you have reached the chapter before the Appendix. It is customary to attempt
	to wrap up the theme and contents of a book in what is generally regarded as the
	chapter that should draw conclusions. This book is a suspense thriller and since
	the plot of the stories told mostly lead you to bigger, better Samba-3 networking
	solutions, it is perhaps appropriate to close this book with a few pertinent comments
	regarding some of the things everyone can do to deliver a reliable Samba-3 network.
	</p><div class="blockquote"><table border="0" width="100%" cellspacing="0" cellpadding="0" class="blockquote" summary="Block quote"><tr><td width="10%" valign="top"> </td><td width="80%" valign="top"><p>
	In a world so full of noise, how can the sparrow be heard?
	</p></td><td width="10%" valign="top"> </td></tr><tr><td colspan="2" align="right" valign="top">--<span class="attribution">Anonymous</span></td><td width="10%" valign="top"> </td></tr></table></div><div class="sect1" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="id2567853"></a>Introduction</h2></div></div><div></div></div><p><a class="indexterm" name="id2567860"></a>
	The sparrow is a small bird whose sounds are drowned out by the noise of the busy
	world it lives in. Likewise, the simple steps that can be taken to improve the
	reliability and availability of a Samba network are often drowned out by the volume
	of discussions about grandiose Samba clustering designs. This is not intended to
	suggest that clustering is not important, because clearly it is. This chapter does not devote
	itself to discussion of clustering because each clustering methodology uses its own
	custom tools and methods. Only passing comments are offered concerning these methods.
	</p><p><a class="indexterm" name="id2567881"></a><a class="indexterm" name="id2567889"></a><a class="indexterm" name="id2567897"></a>
<a href="http://www.google.com/search?hl=en&amp;lr=&amp;ie=ISO-8859-1&amp;q=samba+cluster&amp;btnG=Google+Search" target="_top">A search</a> 
	for &#8220;<span class="quote"><span class="emphasis"><em>samba cluster</em></span></span>&#8221; produced 71,600 hits. And a search for &#8220;<span class="quote"><span class="emphasis"><em>highly available samba</em></span></span>&#8221;
	and &#8220;<span class="quote"><span class="emphasis"><em>highly available windows</em></span></span>&#8221; produced an amazing number of references.
	It is clear from the resources on the Internet that Windows file and print services 
	availability, reliability, and scalability are of vital interest to corporate network users.
	</p><p><a class="indexterm" name="id2567935"></a>
	So without further background, you can review a checklist of simple steps that
	can be taken to ensure acceptable network performance while keeping costs of ownership
	well under control.
	</p></div><div class="sect1" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="id2567949"></a>Dissection and Discussion</h2></div></div><div></div></div><p><a class="indexterm" name="id2567956"></a><a class="indexterm" name="id2567964"></a>
	If it is your purpose to get the best mileage out of your Samba servers, there is one rule that
	must be obeyed. If you want the best, keep your implementation as simple as possible. You may
	well be forced to introduce some complexities, but you should do so only as a last resort.
	</p><p>
	Simple solutions are likely to be easier to get right than are complex ones. They certainly
	make life easier for your successor. Simple implementations can be more readily audited than can
	complex ones. 
	</p><p><a class="indexterm" name="id2567987"></a><a class="indexterm" name="id2567995"></a>
	Problems reported by users fall into three categories: configurations that do not work, those 
	that have broken behavior, and poor performance. The term <span class="emphasis"><em>broken behavior</em></span>
	means that the function of a partciluar Samba component appears to work sometimes, but not at
	others. The resulting intermittent operation is clearly unacceptable. An example of 
	<span class="emphasis"><em>broken behavior</em></span> known to many Windows networking users occurs when the
	list of Windows machines in MS Explorer changes, sometimes listing machines that are running
	and at other times not listing them even though the machines are in use on the network.
	</p><p><a class="indexterm" name="id2568024"></a><a class="indexterm" name="id2568031"></a><a class="indexterm" name="id2568039"></a><a class="indexterm" name="id2568047"></a><a class="indexterm" name="id2568055"></a><a class="indexterm" name="id2568063"></a>
	A significant number of reports concern problems with the <span><b class="command">smbfs</b></span> file system
	driver that is part of the Linux kernel, not part of Samba. Users continue to interpret that
	<span><b class="command">smbfs</b></span> is part of Samba, simply because Samba includes the front-end tools
	that are used to manage <span><b class="command">smbfs</b></span>-based file service connections. So, just
	for the record, the tools <span><b class="command">smbmnt, smbmount, smbumount,</b></span> and <span><b class="command">smbumnt</b></span> are front-end
	facilities to core drivers that are supplied as part of the Linux kernel. These tools share a
	common infrastructure with some Samba components, but they are not maintained as part of
	Samba and are really foreign to it.
	</p><p><a class="indexterm" name="id2568114"></a>
	The new project, <span><b class="command">cifsfs</b></span>, is destined to replace <span><b class="command">smbfs</b></span>.
	It, too, is not part of Samba, even though one of the Samba Team members is a prime mover in
	this project.
	</p><p>
	The following table lists typical causes of:
	</p><div class="itemizedlist"><ul type="disc"><li><p>Not Working (NW)</p></li><li><p>Broken Behavior (BB)</p></li><li><p>Poor Performance (PP)</p></li></ul></div><div class="table"><a name="ProbList"></a><p class="title"><b>Table 12.1. Effect of Common Problems</b></p><table summary="Effect of Common Problems" border="1"><colgroup><col align="left"><col align="center"><col align="center"><col align="center"></colgroup><thead><tr><th align="left"><p>Problem</p></th><th align="center"><p>NW</p></th><th align="center"><p>BB</p></th><th align="center"><p>PP</p></th></tr></thead><tbody><tr><td align="left"><p>File Locking</p></td><td align="center"><p>-</p></td><td align="center"><p>X</p></td><td align="center"><p>-</p></td></tr><tr><td align="left"><p>Hardware Problems</p></td><td align="center"><p>X</p></td><td align="center"><p>X</p></td><td align="center"><p>X</p></td></tr><tr><td align="left"><p>Incorrect Authentication</p></td><td align="center"><p>X</p></td><td align="center"><p>X</p></td><td align="center"><p>-</p></td></tr><tr><td align="left"><p>Incorrect Configuration</p></td><td align="center"><p>X</p></td><td align="center"><p>X</p></td><td align="center"><p>X</p></td></tr><tr><td align="left"><p>LDAP Problems</p></td><td align="center"><p>X</p></td><td align="center"><p>X</p></td><td align="center"><p>-</p></td></tr><tr><td align="left"><p>Name Resolution</p></td><td align="center"><p>X</p></td><td align="center"><p>X</p></td><td align="center"><p>X</p></td></tr><tr><td align="left"><p>Printing Problems</p></td><td align="center"><p>X</p></td><td align="center"><p>X</p></td><td align="center"><p>-</p></td></tr><tr><td align="left"><p>Slow File Transfer</p></td><td align="center"><p>-</p></td><td align="center"><p>-</p></td><td align="center"><p>X</p></td></tr><tr><td align="left"><p>Winbind Problems</p></td><td align="center"><p>X</p></td><td align="center"><p>X</p></td><td align="center"><p>-</p></td></tr></tbody></table></div><p><a class="indexterm" name="id2568408"></a>
	It is obvious to all that the first requirement (as a matter of network hygiene) is to eliminate
	problems that affect basic network operation. This book has provided sufficient working examples
	to help you to avoid all these problems.
	</p></div><div class="sect1" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="id2568423"></a>Guidelines for Reliable Samba Operation</h2></div></div><div></div></div><p><a class="indexterm" name="id2568430"></a><a class="indexterm" name="id2568438"></a>
	Your objective is to provide a network that works correctly, can grow at all times, is resilient
	at times of extreme demand, and can scale to meet future needs. The following subject areas provide
	pointers that can help you today.
	</p><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id2568453"></a>Name Resolution</h3></div></div><div></div></div><p>
	There are three basic current problem areas: bad hostnames, routed networks, and network collisions.
	These are covered in the discussion below.
	</p><div class="sect3" lang="en"><div class="titlepage"><div><div><h4 class="title"><a name="id2568464"></a>Bad Hostnames</h4></div></div><div></div></div><p><a class="indexterm" name="id2568471"></a><a class="indexterm" name="id2568482"></a><a class="indexterm" name="id2568490"></a><a class="indexterm" name="id2568498"></a><a class="indexterm" name="id2568506"></a>
		When configured as a DHCP client, a number of Linux distributions set the system hostname
		to <tt class="constant">localhost</tt>. If the parameter <i class="parameter"><tt>netbios name</tt></i> is not
		specified to something other than <tt class="constant">localhost</tt>, the Samba server appears
		in the Windows Explorer as <tt class="constant">LOCALHOST</tt>. Moreover, the entry in the <tt class="filename">/etc/hosts</tt>
		on the Linux server points to IP address <tt class="constant">127.0.0.1</tt>. This means that
		when the Windows client obtains the IP address of the Samba server called <tt class="constant">LOCALHOST</tt>,
		it obtains the IP address <tt class="constant">127.0.0.1</tt> and then proceeds to attempt to
		set up a NetBIOS over TCP/IP connection to it. This cannot work, because that IP address is
		the local Windows machine itself. Hostnames must be valid for Windows networking to function
		correctly.
		</p><p><a class="indexterm" name="id2568562"></a>
		A few sites have tried to name Windows clients and Samba servers with a name that begins
		with the digits 1-9. This does not work either because it may result in the client or
		server attempting to use that name as an IP address.
		</p><p><a class="indexterm" name="id2568577"></a><a class="indexterm" name="id2568588"></a>
		A Samba server called <tt class="constant">FRED</tt>, in a NetBIOS Domain called <tt class="constant">COLLISION</tt>
		in a network environment that is part of the fully qualified Internet domain name space known
		as <tt class="constant">parrots.com</tt>, results in DNS name lookups for: <tt class="constant">fred.parrots.com</tt>
		and <tt class="constant">collision.parrots.com</tt>. It is, therefore, a mistake to name the Domain
		(workgroup) <tt class="constant">collision.parrots.com</tt> since this results in DNS lookup
		attempts to resolve: <tt class="constant">fred.parrots.com.parrots.com</tt>, which most likely
		fails given that you probably do not have this in your DNS name space.
		</p><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p><a class="indexterm" name="id2568634"></a><a class="indexterm" name="id2568645"></a><a class="indexterm" name="id2568653"></a>
		An Active Directory realm called <tt class="constant">collision.parrots.com</tt> is perfectly okay,
		although it too must be capable of being resolved via DNS, something that functions correctly
		if Windows 200x ADS has been properly installed and configured.
		</p></div></div><div class="sect3" lang="en"><div class="titlepage"><div><div><h4 class="title"><a name="id2568671"></a>Routed Networks</h4></div></div><div></div></div><p><a class="indexterm" name="id2568678"></a><a class="indexterm" name="id2568686"></a><a class="indexterm" name="id2568697"></a>
		NetBIOS networks (Windows networking with NetBIOS over TCP/IP enabled) makes extensive use
		of UDP-based broadcast traffic. You saw that during the exercises in Chapter 1.
		</p><p><a class="indexterm" name="id2568711"></a><a class="indexterm" name="id2568719"></a><a class="indexterm" name="id2568727"></a>
		UDP broadcast traffic is not forwarded by routers. This means that NetBIOS broadcast-based
		networking cannot function across routed networks (i.e., multi-subnet networks) unless
		special provisions are made:
		</p><div class="itemizedlist"><ul type="disc"><li><p><a class="indexterm" name="id2568745"></a><a class="indexterm" name="id2568753"></a><a class="indexterm" name="id2568761"></a>
			Either install on every Windows client an LMHOSTS file (located in the directory
			<tt class="filename">C:\windows\system32\drivers\etc</tt>). It is also necessary to
			add to the Samba server <tt class="filename">smb.conf</tt> file the parameters: <i class="parameter"><tt>remote announce</tt></i>
			and <i class="parameter"><tt>remote browse sync</tt></i>. For more information, refer to the on-line
			manual page for the <tt class="filename">smb.conf</tt> file.
			</p></li><li><p><a class="indexterm" name="id2568808"></a>
			Or configure Samba as a WINS server, and configure all network clients to use that
			WINS server in their TCP/IP configuration.
			</p></li></ul></div><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p><a class="indexterm" name="id2568827"></a><a class="indexterm" name="id2568838"></a>
		The use of DNS is not an acceptable substitute for WINS. DNS does not store specific
		information regarding NetBIOS networking particulars that does get stored in the WINS
		name resolution database, and that Windows clients require and depend on.
		</p></div></div><div class="sect3" lang="en"><div class="titlepage"><div><div><h4 class="title"><a name="id2568854"></a>Network Collisions</h4></div></div><div></div></div><p><a class="indexterm" name="id2568860"></a><a class="indexterm" name="id2568872"></a><a class="indexterm" name="id2568883"></a><a class="indexterm" name="id2568891"></a>
		Excessive network activity causes NetBIOS network time-outs. Time-outs may result in
		blue screen of death (BSOD) experiences. High collision rates may be caused by excessive
		UDP broadcast activity, by defective networking hardware, or through excessive network
		loads (another way of saying that the network is poorly designed).
		</p><p>
		The use of WINS is highly recommended to reduce network broadcast traffic, as outlined
		in Chapter 1.
		</p><p><a class="indexterm" name="id2568916"></a><a class="indexterm" name="id2568924"></a><a class="indexterm" name="id2568932"></a>
		Under no circumstances should the facility be supported by many routers, known as <tt class="constant">NetBIOS
		forwarding</tt>, unless you know exactly what you are doing. Inappropriate use of this
		facility can result in UDP broadcast storms. In one case in 1999, a university network became
		unusable due to this being enabled on all routers. The problem was discovered during performance
		testing of a Samba server. The maximum throughput on a 100-Base-T (100 MBit/sec) network was
		less than 15 KBytes/sec. After the NetBIOS forwarding was turned off, file transfer performance
		immediately returned to 11 MBytes/sec.
		</p></div></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id2568958"></a>Samba Configuration</h3></div></div><div></div></div><p>
	As a general rule, the contents of the <tt class="filename">smb.conf</tt> file should be kept as simple as possible.
	No parameter should be specified unless you know it is essential to operation.
	</p><p><a class="indexterm" name="id2568977"></a><a class="indexterm" name="id2568985"></a><a class="indexterm" name="id2568993"></a>
	Many UNIX administrators like to fully document the settings in the <tt class="filename">smb.conf</tt> file. This is a
	bad idea because it adds content to the file. The <tt class="filename">smb.conf</tt> file is re-read by every <span><b class="command">smbd</b></span>
	process every time the file time stamp changes (or, on systems where this does not work, every 20 seconds or so).
	</p><p>
	As the size of the <tt class="filename">smb.conf</tt> file grows the risk of introduction of parsing errors increases also.
	It is recommended to keep a fully documented <tt class="filename">smb.conf</tt> file on hand, and then to operate Samba only
	with an optimized file.
	</p><p><a class="indexterm" name="id2569046"></a>
	The preferred way to maintain a documented file is to call it something like <tt class="filename">smb.conf.master</tt>.
	You can generate the optimized file by executing:
</p><pre class="screen">
<tt class="prompt">root# </tt> testparm -s smb.conf.master &gt; smb.conf
</pre><p>
	You should carefully observe all warnings issued. It is also a good practice to execute the following
	command to confirm correct interpretation of the <tt class="filename">smb.conf</tt> file contents:
</p><pre class="screen">
<tt class="prompt">root# </tt> testparm
Load smb config files from /etc/samba/smb.conf
Can't find include file /etc/samba/machine.
Processing section "[homes]"
Processing section "[print$]"
Processing section "[netlogon]"
Processing section "[Profiles]"
Processing section "[printers]"
Processing section "[media]"
Processing section "[data]"
Processing section "[cdr]"
Processing section "[apps]"
Loaded services file OK.
'winbind separator = +' might cause problems with group membership.
Server role: ROLE_DOMAIN_PDC
Press enter to see a dump of your service definitions
</pre><p>
	  <a class="indexterm" name="id2569105"></a>
	You now, of course, press the enter key to complete the command, or else abort it by pressing Ctrl-C.
	The important thing to note is the noted Server role, as well as warning messages. Noted configuration
	conflicts must be remedied before proceeding. For example, the following error message represents a
	common fatal problem:
</p><pre class="screen">
ERROR: both 'wins support = true' and 'wins server = &lt;server list&gt;' 
cannot be set in the smb.conf file. nmbd will abort with this setting.
</pre><p>
	</p><p><a class="indexterm" name="id2569134"></a><a class="indexterm" name="id2569142"></a><a class="indexterm" name="id2569150"></a>
	There are two parameters that can cause severe network performance degradation, <i class="parameter"><tt>socket options</tt></i>
	and <i class="parameter"><tt>socket address</tt></i>. The <i class="parameter"><tt>socket options</tt></i> parameter was often necessary
	when Samba was used with the Linux 2.2.x kernels. Later kernels are largely self-tuning and seldom benefit from
	this parameter being set. Do not use either parameter unless it has been proven necessary to use them.
	</p><p><a class="indexterm" name="id2569185"></a><a class="indexterm" name="id2569193"></a><a class="indexterm" name="id2569200"></a><a class="indexterm" name="id2569208"></a>
	Another <tt class="filename">smb.conf</tt> parameter that may cause severe network performance degradation is the 
	<i class="parameter"><tt>strict sync</tt></i> parameter. Do not use this at all. There is no good reason
	to use this with any modern Windows client. The <i class="parameter"><tt>strict sync</tt></i> is often
	used together with the <i class="parameter"><tt>sync always</tt></i> parameter. This, too, can severely	
	degrade network performance, so do not set it or if you must, do so with caution.
	</p><p><a class="indexterm" name="id2569252"></a><a class="indexterm" name="id2569260"></a><a class="indexterm" name="id2569268"></a><a class="indexterm" name="id2569276"></a>
	Finally, many network administrators deliberately disable opportunistic locking support. While this
	does not degrade Samba performance, it significantly degrades Windows client performance because
	this disables local file caching on Windows clients and forces every file read and written to
	invoke a network read or write call. If for any reason you must disable oplocks (opportunistic locking)
	support, do so on the share on which it is required only. That way, all other shares can provide
	oplock support for operations that are tolerant of it. See <a href="appendix.html#ch12dblck" title="Shared Data Integrity">???</a> for more
	information.
	</p></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id2569314"></a>Use and Location of BDCs</h3></div></div><div></div></div><p><a class="indexterm" name="id2569321"></a><a class="indexterm" name="id2569328"></a><a class="indexterm" name="id2569336"></a><a class="indexterm" name="id2569344"></a><a class="indexterm" name="id2569352"></a>
	On a network segment where there is a PDC and a BDC, the BDC carries the bulk of the network logon
	processing. If the BDC is a heavily loaded server, the PDC carries a greater proportion of
	authentication and logon processing. When a sole BDC on a routed network segment gets heavily
	loaded, it is possible that network logon requests and authentication requests may be directed
	to a BDC on a distant network segment. This significantly hinders wide-area network operations
	and is undesirable.
	</p><p><a class="indexterm" name="id2569371"></a><a class="indexterm" name="id2569379"></a>
	As a general guide, instead of adding Domain Member servers to a network, you would be better advised
	to add BDCs until there are fewer than 30 Windows clients per BDC. Beyond that ratio, you should add
	Domain Member servers. This practice ensures that there is always sufficient Domain Controllers
	to handle logon requests and authentication traffic.
	</p></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id2569397"></a>Use One Consistent Version of MS Windows Client</h3></div></div><div></div></div><p>
	Every network client has its own peculiarities. From a management perspective, it is easier to deal
	with one version of MS Windows that is maintained to a consistent update level, than it is to deal
	with a mixture of clients.
	</p><p>
	On a number of occasions, particular Microsoft service pack updates of a Windows server or client
	have necessitated special handling from the Samba server end. If you want to remain sane, keep you
	client workstation configurations consistent.
	</p></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id2569419"></a>For Scalability, Use SAN Based Storage on Samba Servers</h3></div></div><div></div></div><p><a class="indexterm" name="id2569426"></a><a class="indexterm" name="id2569434"></a>
	Many SAN-based storage systems permit more than one server to share a common data store.
	Use of a shared SAN data store means that you do not need to use time- and resource-hungry data 
	synchronization techniques.
	</p><p><a class="indexterm" name="id2569449"></a><a class="indexterm" name="id2569457"></a>
	The use of a collection of relatively low-cost front-end Samba servers that are coupled to
	a shared backend SAN data store permits load distribution while containing costs below that
	of installing and managing a complex clustering facility.
	</p></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id2569472"></a>Distribute Network Load with MSDFS</h3></div></div><div></div></div><p><a class="indexterm" name="id2569479"></a><a class="indexterm" name="id2569487"></a>
	Microsoft DFS (distributed file system) technology has been implemented in Samba. MSDFS permits
	data to be accessed from a single share and yet to actually be distributed across multiple actual
	servers. Refer to <span class="emphasis"><em>TOSHARG</em></span>, Chapter 16, for information regarding implementation of an MSDFS installation.
	</p><p><a class="indexterm" name="id2569507"></a><a class="indexterm" name="id2569518"></a>
	The combination of multiple back end servers together with a front-end server and use of MSDFS
	can achieve almost the same as you would obtain with a clustered Samba server.
	</p></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id2569532"></a>Replicate Data to Conserve Peak-Demand Wide-Area Bandwidth</h3></div></div><div></div></div><p><a class="indexterm" name="id2569540"></a><a class="indexterm" name="id2569547"></a><a class="indexterm" name="id2569555"></a>
	Consider using <span><b class="command">rsync</b></span> to replicate data across the wide-area network during times
	of low utilization. Users can then access the replicated data store rather than needing to do so
	across the wide-area network. This works best for read-only data, but with careful planning can be
	implemented so that modified files get replicated back to the point of origin. Be careful with your
	implementation if you choose to permit modification and return replication of the modified file;
	otherwise, you may inadvertently overwrite important data.
	</p></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id2569581"></a>Hardware Problems</h3></div></div><div></div></div><p><a class="indexterm" name="id2569588"></a><a class="indexterm" name="id2569596"></a><a class="indexterm" name="id2569604"></a><a class="indexterm" name="id2569612"></a><a class="indexterm" name="id2569623"></a><a class="indexterm" name="id2569635"></a>
	Networking hardware prices have fallen sharply over the past five years. A surprising number
	of Samba networking problems over this time have been traced to defective network interface
	cards (NICs) or defective hubs, switches, and cables.
	</p><p><a class="indexterm" name="id2569654"></a>
	Not surprising is the fact that network administrators do not like to be shown to have made
	a bad decision. Money saved in buying low-cost hardware may result in high costs incurred
	in corrective action.
	</p><p><a class="indexterm" name="id2569668"></a><a class="indexterm" name="id2569676"></a><a class="indexterm" name="id2569684"></a><a class="indexterm" name="id2569692"></a><a class="indexterm" name="id2569700"></a>
	Defective NICs, hubs, and switches may appear as intermittent network access problems, intermittent
	or persistent data corruption, slow network throughput, low performance, or even as blue-screen-of-death (BSOD)
	problems with MS Windows clients. In one case, a company updated several workstations with newer, faster
	Windows client machines that triggered problems during logon as well as data integrity problems on
	an older PC that was unaffected so long as the new machines were kept shut down.
	</p><p>
	Defective hardware problems may take patience and persistence before the real cause can be discovered.
	</p><p><a class="indexterm" name="id2569725"></a>
	Networking hardware defects can significantly impact perceived Samba performance, but defective
	RAID controllers as well as SCSI and IDE hard disk controllers have also been known to impair Samba server
	operations. One business came to this realization only after replacing a Samba installation with MS 
	Windows Server 2000 running on the same hardware. The root of the problem completely eluded the network
	administrator until the entire server was replaced. While you may well think that this would never
	happen to you, experience shows that given the right (unfortunate) circumstances, this can happen to anyone.
	</p></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id2569747"></a>Key Points Learned</h3></div></div><div></div></div><p>
		This chapter has touched in broad sweeps on a number of simple steps that can be taken
		to ensure that your Samba network is resilient, scalable, and reliable, and that it
		performs well.
		</p><p>
		Always keep in mind that someone is responsible to maintain and manage your design.
		In the long term, that may not be you. Spare a thought for your successor and give him or
		her an even break.
		</p><p><a class="indexterm" name="id2569767"></a>
		Last, but not least, you should not only keep the network design simple, but it should
		be well documented. This book may serve as your pattern for documenting every
		aspect of your design, its implementation, and particularly the objects and assumptions
		that underlie it.
		</p></div></div></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="DomApps.html">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="index.html">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="appendix.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">Chapter 11. Integrating Additional Services </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> Appendix A. Appendix: A Collection of Useful Tid-bits</td></tr></table></div></body></html>