procmail
[Top] [All Lists]

Re: BOGUS and lockfile wierdness when under load

2004-09-30 13:41:48
At 21:04 +0100 9/30/04, Martin McCarthy wrote:
> We sent a couple of test messages and received some console errors from afs:
 byte-range lock/unlock ignored; make sure that no one else is running
 this prog.

My understanding is that lockf() does not work with AFS and this error
is what you get when you try to use it over AFS.

Ok.

 > I was able to modify the build to allow autoconf to run the locking
 test on the AFS directory as well as the local ones and it added
 lockf().

It looks like it is erroneously determining that lockf() works and so
it's using it.  You might try modifying the build again to not use
lockf().

Prior to using the autoconf test, as I mentioned, it was being hardwired to use just fcntl() and we were seeing the same messages. Apparently that doesn't work either.

I am not sure how we are going to find out what will do the right thing but we will work on it some more.

 > Renamed bogus  "/afs/@cell/common/spool/mail/MailDirs/nlcb/nlcd.lock"
 into "/afs/@cell/common/spool/mail/MailDirs/nlcb/BOGUS.nlcd.QAQwBB"

 Note that it is renaming the lock file here. (?)

Yeah - the man page is a little misleading in that it says the "Renamed
bogus..." error means that it faund problems with the user's mailbox.
It doesn't mention that it gives exactly the same message if there's a
problem with permissions or ownership of the lockfile.

Ok.

So this is probably consistent with lockf() doing the "wrong thing" over
AFS.  I know almost nothing about AFS so I won't make a guess as to what
the "wrong thing" might be.

Well, I am not sure that I care what the "wrong thing" is, anyway. Just need to find out what the right thing is. :-/ I am also curious as to why it only seems to happen during high load situations.

Time to start scouring the web I guess.

Hope that's some help, even if incomplete.

Yep. At least it's a clue as to where to start looking and it clears up the BOGUS behavior as well.

Thanks,
-David-

--
David R. Steiner                               
david(_dot_)r(_dot_)steiner(_at_)dartmouth(_dot_)edu
UNIX System Manager                            Phone:  603.646.3127
Dartmouth College                              Fax:     603.646.1041

____________________________________________________________
procmail mailing list   Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

<Prev in Thread] Current Thread [Next in Thread>