Solved

NFS crashes

Posted on 2007-03-19
7
242 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
Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

 
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

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!

Question has a verified solution.

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

In order for businesses to be compliant with certain information security laws in some countries, you need to be able to prove that a user (which user it was becomes important to the business to take action against the user after an event has occurr…
Creating a Samba server for a small office. Ubuntu Linux and Samba can breathe new life into a retired PC and save an office money on new hardware/software. Our example server will have two hard disks, one exclusively for storing shared data. …
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

749 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