Solved

NFS crashes

Posted on 2007-03-19
7
237 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
  • 4
  • 3
7 Comments
 
LVL 5

Expert Comment

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

Author Comment

by:JeffBeall
Comment Utility
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
Comment Utility
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
Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

 
LVL 1

Author Comment

by:JeffBeall
Comment Utility
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 500 total points
Comment Utility
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
Comment Utility
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
Comment Utility
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

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

Users are often faced with high disk consumption without really knowing where the largest amount of data resides. Disk Usage Analyzer (aka Baobab) is is a graphical, menu-driven application to analyse disk usage in any Gnome environment and can e…
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…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

763 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

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now