<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Network File System (NFS) Server and Client Configuration in Debian</title>
	<atom:link href="http://www.debianadmin.com/network-file-system-nfs-server-and-client-configuration-in-debian.html/feed" rel="self" type="application/rss+xml" />
	<link>http://www.debianadmin.com/network-file-system-nfs-server-and-client-configuration-in-debian.html</link>
	<description>Debian/Ubuntu Linux System Administration Tutorials,Howtos,Tips</description>
	<lastBuildDate>Mon, 06 Feb 2012 02:01:37 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: anup</title>
		<link>http://www.debianadmin.com/network-file-system-nfs-server-and-client-configuration-in-debian.html/comment-page-1#comment-5674</link>
		<dc:creator>anup</dc:creator>
		<pubDate>Fri, 20 Aug 2010 03:05:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.debianadmin.com/network-file-system-nfs-server-and-client-configuration-in-debian.html#comment-5674</guid>
		<description>Hi, 

I have a NFS share which is used to store email accounts. So, you can imagine the number of read &amp; write operation over NFS. 80% write operations!
 
The NFS server runs the following hardware &amp; software:
Supermicro 2u, RAID-10 (Sata RAID, 3ware controller), 1.5TB NFS-Share, 8GB RAM DDR2, Pentium D 2.6GHz processor (looks like a desktop processor to me on server board, perhaps!), baseboard - Supermicro PDSML(not details available)

OS - CentOS 5.2 64bit, NFSv3 operation (installed from nfs-utils-1.0.9-33), current kernel 2.6.18-194.3.1.el5

I am facing a big performance issue with NFS.. the load avg on the nfs servers are always between 10 and 30. I had to increase the number of nfs daemons to 12 since its shared across 7 clients and most nfsd go in &#039;D&#039; state. If I keep default, then mail server ends up with high mail queue and lots of lock failures. We also need to maintain nfslock since file locking is important to us. 

client side mount options used are:
hard,intr,lock,auto,sync,tcp,rsize=32768,wsize=32768

server side options are:
$share 172.16.1.0/24(rw,sync,root_squash,no_wdelay)

Output of nfstat
Server nfs v3:
null         getattr      setattr      lookup       access       readlink
140       0% 494082    1% 66987     0% 358388    1% 420319    1% 0         0%
read         write        create       mkdir        symlink      mknod
1805704   6% 24135656 88% 23579     0% 1         0% 0         0% 0         0%
remove       rmdir        rename       link         readdir      readdirplus
21374     0% 0         0% 24297     0% 21362     0% 0         0% 11        0%
fsstat       fsinfo       pathconf     commit
221       0% 8         0% 0         0% 0         0%

Output of mpstat:
08:15:35 AM  CPU   %user   %nice    %sys %iowait    %irq   %soft  %steal   %idle    intr/s
08:15:40 AM  all   15.02    0.00    9.01   24.42    0.20    0.50    0.00   50.85   1836.20
08:15:45 AM  all   13.89    0.00    7.09   26.47    0.00    0.20    0.00   52.35   1313.20
Average:     all   14.45    0.00    8.05   25.45    0.10    0.35    0.00   51.60   1574.70

