<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Linux Servers cPanel webhosting blog &#187; using the NFS Server</title>
	<atom:link href="http://www.theperfectarts.com/tag/using-the-nfs-server/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.theperfectarts.com</link>
	<description>Basics cPanel tutorials / issue,mysql,php errors etc</description>
	<lastBuildDate>Wed, 08 Feb 2012 05:58:30 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>NFS Server Configuration part 2</title>
		<link>http://www.theperfectarts.com/2009/08/nfs-server-configuration-part-2/</link>
		<comments>http://www.theperfectarts.com/2009/08/nfs-server-configuration-part-2/#comments</comments>
		<pubDate>Thu, 20 Aug 2009 21:16:01 +0000</pubDate>
		<dc:creator>Gunjan</dc:creator>
				<category><![CDATA[NFS server]]></category>
		<category><![CDATA[nfs client side]]></category>
		<category><![CDATA[using the NFS Server]]></category>

		<guid isPermaLink="false">http://www.theperfectarts.com/?p=119</guid>
		<description><![CDATA[The following methods can be used to specify host names in NFS server. single host — Where one particular host is specified with a fully qualified domain name, hostname, or IP address. wildcards — Where a * or ? character is used to take into account a grouping of fully qualified domain names that match [...]]]></description>
			<content:encoded><![CDATA[<p>The following methods can be used to specify host names in NFS server.</p>
<ul>
<li><em>single host</em> — Where one particular 	      host is specified with a fully qualified domain name, hostname, or 	      IP address.</li>
<li><em>wildcards</em> — Where a 	      <tt>*</tt> or <tt>?</tt> character is used to take 	      into account a grouping of fully qualified domain names that match 	      a particular string of letters.  Wildcards are not to be used with 	      IP addresses; however, it is possible for them to work accidentally 	      if reverse DNS lookups fail.Be careful when using wildcards with fully qualified domain 	      names, as they tend to be more exact than expected. For example, 	      the use of <tt>*.example.com</tt> as wildcard allows 	      sales.example.com to access an exported file system, but not 	      bob.sales.example.com. To match both possibilities both 	      <tt>*.example.com</tt> and 	      <tt>*.*.example.com</tt> must be specified.</li>
<li><em>IP networks</em> — Allows the matching 	      of hosts based on their IP addresses within a larger network. For 	      example, <tt>192.168.0.0/28</tt> allows the first 16 IP 	      addresses, from 192.168.0.0 to 192.168.0.15, to access the 	      exported file system, but not 192.168.0.16 and higher.</li>
<li><em>netgroups</em> — Permits an NIS netgroup 	      name, written as 	      <tt>@<tt><em>&lt;group-name&gt;</em></tt></tt>, 	      to be used. This effectively puts the NIS server in charge of 	      access control for this exported file system, where users can be 	      added and removed from an NIS group without affecting 	      <tt>/etc/exports</tt>.</li>
</ul>
<p>In its simplest form, <tt>/etc/exports</tt> need only 	  specify the exported directory and the hosts permitted to access it, 	  as in the following example:</p>
<table border="0" width="100%" bgcolor="#dcdcdc">
<tbody>
<tr>
<td>
<pre><tt>/exported/directory gunjan.example.com</tt></pre>
</td>
</tr>
</tbody>
</table>
<p>In the example, <tt>gunjan.example.com</tt> can 	  mount <tt>/exported/directory/</tt>. Because no options are 	  specified in this example, the following default NFS options take 	  effect:</p>
<ul>
<li><tt>ro</tt> — Mounts of the exported file system 	      are read-only. Remote hosts are not able to make changes to the 	      data shared on the file system. To allow hosts to make changes to 	      the file system, the read/write (<tt>rw</tt>) option must 	      be specified.</li>
<li><tt>async</tt> — Allows the server to write data 	      at non-regular intervals. This setting works best if the exported 	      file system is read-only. If the exported file system is 	      read/write and hosts are making changes to the file system when 	      the server crashes, data can be lost. By specifying the 	      <tt>sync</tt> option, all file writes are committed to the 	      disk before the write request by the client is completed. The 	      <tt>sync</tt> option, however, can lower performance.</li>
<li><tt>wdelay</tt> — Causes the NFS server to delay 	      writing to the disk if it suspects another write request is 	      imminent. This can improve performance by reducing the number of 	      times the disk must be accessed by separate write commands, 	      reducing write overhead. The <tt>no_wdelay</tt> option 	      turns off this feature, but is only available when using the 	      <tt>sync</tt> option.</li>
<li><tt>root_squash</tt> — Prevents root users 	    connected remotely from having root privileges and assigns them the 	    user ID for the user <tt>nfsnobody</tt>. This 	    effectively &#8220;squashes&#8221; the power of the remote root user to the 	    lowest local user, preventing unauthorized alteration of files on 	    the remote server. Alternatively, the 	    <tt>no_root_squash</tt> option turns off root squashing. To 	    squash every remote user, including root, use the 	    <tt>all_squash</tt> option. To specify the user and group 	    IDs to use with remote users from a particular host, use the 	    <tt>anonuid</tt> and <tt>anongid</tt> options, 	    respectively. In this case, a special user account can be created 	    for remote NFS users to share and specify 	    <tt>(anonuid=<tt><em>&lt;uid-value&gt;</em></tt>,anongid=<tt><em>&lt;gid-value&gt;</em></tt>)</tt>, 	    where <tt><tt><em>&lt;uid-value&gt;</em></tt></tt> is the user ID number and 	    <tt><tt><em>&lt;gid-value&gt;</em></tt></tt> is the 	    group ID number.</li>
</ul>
<p>Each default for every exported file system must be explicitly 	  overridden. For example, if the <tt>rw</tt> option is not 	  specified, then the exported file system is shared as read-only. The 	  following is a sample line from <tt>/etc/exports</tt> which overrides two default options:</p>
<table border="0" width="100%" bgcolor="#dcdcdc">
<tbody>
<tr>
<td>
<pre><tt>/another/exported/directory 192.168.0.3(rw,sync)</tt></pre>
</td>
</tr>
</tbody>
</table>
<p>In this example <tt>192.168.0.3</tt> can mount 	  <tt>/another/exported/directory/</tt> read/write and all 	  transfers to disk are committed to the disk before the write request 	  by the client is completed.</p>
<p>Additionally, other options are available where no default value is 	  specified. These include the ability to disable sub-tree checking, 	  allow access from insecure ports, and allow insecure file locks 	  (necessary for certain early NFS client implementations). Refer to the 	  <tt>exports</tt> man page for details on these lesser used 	  options.</p>
<p>For further configuration refer <a title="NFS Server Configuration part 3" href="http://www.theperfectarts.com/2009/08/nfs-server-configuration-part-3/" target="_self"><strong>NFS Server Configuration part 3</strong></a></p>
<p><script type="text/javascript">// <![CDATA[
 google_ad_client = "ca-pub-1685490665026631"; /* images */ google_ad_slot = "1433358698"; google_ad_width = 300; google_ad_height = 250;
// ]]&gt;</script></p>
<p><script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js">// <![CDATA[</p>
<p>// ]]&gt;</script></p>
<p>&copy;2012 <a href="http://www.theperfectarts.com">Linux Servers cPanel webhosting blog</a>. All Rights Reserved.</p>.]]></content:encoded>
			<wfw:commentRss>http://www.theperfectarts.com/2009/08/nfs-server-configuration-part-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>NFS Server Configuration part 1</title>
		<link>http://www.theperfectarts.com/2009/08/nfs-server-configuration-part-1/</link>
		<comments>http://www.theperfectarts.com/2009/08/nfs-server-configuration-part-1/#comments</comments>
		<pubDate>Thu, 20 Aug 2009 21:10:21 +0000</pubDate>
		<dc:creator>Gunjan</dc:creator>
				<category><![CDATA[NFS server]]></category>
		<category><![CDATA[/etc/exports file]]></category>
		<category><![CDATA[hosts/servers]]></category>
		<category><![CDATA[Network File System]]></category>
		<category><![CDATA[NFS Server]]></category>
		<category><![CDATA[NFS Server config files]]></category>
		<category><![CDATA[NFS Server Configuration]]></category>
		<category><![CDATA[redhat-config-nfs]]></category>
		<category><![CDATA[using the NFS Server]]></category>

		<guid isPermaLink="false">http://www.theperfectarts.com/?p=110</guid>
		<description><![CDATA[NFS Server Configuration There are three different ways to configure an Network File System (NFS) server in Linux: using the NFS Server Configuration Tool  (redhat-config-nfs), manually you can editing its configuration file /etc/exports as well as using the /usr/sbin/exportfs command. In this thread we are configuring Network File System server by using last two option [...]]]></description>
			<content:encoded><![CDATA[<p>NFS Server Configuration</p>
<p>There are three different ways to configure an Network File System (NFS) server in Linux: using the NFS Server Configuration Tool  (redhat-config-nfs), manually you can editing its configuration file /etc/exports as well as using the /usr/sbin/exportfs command.</p>
<p>In this thread we are configuring Network File System server by using last two option which is file /etc/exports and /usr/sbin/exportfs.</p>
<p>The /etc/exports file defines which file systems are exported to remote hosts/servers and specifies options.Blank lines are ignored and comments can be made by starting a line with the hash mark (#), and long lines can be wrapped with a backslash (\). Each exported file system should be on its own individual line, and any lists of authorized hosts placed after an exported file system must be separated by space characters. Options for each of the hosts/servers must be placed in parentheses directly after the host identifier, without any spaces separating the host and the first parenthesis.</p>
<p>A line for an exported file system has the following structure:</p>
<ol>
<li>&lt;export&gt; &lt;host1&gt;(&lt;options&gt;) &lt;hostN&gt;(&lt;options&gt;)&#8230;</li>
<li>&lt;export&gt; &lt;host2&gt;(&lt;options&gt;) &lt;hostN&gt;(&lt;options&gt;)&#8230;</li>
<li>&lt;export&gt; &lt;host3&gt;(&lt;options&gt;) &lt;hostN&gt;(&lt;options&gt;)&#8230;</li>
</ol>
<p>In this structure, replace &lt;export&gt;  with the directory being exported, replace &lt;host1&gt; with the host/server or network to which the export is being shared, and replace (&lt;options&gt; with the options for that host/server or network. Additional hosts can be specified in a space separated list.</p>
<p>To specify host names refer <a title="NFS Server Configuration part 2" href="http://www.theperfectarts.com/2009/08/nfs-server-configuration-part-2/" target="_self">NFS Server Configuration part 2</a></p>
<p><script type="text/javascript">// <![CDATA[
 google_ad_client = "ca-pub-1685490665026631"; /* images */ google_ad_slot = "1433358698"; google_ad_width = 300; google_ad_height = 250;
// ]]&gt;</script></p>
<p><script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js">// <![CDATA[</p>
<p>// ]]&gt;</script></p>
<p>&copy;2012 <a href="http://www.theperfectarts.com">Linux Servers cPanel webhosting blog</a>. All Rights Reserved.</p>.]]></content:encoded>
			<wfw:commentRss>http://www.theperfectarts.com/2009/08/nfs-server-configuration-part-1/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

