Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 05 Apr 2011 09:54:58 -0700
From:      Chuck Swiger <cswiger@mac.com>
To:        perryh@pluto.rain.com
Cc:        freebsd-net Net <freebsd-net@freebsd.org>
Subject:   Re: 7-STABLE NFS: fatal: "select lock: Permission denied"
Message-ID:  <9708F193-E78D-4B26-A4F9-A2CBCC1D90CE@mac.com>
In-Reply-To: <4d9acc53.w52H7UX61%2B6sZ3rH%perryh@pluto.rain.com>
References:  <1359778820.2757108.1301963093210.JavaMail.root@erie.cs.uoguelph.ca> <AB2EA7D5-2EBF-44E2-BEC6-DDFB0772F5C2@mac.com> <4d9acc53.w52H7UX61%2B6sZ3rH%perryh@pluto.rain.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Apr 5, 2011, at 1:01 AM, perryh@pluto.rain.com wrote:
> Chuck Swiger <cswiger@mac.com> wrote:
> 
>> It's fairly common to scale up a mail infrastructure from one box
>> handling both SMTP and IMAP (or POP) to a SMTP-only box writing to
>> NFS-mounted user mailboxes, and have one or more dedicated reader
>> boxes which only run IMAP/POP daemons which access that same NFS
>> filesystem holding the user mailboxes.
> 
> Yikes!  The _proper_ way to scale up from one box to multiple goes
> something like this:
[ ... ]
> mail.<domain> becomes a multiplexer, so that the outside world can
> send to <user>@mail.<domain> (or simply <user>@<domain> if you
> prefer) without needing to know about the internal structure.  The
> multiplexing can be very simple, and thus very fast, by doing a
> table-lookup based on the first character of <user>.  There's no
> need for NFS anywhere in the setup.

The problems with this are that each individual reader box has no failover capabilities if something goes down (although you can have standbys and restore from backups), and the convention for allocating the pool of users onto boxes is relatively static, which means you don't distribute clients evenly onto the servers to even balance load as that changes dynamically over time.

Growing a mail infrastructure from one to two to many boxes is complex.  People tend to take advantage of the resources they have; if you have an EMC or NetApp filer handy, it's might well be reasonable to use it, especially if you can run with a mailbox format that doesn't require NFS locking.

Regards,
-- 
-Chuck




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?9708F193-E78D-4B26-A4F9-A2CBCC1D90CE>