Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

NFS crashes

Posted on 2007-03-19
7
Medium Priority
?
250 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
Free Backup Tool for VMware and Hyper-V

Restore full virtual machine or individual guest files from 19 common file systems directly from the backup file. Schedule VM backups with PowerShell scripts. Set desired time, lean back and let the script to notify you via email upon completion.  

 
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

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

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

After running Ubuntu some time, you will be asked to download updates for fixing bugs and security updates. All the packages you download replace the previous ones, except for the kernel, also called "linux-image". This is due to the fact that w…
In my business, I use the LTS (Long Term Support) versions of Linux. My workstations do real work, and so I rarely have the patience to deal with silly problems caused by an upgraded kernel that had experimental software on it to begin with from a r…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…

609 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