I'm looking for some help with an nfs error that is filling our logs. I get a constant stream of these messages: Jul 8 10:47:08 servername dovecot: [ID 107833 mail.error] IMAP(username): nfs_flush_file_handle_cache_dir: rmdir(/var/mail) failed: Device busy I have two dovecot IMAP servers. All mailboxes are NFS mounted. The INBOX is /var/mail and the rest are in /home/<user>/mail. It looks like work was done on this back in January: http://www.dovecot.org/list/dovecot-cvs/2008-January/010638.html And again in February: http://hg.dovecot.org/dovecot-1.1/rev/258477a3f1e7 Was a there another fix that I missed or is anybody else is still seeing the same issue? Thanks, Hans
Hans Wunsch wrote:> I'm looking for some help with an nfs error that is filling our logs. I > get a constant stream of these messages: > > Jul 8 10:47:08 servername dovecot: [ID 107833 mail.error] > IMAP(username): nfs_flush_file_handle_cache_dir: rmdir(/var/mail) > failed: Device busyWhat OS are your dovecot and NFS servers running? Is /var/mail (or whatever it may be symlinked to) an NFS mountpoint?
Message: 7 Date: Wed, 09 Jul 2008 09:30:13 -0400 From: Ben Winslow <rain at bluecherry.net> Subject: Re: [Dovecot] nfs_flush errors To: dovecot at dovecot.org Message-ID: <4874BD65.1010905 at bluecherry.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Hans Wunsch wrote:> > I'm looking for some help with an nfs error that is filling our logs. I > > get a constant stream of these messages: > > > > Jul 8 10:47:08 servername dovecot: [ID 107833 mail.error] > > IMAP(username): nfs_flush_file_handle_cache_dir: rmdir(/var/mail) > > failed: Device busy >>What OS are your dovecot and NFS servers running? Is /var/mail (or >whatever it may be symlinked to) an NFS mountpoint?We're on Solaris 10x86 mounting /var/mail from another Solaris 10 hosts via NFS4. Yes, /var/mail is an NFS. These are the mount options: mayor.ics.uci.edu:/mail_tank_001/spools - /var/mail nfs - yes rw,nosuid,hard,intr,bg,noac Thanks, Hans.
On Tue, 2008-07-08 at 11:17 -0700, Hans Wunsch wrote:> I'm looking for some help with an nfs error that is filling our logs. I > get a constant stream of these messages: > > Jul 8 10:47:08 servername dovecot: [ID 107833 mail.error] > IMAP(username): nfs_flush_file_handle_cache_dir: rmdir(/var/mail) > failed: Device busy > > I have two dovecot IMAP servers. All mailboxes are NFS mounted. The > INBOX is /var/mail and the rest are in /home/<user>/mail.I guess the problem is dotlocking. They probably go away with the attached patch? But that also could make the locking slower if the cache doesn't get flushed and the cached stat values keep getting returned. -------------- next part -------------- A non-text attachment was scrubbed... Name: mbox-noflush.diff Type: text/x-patch Size: 694 bytes Desc: not available URL: <http://dovecot.org/pipermail/dovecot/attachments/20080712/0c1a4938/attachment-0004.bin> -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 197 bytes Desc: This is a digitally signed message part URL: <http://dovecot.org/pipermail/dovecot/attachments/20080712/0c1a4938/attachment-0005.bin>
Timo Sirainen wrote:> On Tue, 2008-07-08 at 11:17 -0700, Hans Wunsch wrote: > >> I'm looking for some help with an nfs error that is filling our logs. I >> get a constant stream of these messages: >> >> Jul 8 10:47:08 servername dovecot: [ID 107833 mail.error] >> IMAP(username): nfs_flush_file_handle_cache_dir: rmdir(/var/mail) >> failed: Device busy >> >> I have two dovecot IMAP servers. All mailboxes are NFS mounted. The >> INBOX is /var/mail and the rest are in /home/<user>/mail. >> > > I guess the problem is dotlocking. They probably go away with the > attached patch? But that also could make the locking slower if the cache > doesn't get flushed and the cached stat values keep getting returned. > >Sorry for taking so long to get back on this one. But it seems the errors persist with the patch: Jul 21 11:10:44 barrelv1 dovecot: [ID 107833 mail.error] IMAP(hans): nfs_flush_file_handle_cache_dir: rmdir(/var/mail) failed: Device busy Jul 21 11:10:44 barrelv1 dovecot: [ID 107833 mail.error] IMAP(hans): nfs_flush_file_handle_cache_dir: rmdir(/var/mail) failed: Device busy Other ideas? Thanks, Hans.