<font size=2 face="sans-serif">Hi All,</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; I'm
not sure if this will help anyone, but I found nfs unstable on my box at
home (which runs a number of nfs root'd servers as well as mythtv storage),
I resolved the issue by setting the clients to tcp and also increasing
the block size. &nbsp;I now use the following mount options:</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; defaults,tcp,rsize=8192,wsize=8192 for general
servers.</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; defaults,tcp,rsize=8192,wsize=8192,actimeo=0
for mythtv.</font>
<br>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; I
should point out I found the above 'fix' was born out of a bit of guess
work and assumption around what was causing my issues. &nbsp;I'm also running
16 nfsd's (although I don't recall this was required to fix my stability
issues)</font>
<br>
<br><font size=2 face="sans-serif">Hope this helps (disregard if a load
of rubbish!)</font>
<br>
<br><font size=2 face="sans-serif">Alex</font>
<br>
<br>
<br>
<br><tt><font size=2>mythtv-users-bounces@mythtv.org wrote on 09/05/2009
05:59:57:<br>
<br>
&gt; From:</font></tt>
<br><tt><font size=2>&gt; <br>
&gt; Nasa &lt;nasa01@comcast.net&gt;</font></tt>
<br><tt><font size=2>&gt; <br>
&gt; To:</font></tt>
<br><tt><font size=2>&gt; <br>
&gt; Discussion about mythtv &lt;mythtv-users@mythtv.org&gt;</font></tt>
<br><tt><font size=2>&gt; <br>
&gt; Date:</font></tt>
<br><tt><font size=2>&gt; <br>
&gt; 09/05/2009 05:06</font></tt>
<br><tt><font size=2>&gt; <br>
&gt; Subject:</font></tt>
<br><tt><font size=2>&gt; <br>
&gt; Re: [mythtv-users] mythtv + nfs = bad?</font></tt>
<br><tt><font size=2>&gt; <br>
&gt; Sent by:</font></tt>
<br><tt><font size=2>&gt; <br>
&gt; mythtv-users-bounces@mythtv.org</font></tt>
<br><tt><font size=2>&gt; <br>
&gt; <br>
&gt; ----- &quot;Dale Pontius&quot; &lt;DEPontius@edgehp.net&gt; wrote:<br>
&gt; <br>
&gt; &gt; Brian Wood wrote:<br>
&gt; &gt; &gt; On Thursday 07 May 2009 07:43:38 James Oltman wrote:<br>
&gt; &gt; &gt;&gt; On Wed, May 6, 2009 at 6:55 PM, Brian Wood &lt;beww@beww.org&gt;
wrote:<br>
&gt; &gt; &gt;&gt;&gt; What version of NFS?<br>
&gt; &gt; &gt;&gt;&gt;<br>
&gt; &gt; &gt;&gt;&gt; I think NFS v.2 (client side) has a 2GB file size
limit, which<br>
&gt; &gt; means it<br>
&gt; &gt; &gt;&gt;&gt; can only look at the first 2GB of a file that's
larger than 2GB.<br>
&gt; &gt; &gt;&gt;&gt;<br>
&gt; &gt; &gt;&gt;&gt; Version 3 supports larger files, but obviously it
depends on the<br>
&gt; &gt; &gt;&gt;&gt; filesystem on<br>
&gt; &gt; &gt;&gt;&gt; the server side, if it were FAT, for example, a
4.7GB file would<br>
&gt; &gt; be a<br>
&gt; &gt; &gt;&gt;&gt; problem.<br>
&gt; &gt; &gt;&gt;&gt;<br>
&gt; &gt; &gt;&gt;&gt; There is also a limit on the size of a transfer
&quot;on the wire&quot;,<br>
&gt; &gt; which<br>
&gt; &gt; &gt;&gt;&gt; depends<br>
&gt; &gt; &gt;&gt;&gt; on whether TCP or UDP is used, and the particular
implementation.<br>
&gt; &gt; &gt;&gt;&gt;<br>
&gt; &gt; &gt;&gt;&gt; Large files and NFS can be problematical, make sure
you understand<br>
&gt; &gt; any<br>
&gt; &gt; &gt;&gt;&gt; limits<br>
&gt; &gt; &gt;&gt;&gt; of your server and client NFS versions, as well
as the filesystem<br>
&gt; &gt; in use.<br>
&gt; &gt; &gt;&gt;&gt;<br>
&gt; &gt; &gt;&gt;&gt; Google &quot;nfs file size limits&quot; for more
information.<br>
&gt; &gt; &gt;&gt; Brian,<br>
&gt; &gt; &gt;&gt;<br>
&gt; &gt; &gt;&gt; Thanks for the response. &nbsp;What was strange about
my setup was that<br>
&gt; &gt; it was<br>
&gt; &gt; &gt;&gt; working just fine for a long time. &nbsp;Then all of
the sudden, one<br>
&gt; &gt; day, it<br>
&gt; &gt; &gt;&gt; stopped working. &nbsp;I don't know if it happened during
a kernel<br>
&gt; &gt; update or<br>
&gt; &gt; &gt;&gt; what. &nbsp;I know I'm running NFSv2. &nbsp;I don't
know how to update myself<br>
&gt; &gt; to v3<br>
&gt; &gt; &gt;&gt; or above.<br>
&gt; &gt; &gt; <br>
&gt; &gt; &gt; <br>
&gt; &gt; &gt; The precise upgrade method would depend on your distribution,
any of<br>
&gt; &gt; the most <br>
&gt; &gt; &gt; recent distros should have support for v3. I'd consult the
relevant<br>
&gt; &gt; support <br>
&gt; &gt; &gt; fori.<br>
&gt; &gt; &gt; <br>
&gt; &gt; &gt; Even if (for example) an upgrade to your server side machine
enabled<br>
&gt; &gt; nfs v3, <br>
&gt; &gt; &gt; the systems should negotiate the highest commonly supported
version,<br>
&gt; &gt; so if <br>
&gt; &gt; &gt; your client can only do v2, that's what the server should
do as<br>
&gt; &gt; well.<br>
&gt; &gt; &gt; <br>
&gt; &gt; &gt; There have also been some changes in the default settings
for<br>
&gt; &gt; sync/async, and <br>
&gt; &gt; &gt; some others I think.<br>
&gt; &gt; &gt; <br>
&gt; &gt; &gt; But using &quot;mixed&quot; systems might cause problems.<br>
&gt; &gt; &gt; <br>
&gt; &gt; &gt; Another user here noted an improvement in performance by
using samba<br>
&gt; &gt; mounts <br>
&gt; &gt; &gt; instead of NFS, certainly sounds like it's worth a try.
I'm going to<br>
&gt; &gt; look <br>
&gt; &gt; &gt; into that, and try to get some hard numbers.<br>
&gt; &gt; &gt; <br>
&gt; &gt; &gt; I'm certainly no expert on NFS, I use it for non-Myth applications<br>
&gt; &gt; and it has <br>
&gt; &gt; &gt; always &quot;just worked&quot;, but I don't put much demand
on it. <br>
&gt; &gt; &gt; <br>
&gt; &gt; I'm running nfs4 and still have the problems. &nbsp;It's supposed
to be <br>
&gt; &gt; ironed out by the time client and server get to 2.6.29 or beyond.<br>
&gt; &gt; <br>
&gt; This discussion got me to do some googling.... &nbsp;I came across
some <br>
&gt; discussion, such as here:<br>
&gt; <br>
&gt; </font></tt><a href=http://www.ncsa.uiuc.edu/UserInfo/Resources/Hardware/IBMp690/IBM/><tt><font size=2>http://www.ncsa.uiuc.edu/UserInfo/Resources/Hardware/IBMp690/IBM/</font></tt></a><tt><font size=2><br>
&gt; usr/share/man/info/en_US/a_doc_lib/aixbman/prftungd/2365ca3.htm<br>
&gt; <br>
&gt; which eventually led me to see this...<br>
&gt; <br>
&gt; </font></tt><a href="http://kamilkisiel.blogspot.com/2007/11/understanding-linux-nfsd-"><tt><font size=2>http://kamilkisiel.blogspot.com/2007/11/understanding-linux-nfsd-</font></tt></a><tt><font size=2><br>
&gt; statistics.html<br>
&gt; <br>
&gt; Those combined with some more research led me to believe I wasn't
<br>
&gt; running enough nfsd daemons. &nbsp;The default of 8 just isn't good
<br>
&gt; enough -- does that account for the<br>
&gt; problem I was seeing, I guess time will tell. &nbsp;But it's at least
a start.<br>
&gt; <br>
&gt; Nasa<br>
&gt; <br>
&gt; <br>
&gt; _______________________________________________<br>
&gt; mythtv-users mailing list<br>
&gt; mythtv-users@mythtv.org<br>
&gt; </font></tt><a href="http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users"><tt><font size=2>http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users</font></tt></a><tt><font size=2><br>
</font></tt>