?
Solved

NFS crashes

Posted on 2007-03-19
7
Medium Priority
?
247 Views
Last Modified: 2013-12-06
i setup a nfs share using fedora core2 for some AIX and SUN cad machines a couple of months ago, and everything was working fine, recently ( about a week ago ) my nfs server started crashing, and i haven't been able to figure out the source of the problem. I looked in the /var/log/ directory to try and get some clues, but haven't had any luck. is there another location that might revel what the problem is?
0
Comment
Question by:JeffBeall
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 3
7 Comments
 
LVL 5

Expert Comment

by:mihaimm
ID: 18806673
It's rather strange you don't get anything relevant in the /var/log/messages file...
0
 
LVL 1

Author Comment

by:JeffBeall
ID: 18807588
I think I found what the problem is, just curious if anyone else has run into this, or if my theory sounds correct. I think the problem was I was sharing the same directory with NFS and SAMBA. Maybe that would have worked if I had some sort of file locking. I don’t know if lockd takes care of file locking, and if it does, in my setup lockd was reporting that it couldn’t monitor some of the NFS clients. I stopped the SAMBA service, and the crashing has stopped.  Any comments would be greatly appreciated since I would like to confirm or deny my suspicions .
0
 
LVL 5

Expert Comment

by:mihaimm
ID: 18807695
Aha... It may be related to this :).
In FC6 I had all sorts of problems because of this (like saving the file from an NFS mount and not seeing the changes on the SMB mount or even on the fs of the server until a looooong time has passed) however I never experienced crashes. I did gave up on sharing the same files via both rather quickly though...
0
Video: Liquid Web Managed WordPress Comparisons

If you run run a WordPress, you understand the potential headaches you may face when updating your plugins and themes. Do you choose to update on the fly and risk taking down your site; or do you set up a staging, keep it in sync with your live site and use that to test updates?

 
LVL 1

Author Comment

by:JeffBeall
ID: 18807802
Looks like there might be a pattern here. I just wish I knew for sure if lockd is supposed to lock files to avoid this problem. When my NFS server was crashing, I had to run fsck to fix corrupted files. That is why I thought there was a problem sharing the same directory in two different ways. Probably, two people accessed the same file in SAMBA and NFS.  The problem with this is I’m only speculating.  I wish I knew if I am correct.
0
 
LVL 5

Accepted Solution

by:
mihaimm earned 2000 total points
ID: 18807964
OK... lockd is supposed to lock files for the NFS server if configured: http://unixarticles.com/articles/8/1/NFS-and-The-Whole-Kitchen-Sink.

But!!! Samba checks the locking status of a file only if asked by the client (this should be the case but since noboby actually knows how *exactly* the locking mechanism works on Windows, it may happen that some clients simply forget to ask for locking). In order to force Samba to check for locks at all times you can set "strict locking = yes" in the configuration. However, according to http://www.samba.gr.jp/project/translation/2.2.5/projdoc/UNIX_INSTALL.html this may overstress the rpc.lockd process.

All I can say is that... if NFS and SMB are both configured to use lockd it *should* work.
0
 
LVL 1

Author Comment

by:JeffBeall
ID: 18808134
From what you are saying, I think I would rather be safe than sorry. I’m already sorry about all the crashing, that was a nightmare. Anyhow, I’m going to just keep the, ” don’t share the same directory with NFS and SAMBA “ theory. I guess I’ll try NFS and FTP, and hope to God there isn’t a problem with that.  Thanks for the help and input.
0
 
LVL 5

Expert Comment

by:mihaimm
ID: 18808747
BTW... you could mount the NFS share from windows (XP Pro, 2000, 2003): http://www.microsoft.com/technet/interopmigration/unix/sfu/default.mspx
0

Featured Post

Veeam Task Manager for Hyper-V

Task Manager for Hyper-V provides critical information that allows you to monitor Hyper-V performance by displaying real-time views of CPU and memory at the individual VM-level, so you can quickly identify which VMs are using host resources.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This document is written for Red Hat Enterprise Linux AS release 4 and ORACLE 10g.  Earlier releases can be installed using this document as well however there are some additional steps for packages to be installed see Metalink. Disclaimer: I hav…
1. Introduction As many people are interested in Linux but not as many are interested or knowledgeable (enough) to install Linux on their system, here is a safe way to try out Linux on your existing (Windows) system. The idea is that you insta…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…
Suggested Courses

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question