CIFS + NFS Locking Issue

csturgill at corporateone.coop csturgill at corporateone.coop
Thu Sep 13 18:21:31 GMT 2007


I am in need of some assistance for someone who has been there done that.

I have 2 Vsftpd servers that are NFS mounted to a single server.
This server in turn shares the users Vsftpd home directories via Samba.
We have tried many different options in regards to file locks in the
smb.conf file with no luck.
Everything we try results in there still being a file locking problem.
The problem occurs less than 5% of the time but when it does occur the file
in contention ends up corrupted.
The details are as follows, an ftp client uploads a file to Vsftpd,
While the file is being transmitted a Windows server sweeps through the
Samba file server for new files.
If it happens to grab the file while Vsftpd is writing to it the file gets
ripped out from under Vsftpd and the result is a corrupt file.
To make matters worse, for some reason Vsftpd reports back to the client
that the transmission was successful.

I need to know what the optimal settings are supposed to be in the smb.conf
while taking into considerations the scenario listed above.
I believe I have tried every possible combination of the options but I
truly believe there is a resolution to this problem that I am either
missing or not privy to.

I am running RHES 4 on all three of the Linux servers with Windows 2003
server acting as the automated file sweeping server. This is a proprietary
application and I have minimal control over its operations.
The client that is sending to Vsftpd is communicating with FTP over TLS and
is also proprietary. I have minimal control over how this client operates

Thank You in advance for assistance in resolving this issue.

Chad Sturgill
csturgill ~at~ corpone.org


-------------------------------------------------------------------------------------

NOTICE:  
This email message is for the sole use of the intended recipient(s) and may contain 
confidential and privileged information.  Any unauthorized review, use, disclosure 
or distribution is prohibited.  If you are not the intended recipient, please contact 
the sender by reply email and destroy all copies of the original message.

-------------------------------------------------------------------------------------


More information about the samba-technical mailing list