i have a samba4 server that holds my clients outlook pst files, if the outlook client or the machine crashes i must go to the server to kill the PID manually.

i saw there was "reset on zero vc =yes" parameter that can solve the problem but that is no longer supported in samba4 although it is in the man pages!!!?

any idea guys?

  • 3
    You shouldn't be storing PST files on a network share... especially using a non-Windows server. – ewwhite Dec 8 '12 at 15:00
  • 1
    @ewwhite my question is not about what i should or should not do, this is an existing situation. – BluesRhythm Dec 9 '12 at 0:03
  • 1
    great question! let me know when you get an answer. – Alex Gordon Dec 13 '12 at 23:22

That setting does not do what you think it might, so not a problem it is gone.

It seems that Samba itself, because it is running the CIFS protocol, does not have a mechanism to differentiate between "client went away and is coming back" and "client just plain went away." Which is why Samba will continue with the locks you are encountering after client machines crash, etc.

It appears some folks have had luck tweaking the socket-level timeouts for Samba, specifically SO_KEEPALIVE, to solve this problem: http://samba.2283325.n4.nabble.com/Auto-Removal-of-Straggling-File-locks-due-to-Ungraceful-Client-Disconnects-td3171543.html.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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