[Dovecot] nfs locking issues...
John Gray
gray at agora-net.com
Sat Mar 1 23:54:42 EET 2008
Just for the record, I took Timo's suggestion, and went to just using
dotlocks. The problem hasn't return (at least not yet).
John
John Gray wrote:
> The locking issue is on the mbox files. When it happens, I get a
> bunch procmail processes backing up waiting for the lock.
>
> The filesystem is reiserfs (version 3).
>
> The NFS server is debian sarge box (which will be going to etch this
> weekend). And its using the nfs-kernel-server.
>
> The dead locks appear to be the same nfs client machine. Though I'm
> not dead sure on it. The mail delivery does come in on several
> machines. And the imap/pop to just one for a given user.
>
> I'm not seeing any lockd messages. I'll look into making sure its
> running.
>
> I'll try to get an strace if I see it again. And I'll try the dotlock
> suggestion.
>
> Thanks Timo and Aaron!
>
> John
>
> Timo Sirainen wrote:
>> On Tue, 2008-02-26 at 11:03 -0500, John Gray wrote:
>>
>>> I run into lock deadlocks if I run dovecot over nfs
>>>
>>
>> As Aaron asked, it would be useful to strace the process to see what
>> exactly is waiting: mbox file or index files, dotlocking or fcntl
>> locking.
>>
>>
>>> Sometimes I can kill all the processes, remove the dot locks, and
>>> recover. Something I need to reboot the nfs server to recover.
>>>
>>
>> Maybe you could just try disabling fcntl locking for index files and see
>> how it works then:
>>
>> lock_method = dotlock
>>
>> Also if that doesn't help, try how mboxes work with only dotlocking:
>>
>> mbox_read_locks = dotlock
>> mbox_write_locks = dotlock
>>
>
--
John Gray gray at agora-net.com
AgoraNet, Inc. (302) 224-2475
314 E. Main Street, Suite 1 (302) 224-2552 (fax)
Newark, De 19711 http://www.agora-net.com
More information about the dovecot
mailing list