However, I have an NFS server from the same pool that functions remarkably. Its the same config as the rest. Its nfs write operations are 84% and iowait is 0.05%. The only thing I can see about this server is that the OS was able to detect the family of the processor exactly (i.e. All processor Flags &#124; use dmidecode -t processor), while for the rest it couldnt. Let me tell you that processor is exactly the same and so is the OS. 

Is there anything I can do to improve NFS performance? 

Thanks!</description>
		<content:encoded><![CDATA[<p>Hi, </p>
<p>I have a NFS share which is used to store email accounts. So, you can imagine the number of read &amp; write operation over NFS. 80% write operations!</p>
<p>The NFS server runs the following hardware &amp; software:<br />
Supermicro 2u, RAID-10 (Sata RAID, 3ware controller), 1.5TB NFS-Share, 8GB RAM DDR2, Pentium D 2.6GHz processor (looks like a desktop processor to me on server board, perhaps!), baseboard - Supermicro PDSML(not details available)</p>
<p>OS - CentOS 5.2 64bit, NFSv3 operation (installed from nfs-utils-1.0.9-33), current kernel 2.6.18-194.3.1.el5</p>
<p>I am facing a big performance issue with NFS.. the load avg on the nfs servers are always between 10 and 30. I had to increase the number of nfs daemons to 12 since its shared across 7 clients and most nfsd go in &#8216;D&#8217; state. If I keep default, then mail server ends up with high mail queue and lots of lock failures. We also need to maintain nfslock since file locking is important to us. </p>
<p>client side mount options used are:<br />
hard,intr,lock,auto,sync,tcp,rsize=32768,wsize=32768</p>
<p>server side options are:<br />
$share 172.16.1.0/24(rw,sync,root_squash,no_wdelay)</p>
<p>Output of nfstat<br />
Server nfs v3:<br />
null         getattr      setattr      lookup       access       readlink<br />
140       0% 494082    1% 66987     0% 358388    1% 420319    1% 0         0%<br />
read         write        create       mkdir        symlink      mknod<br />
1805704   6% 24135656 88% 23579     0% 1         0% 0         0% 0         0%<br />
remove       rmdir        rename       link         readdir      readdirplus<br />
21374     0% 0         0% 24297     0% 21362     0% 0         0% 11        0%<br />
fsstat       fsinfo       pathconf     commit<br />
221       0% 8         0% 0         0% 0         0%</p>
<p>Output of mpstat:<br />
08:15:35 AM  CPU   %user   %nice    %sys %iowait    %irq   %soft  %steal   %idle    intr/s<br />
08:15:40 AM  all   15.02    0.00    9.01   24.42    0.20    0.50    0.00   50.85   1836.20<br />
08:15:45 AM  all   13.89    0.00    7.09   26.47    0.00    0.20    0.00   52.35   1313.20<br />
Average:     all   14.45    0.00    8.05   25.45    0.10    0.35    0.00   51.60   1574.70</p>
<p>However, I have an NFS server from the same pool that functions remarkably. Its the same config as the rest. Its nfs write operations are 84% and iowait is 0.05%. The only thing I can see about this server is that the OS was able to detect the family of the processor exactly (i.e. All processor Flags | use dmidecode -t processor), while for the rest it couldnt. Let me tell you that processor is exactly the same and so is the OS. </p>
<p>Is there anything I can do to improve NFS performance? </p>
<p>Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: M.Baharoon</title>
		<link>http://www.debianadmin.com/network-file-system-nfs-server-and-client-configuration-in-debian.html/comment-page-1#comment-3266</link>
		<dc:creator>M.Baharoon</dc:creator>
		<pubDate>Wed, 24 Jun 2009 11:30:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.debianadmin.com/network-file-system-nfs-server-and-client-configuration-in-debian.html#comment-3266</guid>
		<description>can u at least list five advantages of  file network system???</description>
		<content:encoded><![CDATA[<p>can u at least list five advantages of  file network system???</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: michael skramstad</title>
		<link>http://www.debianadmin.com/network-file-system-nfs-server-and-client-configuration-in-debian.html/comment-page-1#comment-1726</link>
		<dc:creator>michael skramstad</dc:creator>
		<pubDate>Sun, 26 Oct 2008 18:11:52 +0000</pubDate>
		<guid isPermaLink="false">http://www.debianadmin.com/network-file-system-nfs-server-and-client-configuration-in-debian.html#comment-1726</guid>
		<description>S.Selvarani: Your question is a bit vague. If you want to access NFS mounted files on a client machine, then you would have to add NFS server capability to the client and modify the exports file on the &quot;client&quot; accordingly.

Thank you for the article, which I found helpful.</description>
		<content:encoded><![CDATA[<p>S.Selvarani: Your question is a bit vague. If you want to access NFS mounted files on a client machine, then you would have to add NFS server capability to the client and modify the exports file on the &#8220;client&#8221; accordingly.</p>
<p>Thank you for the article, which I found helpful.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: S.Selvarani</title>
		<link>http://www.debianadmin.com/network-file-system-nfs-server-and-client-configuration-in-debian.html/comment-page-1#comment-1725</link>
		<dc:creator>S.Selvarani</dc:creator>
		<pubDate>Thu, 12 Jun 2008 06:47:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.debianadmin.com/network-file-system-nfs-server-and-client-configuration-in-debian.html#comment-1725</guid>
		<description>how to access the files from server to client?  Can u send me.  This is very urgent</description>
		<content:encoded><![CDATA[<p>how to access the files from server to client?  Can u send me.  This is very urgent</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Veena</title>
		<link>http://www.debianadmin.com/network-file-system-nfs-server-and-client-configuration-in-debian.html/comment-page-1#comment-1724</link>
		<dc:creator>Veena</dc:creator>
		<pubDate>Thu, 21 Jun 2007 06:39:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.debianadmin.com/network-file-system-nfs-server-and-client-configuration-in-debian.html#comment-1724</guid>
		<description>Hi,
 I found this site evry useful as I am a newbiew to NFS stuff.I found the following
link missing.Please do look into this if it may be useful.

In the section- NFS Client Configuration

NFS volumes can be mounted by root directly from the command line. For example
..
..
..
..

For each options menctioned in /etc/fstab file check the man pages
of fstab.&quot;Click here for manpage.&quot; - There is no link provided here.

Regards,
Veena</description>
		<content:encoded><![CDATA[<p>Hi,<br />
 I found this site evry useful as I am a newbiew to NFS stuff.I found the following<br />
link missing.Please do look into this if it may be useful.</p>
<p>In the section- NFS Client Configuration</p>
<p>NFS volumes can be mounted by root directly from the command line. For example<br />
..<br />
..<br />
..<br />
..</p>
<p>For each options menctioned in /etc/fstab file check the man pages<br />
of fstab.&#8221;Click here for manpage.&#8221; - There is no link provided here.</p>
<p>Regards,<br />
Veena</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steinar H. Gunderson</title>
		<link>http://www.debianadmin.com/network-file-system-nfs-server-and-client-configuration-in-debian.html/comment-page-1#comment-1723</link>
		<dc:creator>Steinar H. Gunderson</dc:creator>
		<pubDate>Fri, 04 May 2007 19:28:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.debianadmin.com/network-file-system-nfs-server-and-client-configuration-in-debian.html#comment-1723</guid>
		<description>GSandie:

apt-get is a thin, low-level command-line interface to libapt. aptitude is a user-friendly front-end. You should not normally use apt-get unless you really know what you&#039;re doing. In particular, aptitude has better conflict resolution, knows how to pull in Recommends, and can automatically remove packages that are no longer needed (and were only installed as dependencies of other packages).

I know the word &quot;apt-get&quot; is deeply ingrained in common knowledge, but really, aptitude is what most people should be using these days.</description>
		<content:encoded><![CDATA[<p>GSandie:</p>
<p>apt-get is a thin, low-level command-line interface to libapt. aptitude is a user-friendly front-end. You should not normally use apt-get unless you really know what you&#8217;re doing. In particular, aptitude has better conflict resolution, knows how to pull in Recommends, and can automatically remove packages that are no longer needed (and were only installed as dependencies of other packages).</p>
<p>I know the word &#8220;apt-get&#8221; is deeply ingrained in common knowledge, but really, aptitude is what most people should be using these days.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Geoff</title>
		<link>http://www.debianadmin.com/network-file-system-nfs-server-and-client-configuration-in-debian.html/comment-page-1#comment-1722</link>
		<dc:creator>Geoff</dc:creator>
		<pubDate>Sat, 07 Apr 2007 02:55:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.debianadmin.com/network-file-system-nfs-server-and-client-configuration-in-debian.html#comment-1722</guid>
		<description>thanks. I found it useful.  just set up NFS for the first time.</description>
		<content:encoded><![CDATA[<p>thanks. I found it useful.  just set up NFS for the first time.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dmitriy Kropivnitskiy</title>
		<link>http://www.debianadmin.com/network-file-system-nfs-server-and-client-configuration-in-debian.html/comment-page-1#comment-1721</link>
		<dc:creator>Dmitriy Kropivnitskiy</dc:creator>
		<pubDate>Tue, 13 Mar 2007 18:16:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.debianadmin.com/network-file-system-nfs-server-and-client-configuration-in-debian.html#comment-1721</guid>
		<description>Interesting... in an archeological sort of way.
By the way, even Debian stable provides kernel versions 2.4.27 and 2.6.8. I was surprised to find that 2.2.25 is still provided for Atari, Amiga and a few other obscure architectures. So 2.2.13 is VERY far from recent whatever branch of Debian you are using.</description>
		<content:encoded><![CDATA[<p>Interesting&#8230; in an archeological sort of way.<br />
By the way, even Debian stable provides kernel versions 2.4.27 and 2.6.8. I was surprised to find that 2.2.25 is still provided for Atari, Amiga and a few other obscure architectures. So 2.2.13 is VERY far from recent whatever branch of Debian you are using.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Admin</title>
		<link>http://www.debianadmin.com/network-file-system-nfs-server-and-client-configuration-in-debian.html/comment-page-1#comment-1720</link>
		<dc:creator>Admin</dc:creator>
		<pubDate>Tue, 13 Mar 2007 14:24:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.debianadmin.com/network-file-system-nfs-server-and-client-configuration-in-debian.html#comment-1720</guid>
		<description>@Steinar

Thanks for your valuable information and may be i am still under learning stage please check my comments as follows

* The kernel-mode server is _more_ featureful than the userspace server (and 2.2.13 isn’t really a “recent” kernel by any standard, the 2.2 series was abandoned like five years ago). For one, it supports NFSv4, which the article for some reason doesn’t cover at all.

I am using debian stable version so i am using nfs package coming with this.
* The default rsize and wsize have not been 1024 in ages; I believe they’re 32768 now for NFSv3, but I haven’t checked it. Better to leave the field alone.

I have menctioned about the NFSv3 they have to use 32768 under performance.I am not sure every one is using NFSv3 so this is general writeup</description>
		<content:encoded><![CDATA[<p>@Steinar</p>
<p>Thanks for your valuable information and may be i am still under learning stage please check my comments as follows</p>
<p>* The kernel-mode server is _more_ featureful than the userspace server (and 2.2.13 isn’t really a “recent” kernel by any standard, the 2.2 series was abandoned like five years ago). For one, it supports NFSv4, which the article for some reason doesn’t cover at all.</p>
<p>I am using debian stable version so i am using nfs package coming with this.<br />
* The default rsize and wsize have not been 1024 in ages; I believe they’re 32768 now for NFSv3, but I haven’t checked it. Better to leave the field alone.</p>
<p>I have menctioned about the NFSv3 they have to use 32768 under performance.I am not sure every one is using NFSv3 so this is general writeup</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: GSandie</title>
		<link>http://www.debianadmin.com/network-file-system-nfs-server-and-client-configuration-in-debian.html/comment-page-1#comment-1719</link>
		<dc:creator>GSandie</dc:creator>
		<pubDate>Tue, 13 Mar 2007 12:57:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.debianadmin.com/network-file-system-nfs-server-and-client-configuration-in-debian.html#comment-1719</guid>
		<description>Steinar,

This is off topic, however I was wondering why you recommend using aptitude over apt-get?

I&#039;d always thought that aptitude was just a frontend to apt-get and have never used it (when I came to debian years ago from RedHat/Slackware apt-get seemed like the best thing in the world) so I was wondering if I&#039;m missing something important?

Cheers, GSandie</description>
		<content:encoded><![CDATA[<p>Steinar,</p>
<p>This is off topic, however I was wondering why you recommend using aptitude over apt-get?</p>
<p>I&#8217;d always thought that aptitude was just a frontend to apt-get and have never used it (when I came to debian years ago from RedHat/Slackware apt-get seemed like the best thing in the world) so I was wondering if I&#8217;m missing something important?</p>
<p>Cheers, GSandie</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steinar H. Gunderson</title>
		<link>http://www.debianadmin.com/network-file-system-nfs-server-and-client-configuration-in-debian.html/comment-page-1#comment-1718</link>
		<dc:creator>Steinar H. Gunderson</dc:creator>
		<pubDate>Tue, 13 Mar 2007 12:25:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.debianadmin.com/network-file-system-nfs-server-and-client-configuration-in-debian.html#comment-1718</guid>
		<description>Hi,

As the Debian NFS maintainer, I have to say I&#039;m a bit disappointed at the quality of this article; there are so many things that are just plain wrong. I can&#039;t address them all in too great detail, but a few points are (and I hope the website doesn&#039;t mess up my list :-) ):

* You do not install things with apt-get unless you really know what you&#039;re doing; use aptitude.
* The kernel-mode server is _more_ featureful than the userspace server (and 2.2.13 isn&#039;t really a &quot;recent&quot; kernel by any standard, the 2.2 series was abandoned like five years ago). For one, it supports NFSv4, which the article for some reason doesn&#039;t cover at all.
* The default rsize and wsize have not been 1024 in ages; I believe they&#039;re 32768 now for NFSv3, but I haven&#039;t checked it. Better to leave the field alone.
* -o soft or -o hard has absolutely nothing to do with symlinks vs. hardlinks. Soft mounts do not cause data corruption just by themselves; it has to be combined with some kind of outage (like a network outage).
* If you have any kind of network where you could expect any sort of packet loss, you most likely want TCP. In fact, NFSv4 only lets you use TCP, which is a good thing.
* NFS supports Kerberos authentication in addition to trusting IPs; it&#039;s not so horribly insecure as you claim.
* Lots of memory _is_ helpful on both clients and servers. Both can cache, which helps hit the disks less.

I appreciate people writing articles on difficult topics, but please, make a better job of checking your facts first instead of copying them blindly from man pages or old versions of package descriptions.</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>As the Debian NFS maintainer, I have to say I&#8217;m a bit disappointed at the quality of this article; there are so many things that are just plain wrong. I can&#8217;t address them all in too great detail, but a few points are (and I hope the website doesn&#8217;t mess up my list <img src='http://www.debianadmin.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' />  ):</p>
<p>* You do not install things with apt-get unless you really know what you&#8217;re doing; use aptitude.<br />
* The kernel-mode server is _more_ featureful than the userspace server (and 2.2.13 isn&#8217;t really a &#8220;recent&#8221; kernel by any standard, the 2.2 series was abandoned like five years ago). For one, it supports NFSv4, which the article for some reason doesn&#8217;t cover at all.<br />
* The default rsize and wsize have not been 1024 in ages; I believe they&#8217;re 32768 now for NFSv3, but I haven&#8217;t checked it. Better to leave the field alone.<br />
* -o soft or -o hard has absolutely nothing to do with symlinks vs. hardlinks. Soft mounts do not cause data corruption just by themselves; it has to be combined with some kind of outage (like a network outage).<br />
* If you have any kind of network where you could expect any sort of packet loss, you most likely want TCP. In fact, NFSv4 only lets you use TCP, which is a good thing.<br />
* NFS supports Kerberos authentication in addition to trusting IPs; it&#8217;s not so horribly insecure as you claim.<br />
* Lots of memory _is_ helpful on both clients and servers. Both can cache, which helps hit the disks less.</p>
<p>I appreciate people writing articles on difficult topics, but please, make a better job of checking your facts first instead of copying them blindly from man pages or old versions of package descriptions.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

