[Samba] NFS locking ...maybe?
dlmeyer at uiuc.edu
Thu May 24 19:54:13 GMT 2007
First off, I'll save the devs the trouble/time -- they'll say that
re-sharing an NFS-mounted resource with Samba is not supported and is
generally a bad idea. (Some might even go so far as to say a
"really bad idea"... ;-)
That said, I've done this successfully. Somewhat. It worked fine -
until we started putting real users on the system and adding groups
to fill out the security model. Then we discovered the "16
groups/user" hard limit built into NFS. That alone sunk the effort...
We saw a similar behavior -- users could not write/create new files,
but could generally do everything else. The failure to write/create
manifested as a permission denied error, and not a locking error,
however. If you are seeing a locking error, you may have a different problem.
At 12:07 PM 5/24/2007, Ashley M. Kirchner wrote:
> Hi folks,
> After some more trial and error, I was able to get a bit further
> in the game with the permission issues I had (previous message was
> titled 'Samba permissions...) Now I'm able to get onto the system,
> browse and read/copy/delete files off of the shares. What I can't
> do is put stuff on because I get a locking error.
> The setup is as follows:
> Server 1 --> exports /storage/ftpusers
> Server 2 --> NFS mounts (autofs) the above export as /mnt/ftpusers
> At the same time, it also shares that mount through samba
> Server 3 (which is a WinBox) then accesses the above share.
> What I CAN do:
> From Server 3, I can go into network places, click on the samba
> share and get on it. I can browse everything that's on the share
> (which translates to everything that's on Server 1 in
> /storage/ftpusers/ ) I can copy files OFF of that share, and I can
> delete files off of that share.
> What I CANNOT do:
> From Server 3, I cannot PUT any files on that share. I get an
> error message that says:
> "Cannot copy testfile.txt: The process cannot access the file
> because another process has locked a portion of the file."
> I know with absolute certainty that there is no actual program
> trying to access the file on either Server 2 or Server 1, which
> leads me to believe that maybe NFS locking is having something to do with it.
>Somewhere in the mounting of the NFS, or the share through samba,
>things get locked. What I don't understand is, why can I read,
>copy, AND delete from the share, but I can't PUT anything.
> The NFS mount is done with rw, as is the Samba share. I don't
> think it would've allowed me to delete files otherwise, but I could be wrong.
> Anyone have any ideas why I'm getting locking issues? And which
> one is the culprit?
>W | It's not a bug - it's an undocumented feature.
> Ashley M. Kirchner <mailto:ashley at pcraft.com> . 303.442.6410 x130
> IT Director / SysAdmin / Websmith . 800.441.3873 x130
> Photo Craft Imaging . 3550 Arapahoe Ave. #6
> http://www.pcraft.com ..... . . . Boulder, CO 80303, U.S.A.
>To unsubscribe from this list go to the following URL and read the
Don Meyer <dlmeyer at uiuc.edu>
Network Manager, ACES Academic Computing Facility
Technical System Manager, ACES TeleNet System
UIUC College of ACES, Information Technology and Communication Services
"They that can give up essential liberty to obtain a little
deserve neither liberty or safety." -- Benjamin Franklin, 1759
More information about the samba