[Dovecot] Problems with dovecot using Maildir on JFS.
Howdy,
I have dovecot installed on CentOS (rhel3 clone), and I'm using Dag's dovecot package.
I have postfix setup to deliver to Maildir, in /home.
The /home volume was formatted with JFS.
In this setup, both Outlook and Thunderbird would not show any new mail unless they were completely shutdown and restarted.
I have moved /home to an ext3 formatted and all is well.
Anyone have any insight on this?
Thanks,
jrw
On Fri, 2005-02-04 at 13:36 -0500, Jacob Robert Wilkins wrote:
I have postfix setup to deliver to Maildir, in /home.
The /home volume was formatted with JFS.
In this setup, both Outlook and Thunderbird would not show any new mail unless they were completely shutdown and restarted.
I have moved /home to an ext3 formatted and all is well.
Anyone have any insight on this?
I already replied to this in IRC, but for others too:
JFS doesn't update directory's mtime when files are added, removed or renamed in it. So Dovecot can't know when the maildir has changed without constantly reading its contents. With Linux's dnotify this could be kind of worked around, but I'm not really interested about doing that.
On 02/09/2005 02:15:18 PM, Timo Sirainen wrote:
On Fri, 2005-02-04 at 13:36 -0500, Jacob Robert Wilkins wrote:
I have postfix setup to deliver to Maildir, in /home.
The /home volume was formatted with JFS.
In this setup, both Outlook and Thunderbird would not show any new mail unless they were completely shutdown and restarted.
I have moved /home to an ext3 formatted and all is well.
Anyone have any insight on this?
I already replied to this in IRC, but for others too:
JFS doesn't update directory's mtime when files are added, removed or renamed in it.
Really? I figured that wouldn't be difficult to fix in the kernel, so I looked
at the source (linux-2.6.11-rc2/fs/jfs/namei.c).
The parent mtime _is_ updated (dip->i_ctime = dip->i_mtime = CURRENT_TIME;) in
jfs_create(), jfs_mkdir(), jfs_rmdir(), jfs_unlink(), jfs_rename() + mtime is
changed in old_dir and new_dir for rename...
So what's the story here? Willem Riede.
On Wed, 9 Feb 2005, Timo Sirainen wrote:
JFS doesn't update directory's mtime when files are added, removed or renamed in it.
I'm curious - just when does it update a directory's mtime?
-- Charlie
A: Because we read from top to bottom, left to right. Q: Why should i start my reply below the quoted text?
On 02/09/2005 02:15:18 PM, Timo Sirainen wrote:
JFS doesn't update directory's mtime when files are added, removed or renamed in it. So Dovecot can't know when the maildir has changed without constantly reading its contents. With Linux's dnotify this could be kind of worked around, but I'm not really interested about doing that.
[wriede@serve ~]$ mount | grep jfs /dev/mapper/VolGroup00-LogVol01 on /home type jfs (rw) [wriede@serve ~]$ mkdir try [wriede@serve ~]$ stat -c%y try 2005-02-12 10:27:30.923695153 -0500 [wriede@serve ~]$ date Sat Feb 12 10:28:25 EST 2005 [wriede@serve ~]$ touch try/afile [wriede@serve ~]$ stat -c%y try 2005-02-12 10:28:37.978676796 -0500 [wriede@serve ~]$ date Sat Feb 12 10:28:48 EST 2005 [wriede@serve ~]$ mv try/afile try/somethingelse [wriede@serve ~]$ stat -c%y try 2005-02-12 10:29:33.456596795 -0500 [wriede@serve ~]$ date Sat Feb 12 10:29:43 EST 2005 [wriede@serve ~]$ rm try/somethingelse [wriede@serve ~]$ stat -c%y try 2005-02-12 10:29:51.707964720 -0500 [wriede@serve ~]$ date Sat Feb 12 10:30:08 EST 2005
[wriede@serve ~]$ man stat NAME stat - display file or filesystem status ... %y Time of last modification
Comments? Willem Riede.
On Sat, 2005-02-12 at 15:38 +0000, Willem Riede wrote:
JFS doesn't update directory's mtime when files are added, removed or renamed in it. So Dovecot can't know when the maildir has changed without constantly reading its contents. With Linux's dnotify this could be kind of worked around, but I'm not really interested about doing that.
[wriede@serve ~]$ mount | grep jfs /dev/mapper/VolGroup00-LogVol01 on /home type jfs (rw) ... Comments? Willem Riede.
So, does Dovecot+Maildir work properly with it?
I'm pretty sure I tested myself at some point that JFS didn't update it. Maybe there are different versions of it?
If the problem isn't mtime, I can't really think of what it could be. Guess I should build jfs support to my kernel some day.
On 02/12/2005 11:58:23 AM, Timo Sirainen wrote:
On Sat, 2005-02-12 at 15:38 +0000, Willem Riede wrote:
JFS doesn't update directory's mtime when files are added, removed or renamed in it. So Dovecot can't know when the maildir has changed without constantly reading its contents. With Linux's dnotify this could be kind of worked around, but I'm not really interested about doing that.
[wriede@serve ~]$ mount | grep jfs /dev/mapper/VolGroup00-LogVol01 on /home type jfs (rw) ... Comments? Willem Riede.
So, does Dovecot+Maildir work properly with it?
Actually, I'm still on mbox, but converting to Maildir is on my to-do list, so I can't say (yet).
I'm pretty sure I tested myself at some point that JFS didn't update it. Maybe there are different versions of it?
If you google for "jfs mtime patch linux" you can find patches to have mtime
updated at the right points, so I guess it was broken once, so maybe your test
was a long time ago?
If the problem isn't mtime, I can't really think of what it could be. Guess I should build jfs support to my kernel some day.
And I'll report as and when I find the time to experiment with Maildir on JFS.
Regards, Willem Riede.
participants (4)
-
Charlie Brady
-
Jacob Robert Wilkins
-
Timo Sirainen
-
Willem Riede