[Dovecot] dotlock timestamp trouble

Giorgenes Gelatti giorgenes at gmail.com
Tue Jan 27 21:05:02 EET 2009


Looks like bad news. :(

I've run nfstest to look for problems. The output is attached.
I'm not sure, but it looks like a bad nfs environment.

2009/1/25 Timo Sirainen <tss at iki.fi>

> 2.6.9 is old and there are several NFS bugs in older 2.6 kernels. So I'd
> try upgrading. I've really no idea what else could be the problem.
>
> On Fri, 2009-01-23 at 11:29 -0200, Giorgenes Gelatti wrote:
> > Is there any know issue about it on kernel 2.6.9 (centos)?
> > Any other mount options I could try?
> >
> > Thank you.
> >
> > 2009/1/21 Giorgenes Gelatti <giorgenes at gmail.com>
> >
> > > Dovecot is running on a linux machine (2.6 kernel).
> > > The nfs was mounted as:
> > > nfs rw,vers=3,proto=tcp,intr,nolock,noexec,rsize=8192,wsize=8192 0 0
> > >
> > > After your hint we added the "noac" flag:
> > > nfs rw,vers=3,proto=tcp,intr,nolock,noexec,noac,rsize=8192,wsize=8192 0
> 0
> > >
> > > But the error continues with differences of 120 and 60 seconds.
> > >
> > > Thanks for the reply,
> > > gpg
> > >
> > > 2009/1/20 Timo Sirainen <tss at iki.fi>
> > >
> > > On Tue, 2009-01-20 at 14:36 -0200, Giorgenes Gelatti wrote:
> > >> > Created dotlock file's timestamp is different than current time
> > >> (1232468644
> > >> > vs 1232468524): /path/to/dovecot.index.log
> > >> >
> > >> > The IT guy swears the clocks are sincronized.
> > >>
> > >> the difference in the above message is exactly 120 seconds. Are they
> all
> > >> 120 seconds?
> > >>
> > >> > I'm using dovecot 1.1.6 over NFS.
> > >> > Any thoughts?
> > >>
> > >> What OS are you using on the NFS clients? Perhaps this is a caching
> > >> issue, have you tried changing/disabling attribute cache timeouts?
> > >>
> > >
> > >
>
-------------- next part --------------
# ./nfstest 7070 /nfs/mail01ns03/arquivo
Listening for client on port 7070..
Connected: Acting as test server
Listening for client on port 7070..

# ./nfstest 10.235.200.126 7070 /nfs/mail01ns03/arquivo
Connected: Acting as test client
EIO errors happen on read()
 - fchown() returned ESTALE
O_EXCL appears to be working, but this could be just faked by NFS client
timestamps resolution: seconds

Testing file attribute cache..
Attr cache flush open+close: OK
Attr cache flush close+open: OK
Attr cache flush fchown(-1, -1): failed
Attr cache flush fchown(uid, -1): OK
Attr cache flush fchmod(mode): OK
Attr cache flush chown(-1, -1): failed
Attr cache flush chown(uid, -1): OK
Attr cache flush chmod(mode): OK
Attr cache flush rmdir(): failed
Attr cache flush rmdir(parent dir): failed
Attr cache flush dup+close: OK
Attr cache flush fcntl(shared): OK
Attr cache flush fcntl(exclusive): OK
Attr cache flush flock(shared): failed
Attr cache flush flock(exclusive): failed
Attr cache flush fsync(): failed
Attr cache flush fcntl(O_SYNC): failed
Attr cache flush O_DIRECT: failed

Testing data cache..
Data cache flush no caching: failed
Data cache flush open+close: failed
Data cache flush close+open: failed
Data cache flush fchown(-1, -1): failed
Data cache flush fchown(uid, -1): failed
Data cache flush fchmod(mode): failed
Data cache flush chown(-1, -1): failed
Data cache flush chown(uid, -1): failed
Data cache flush chmod(mode): failed
Data cache flush rmdir(): failed
Data cache flush rmdir(parent dir): failed
Data cache flush dup+close: failed
Data cache flush fcntl(shared): OK
Data cache flush fcntl(exclusive): OK
Data cache flush flock(shared): failed
Data cache flush flock(exclusive): failed
Data cache flush fsync(): failed
Data cache flush fcntl(O_SYNC): failed
Data cache flush O_DIRECT: OK

Testing write flushing..
Write flush no caching: failed
Write flush open+close: OK
Write flush close+open: OK
Write flush fchown(-1, -1): failed
Write flush fchown(uid, -1): OK
Write flush fchmod(mode): OK
Write flush chown(-1, -1): failed
Write flush chown(uid, -1): OK
Write flush chmod(mode): OK
Write flush rmdir(): failed
Write flush rmdir(parent dir): failed
Write flush dup+close: OK
Write flush fcntl(shared): OK
Write flush fcntl(exclusive): OK
Write flush flock(shared): failed
Write flush flock(exclusive): failed
Write flush fsync(): OK
Write flush fcntl(O_SYNC): failed
Write flush O_DIRECT: OK

Testing partial writing..
Failed at [0]

Testing file handle cache..
File handle cache flush no caching: failed
File handle cache flush open+close: failed
File handle cache flush close+open: failed
File handle cache flush fchown(-1, -1): failed
File handle cache flush fchown(uid, -1): OK
File handle cache flush fchmod(mode): OK
File handle cache flush chown(-1, -1): failed
File handle cache flush chown(uid, -1): OK
File handle cache flush chmod(mode): OK
File handle cache flush rmdir(): failed
File handle cache flush rmdir(parent dir): failed
File handle cache flush dup+close: failed
File handle cache flush fcntl(shared): failed
fcntl(setlk, write) failed: Bad file descriptor
File handle cache flush fcntl(exclusive): failed
File handle cache flush flock(shared): failed
File handle cache flush flock(exclusive): failed
File handle cache flush fsync(): failed
File handle cache flush fcntl(O_SYNC): failed
fcntl(/nfs/mail01ns03, O_DIRECT) failed: Invalid argument
File handle cache flush O_DIRECT: failed

Testing negative file handle cache..
Negative file handle cache flush no caching: failed
Negative file handle cache flush open+close: failed
Negative file handle cache flush close+open: failed
Negative file handle cache flush fchown(-1, -1): failed
Negative file handle cache flush fchown(uid, -1): OK
Negative file handle cache flush fchmod(mode): OK
Negative file handle cache flush chown(-1, -1): failed
Negative file handle cache flush chown(uid, -1): OK
Negative file handle cache flush chmod(mode): OK
rmdir(/nfs/mail01ns03/arquivo) failed: No such file or directory
rmdir(/nfs/mail01ns03/arquivo) failed: No such file or directory
Negative file handle cache flush rmdir(): failed
Negative file handle cache flush rmdir(parent dir): failed
Negative file handle cache flush dup+close: failed
Negative file handle cache flush fcntl(shared): failed
fcntl(setlk, write) failed: Bad file descriptor
Negative file handle cache flush fcntl(exclusive): failed
Negative file handle cache flush flock(shared): failed
Negative file handle cache flush flock(exclusive): failed
Negative file handle cache flush fsync(): failed
Negative file handle cache flush fcntl(O_SYNC): failed
fcntl(/nfs/mail01ns03, O_DIRECT) failed: Invalid argument
Negative file handle cache flush O_DIRECT: failed


More information about the dovecot mailing list