1 Nov 2004 17:55
Re: IMAP server clustering ...
<linux-cluster <at> spam.dragonhold.org>
2004-11-01 16:55:21 GMT
2004-11-01 16:55:21 GMT
On Mon, Nov 01, 2004 at 10:25:03AM -0700, Michael Gale wrote: > > I was reading up on Courier IMAP which use dot-locking with support NFS > mounted maildirs. > > So would that application not take care of the locking ? No, it's operating at the wrong level. (starting from nothing cached) Think about it this way - you create a new file on the disk (say the lock file). The other machine then tries to access the directory. It scans down from the root of the partition (successfully, since nothing has changed), and gets to the directory. This finds the lockfile. So far so good. Now the 1st machine deletes the lockfile. However, the 2nd machine still has this cached as locked - and therefore doesn't notice. -- Other example. Both machines read the directory (and it's not locked). Next machine 1 locks it. Even if reiserfs writes this lock back to disk (which it will eventually), the 1st machine doesn't know, since it still has a cached version of the directory which shows that the file doesn't exist. Now both can lock (successfully as far as they are concerned).(Continue reading)
RSS Feed