Solved

NFS crashes

Posted on 2007-03-19
7
238 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
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
Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

 
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 500 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

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
VMware P-to-V Debian Linux fails at 98% 15 130
Linux Search 3 66
Can't send mail from centos 7 5 94
Missing Apache mod_DBD packages in Centos 7 2 65
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…
The purpose of this article is to fix the unknown display problem in Linux Mint operating system. After installing the OS if you see Display monitor is not recognized then we can install "MESA" utilities to fix this problem or we can install additio…
I designed this idea while studying technology in the classroom.  This is a semester long project.  Students are asked to take photographs on a specific topic which they find meaningful, it can be a place or situation such as travel or homelessness.…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

932 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

11 Experts available now in Live!

Get 1:1 Help Now