[Samba] Re: locking.tdb: expand_file ftruncate to 8192 failed (Permission denied)

Axel Thimm Axel.Thimm at ATrpms.net
Thu Sep 22 15:36:51 GMT 2005


On Thu, Sep 22, 2005 at 08:19:18AM -0700, Jeremy Allison wrote:
> On Thu, Sep 22, 2005 at 10:15:08AM +0200, Axel Thimm wrote:
> > On Wed, Sep 21, 2005 at 04:34:32PM -0700, Jeremy Allison wrote:
> > > Why are you putting the locking db on a GFS filesystem anyway. That's
> > > madness !
> > 
> > The reason is to have a poor-man's-clustered-samba by placing lock and
> > private dir on a common share and have the relocated smbd/nmbd pairs
> > access them. E.g. relocating within the cluster is effectively like
> > restarting smbd/nmbd on a node.
> 
> That's never going to work (at least with acceptable speed). Talk
> to Volker for details...

We found the speed is very acceptable, its is faster than NFS
relocation and counts a couple of seconds, no more than a simple
non-clustered samba restart.

But it also isn't as transparent as we would wish it to be, as a TCP
RST doesn't have the cifs client retry as NFS does, which fortunately
is sometimes masked away in higher application levels like Office
saving dialogs, but still breaks a simple copy operation.

Anyway it does serve its purpose quite well, if it were not for the
mentioned bug in GFS. We now have several instances of smdb/nmbd pairs
freely floating within the cluster.

> > > As I said, I bet GFS isn't POSIX complient. Don't put locking
> > > tdb's on anything but local filesystems.
> > 
> > Well, GFS claims to be POSIX and local-like in any way. Maybe it is
> > just a bug in GFS? Does POSIX ensure that you can open an fd under
> > some user and not lose access right to the fd when dropping
> > priviledges?
> 
> Yes. That's why we wrote it this way. It's a bug in GFS. Open it
> with RedHat.

Already done so, the bugzilla link was in my previous mail :)

Thanks for the test case, it helped cornering the GFS bug.
-- 
Axel.Thimm at ATrpms.net
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.samba.org/archive/samba/attachments/20050922/289de4ef/attachment.bin


More information about the samba mailing list