LinHES Forums http://forum.linhes.org/ |
|
NFS problems with R6 http://forum.linhes.org/viewtopic.php?f=6&t=20261 |
Page 1 of 2 |
Author: | MrFahrenheit [ Thu Aug 27, 2009 6:37 pm ] |
Post subject: | NFS problems with R6 |
I'm running recent clean install of R6.00.09 and have all of my DVD collection, pictures, and music on an nfs share on my fileserver. At least once a day, I lose connection to the fileserver and I see this message in the messages.log: Code: Aug 27 15:58:44 mythtv nfs: server 192.168.1.200 not responding, still trying The effect of this in mythtv is that it hangs in the menus when "watch videos" is selected. If I ssh into the mythtv box and run df -h, the command hangs when it gets to the nfs drives. Here's the section from my fstab for loading the shares: Code: 192.168.1.200:/videos /myth/video nfs rw,hard,intr,noatime,tcp,timeo=60,nfsvers=3 0 0
192.168.1.200:/music /myth/music nfs rw,hard,intr,noatime,tcp,timeo=60,nfsvers=3 0 0 192.168.1.200:/pictures /myth/gallery nfs rw,hard,intr,noatime,tcp,timeo=60,nfsvers=3 0 0 I've been trying various combinations of parameters and what's there is simply the last thing that I have tried. I never had this problem on the R5E50 system that I am replacing (same hardware except for hard drive which died). None of the other nfs clients on my network have this problem either, and the server has been running smoothly for years. I'm running a Dragon v1.1 system. Can anyone offer any suggestions? |
Author: | Too Many Secrets [ Sat Aug 29, 2009 11:19 pm ] |
Post subject: | |
I was getting some of the symptoms you discribed, the hang at Video, etc. Haven't seen the problem since I changed my fstab NFS mounts to the below. YMMV Code: nfs rsize=8192,wsize=8192,soft,nfsvers=3
|
Author: | MrFahrenheit [ Sun Aug 30, 2009 4:01 pm ] |
Post subject: | |
I tried that setting and still had the same problem. Thanks for the suggestion though. Any other ideas? |
Author: | Too Many Secrets [ Mon Dec 14, 2009 10:02 pm ] |
Post subject: | |
OK, I'm seeing this again. anyone come up with a fix? |
Author: | graysky [ Tue Dec 15, 2009 2:30 am ] |
Post subject: | |
Dunno about your problem. Here is my setup: MBE: /etc/exports Code: /myth/video 192.168.1.5(rw) #exports to FE FE: /etc/fstab Code: 192.168.1.4:/myth /myth/exports nfs defaults,auto,noatime 0 0
|
Author: | uteck [ Tue Dec 15, 2009 7:27 pm ] |
Post subject: | |
Do you have any switches between the client and NFS? I sometimes have this problem and it is always one of two things; either the cats got behind the FE and pulled the cat5 cable out from the box (it's a 12 inch length and the clip is busted, but I am too lazy to replace it), or one of the switches between things barfed and needs a reboot. |
Author: | poflynn [ Tue Dec 15, 2009 9:56 pm ] |
Post subject: | |
I mount /myth from a central FS (OpenSuSE based named 'theworld'). Haven't had any problems since I started a few months ago. Here is my fstab excerpt, dunno if this is of help. FE fstab: Code: theworld:/bigfiles/mythfiles /myth nfs defaults,nolock,auto,noatime 0 0
|
Author: | MrFahrenheit [ Sat Dec 19, 2009 3:27 pm ] |
Post subject: | |
The switch between my server and client is fine. Too many secrets, what version of NFS server are you using? Is it an older one? |
Author: | Too Many Secrets [ Sat Dec 19, 2009 3:41 pm ] |
Post subject: | |
MrFahrenheit wrote: The switch between my server and client is fine. Too many secrets, what version of NFS server are you using? Is it an older one?
idk, whatever comes with R6. Code: nfsstat
Server rpc stats: calls badcalls badauth badclnt xdrcall 138479 0 0 0 0 Server nfs v3: null getattr setattr lookup access readlink 0 0% 2776 2% 7 0% 20829 15% 8944 6% 1991 1% read write create mkdir symlink mknod 2448 1% 83446 60% 16 0% 0 0% 5596 4% 0 0% remove rmdir rename link readdir readdirplus 2650 1% 0 0% 0 0% 0 0% 130 0% 428 0% fsstat fsinfo pathconf commit 645 0% 0 0% 0 0% 8565 6% Client rpc stats: calls retrans authrefrsh 291140 0 0 Client nfs v3: null getattr setattr lookup access readlink 0 0% 74769 25% 7 0% 5943 2% 4614 1% 378 0% read write create mkdir symlink mknod 118962 40% 72763 24% 9 0% 0 0% 0 0% 0 0% remove rmdir rename link readdir readdirplus 3 0% 0 0% 0 0% 0 0% 0 0% 5033 1% fsstat fsinfo pathconf commit 12 0% 6 0% 3 0% 8637 2% |
Author: | MrFahrenheit [ Wed Feb 10, 2010 2:29 pm ] |
Post subject: | |
I've found that using autofs to mount the NFS share seems to hide the problem somewhat. It still happens occasionally, but not nearly as often as before. |
Author: | Too Many Secrets [ Wed Feb 10, 2010 7:22 pm ] |
Post subject: | |
MrFahrenheit wrote: I've found that using autofs to mount the NFS share seems to hide the problem somewhat. It still happens occasionally, but not nearly as often as before. Can you show me an example of usage?
|
Author: | Ozdemon [ Thu Feb 11, 2010 2:24 pm ] |
Post subject: | Second that |
Me too please? |
Author: | MrFahrenheit [ Thu Feb 11, 2010 10:19 pm ] |
Post subject: | |
Here's how I got autofs up: First, install it from pacman Code: sudo pacman -S autofs Add the module: Code: sudo modprobe autofs4 To get the service to start at boot you have to add autofs4 to the MODULES list in /etc/rc.conf. You also need to use add_service: Code: sudo add_service.sh autofs Now autofs will start up when you boot the computer. You need to edit the auto.master file to add a mountpoint. I use /- so that I can specify the exact path in the auto.myth file. So I have the following line in my /etc/autofs/auto.master file: Code: /- /etc/autofs/auto.myth This tells autofs to use the auto.myth file for mounting My /etc/autofs/auto.myth file looks like this, you'll have to substitute your own mount information. Code: /myth/gallery -rw,hard,intr,noatime,async 192.168.1.200:/pictures /myth/video -rw,hard,intr,noatime,async 192.168.1.200:/videos /myth/music -rw,hard,intr,noatime,async 192.168.1.200:/music after setting up the config files, restart autofs: Code: sudo sv restart autofs
Again, this only masks the bigger problem of the nfs clients hanging. The mounts will still hang occasionally, just not as often as before. I'm still looking for information on what is causing the problem. |
Author: | MrFahrenheit [ Thu Feb 11, 2010 10:37 pm ] |
Post subject: | |
From what I can gather reading bug reports and message board postings, it looks like the problem is in the kernel and might be fixed in 2.6.30 (linhes currently runs 2.6.28 ) Relevent posts are here: http://bugzilla.kernel.org/show_bug.cgi?id=11061 and here: http://www.kernel.org/pub/linux/kernel/v2.6/snapshots/patch-2.6.29-rc8-git1.log I don't know how to update the kernel on my mythtv box to find out if this fixes the problem. Could someone explain to me how I can do that? |
Author: | grg3 [ Sun Feb 14, 2010 12:08 pm ] |
Post subject: | |
I am experiencing this problem also. I used to be able to setup nfs and forget it, but now I cannot rely on it to start and stay up. I try to restart nfslock and netfs and sometimes that works and sometimes it doesn't. Anyone have any ideas how to make this service more reliable? |
Page 1 of 2 | All times are UTC - 6 hours |
Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |