Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a somewhat less than ideal situation that requires me to mount a file system over NFS and then turn around and share that same file system over SAMBA to the rest of the users on my network.

---------                ------------                        ------------------
-   NAS - <----NFS-----> -  Server  - <------ SAMBA -------> - Windows Client -
---------                ------------                        ------------------

I've had no problems accessing the mount through SFTP or just moving files around from the local disc to the mount. When someone tries to copy a file out to the mount through windows file sharing explorer becomes unresponsive and eventually just fails. Even browsing through the directories out there can cause explorer to hang quite frequently.

I've seen some articles that suggest there might be a problem with locking but whenever I try to change those settings (locking, oplocks, kernel oplocks, static locking, etc...) either there's no difference in the behavior the samba becomes completely unresponsive and doesn't produce an error log.

share|improve this question
up vote 0 down vote accepted

I appear to have resolved my issue. The problem was in fact a locking issue. I'm still not sure why I was unable to turn off locking in SAMBA (although that appears it might be an issue with debian specifically) but turning off locking on the NFS mount solved my problem.

mount -t nfs /mnt/path -o nolock
share|improve this answer
-o nolock worked perfectly with debian stable (lenny), thanks for the tip! – user70006 Feb 8 '11 at 20:16

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.