Some of you all may have noticed the webserver bouncing a few times today - I was changing out hardware, and threw in upgrades for Apache and Postgres while I was at it.
FreeBSD 6.x + courier-imap + fam = hatred. I frobbed a few things semi-randomly trying to get it to work, but here's a rough recipe if you want fam to consume 6-10% of your CPU time:
You probably need rpcbind_enable="YES" in your /etc/rc.conf file. You definitely need
sgi_fam/1-2 stream rpc/tcp wait root /usr/local/bin/fam fam
in your /etc/inetd.conf, and you'll also need to tell rc.conf to run inetd. You'll need "sgi_fam 391002 # file alteration monitor" in your /etc/rpc file - this was already there on my 6.2 installation. One of the knobs I frobbed was to allow the machine to run mountd (mountd_enable="YES" in rc.conf). Otherwise, you get messages like this:
Feb 12 18:40:12 hostname imapd-ssl: Error: Input/output error
Feb 12 18:40:12 hostname imapd-ssl: Check for proper operation and
Feb 12 18:40:12 hostname imapd-ssl: of the File Access Monitor daemon (famd).
Feb 12 18:40:15 hostname imapd-ssl: malloc: Input/output error
Feb 12 18:40:15 hostname imapd-ssl: Failed to create cache file: maildirwatch
Anyway, mail was up and working again pretty quickly, and I had the webserver stuff mostly sorted out a couple of hours ago, the rest has been making MT work again, which mostly involved waiting for things to compile. I had been thinking about just installing every package that had been installed on the old server, but I wanted to clean them up a bit. So much for that - installing p5-XML-Atom installed 22 other ports, and I won't even talk about ImageMagick. I still have some more work to do - I had some test stuff going that's still busted, but that's for another day.
Oh, and I found the easiest way to move my postgres DB for MT was:
Back up MT database:
pg_dump -C -f mtbackup -F c dbname
createuser useridformovabletype
(give it db creation privs)
createdb empty
pg_restore -C -d empty -F c mtbackup