[Samba] samba & nfs...

jra at dp.samba.org jra at dp.samba.org
Thu Nov 28 19:25:01 GMT 2002


On Thu, Nov 28, 2002 at 05:02:24PM +0100, Stefan Nordlander wrote:
> Hi, I'm having problems with M$ Office files on an samba mounted fs.
> Here's the deal.
> 
> Server A is an NFS server holding the homes. (Irix 6.5.14)
> Server B is the Samba server (Samba 2.2.2, kernel oplocks = no, Irix
> 6.5.14)
> 
> The homes are nfs-mounted on the Samba server (autofs), and all is well
> until someone tries to open or create an Microsoft Office Document.
> I suppose it has something to do with the (bloody) ~$blahblah.doc files
> that are created by Office..
> The log.smbd gives:
> 
> [2002/11/28 14:05:54, 0] locking/posix.c:(667)
>   posix_fcntl_lock: WARNING: lock request at offset 2147483538, length 1
> returned
> [2002/11/28 14:05:54, 0] locking/posix.c:(669)
>   an No locks available error. This can happen when using 64 bit lock
> offsets
> [2002/11/28 14:05:54, 0] locking/posix.c:(670)
>   on 32 bit NFS mounted file systems.

Errr - I'd guess what's happening is what the error says :-).
And when I added that message I thought it'd be very clear :-(.

The kernel Samba is running on supports 64 bit fcntl locks,
however the underlying (NFS) filesystem that the files are
being shared from only supports 32 bit locks. Thus the lock
request is being denied.

If these files are only being accessed by Windows users (the
usual case for MS-Office files, unless you have OpenOffice
on IRIX) then you can turn off the mapping down to POSIX locking
by setting the parameter "posix locking = False". No harm done.

Jeremy.



More information about the samba mailing list