Moving Cyrus from one server to another
Dick Davies
rasputnik at hellooperator.net
Mon Nov 22 06:36:53 EST 2004
* Frank Reta <frank at lag.net> [1120 10:20]:
> Hey all:
> After scouring the archives I couldn't find an answer to this particular
> question:
>
> I've cyrus imap running beautifully on a RH 8.0 box right now but I'm in a
> situation where I need to move the operation onto another RH8.0 box. I've
> built out the cyrus/postfix structure on the new box but can't seem to get
> cyrus up and running on the new box with the old server
> databases/mailstores.
When I tested this recently (cyrus 2.0.17 on netbsd -> 2.2.8 on freebsd)
I had to rebuild the databases (since 2.0 used db3).
Something like
/usr/pkg/cyrus/bin/ctl_mboxlist -d > boxes
then scp that over and
/usr/local/cyrus/bin/ctl_mboxlist -u < boxes
(presumably this should work for your other db files too)
also if you want to avoid all messages being seen as new, run (on the new box)
find /var/imap/user -name \*.seen -exec /usr/cyrus/bin/cvt_cyrusdb \{\} flat \{\}.new skiplist \; -exec mv \{\}.new \{\} \;
more info at :
http://asg.web.cmu.edu/cyrus/download/imapd/install-upgrade.html
> file: /var/imap/db/log.0000000017: unsupported log version 7
> Nov 22 01:52:36 lumbergh ctl_cyrusdb[2009]: DBERROR db4: Invalid log file:
> log.0000000017: Invalid argument
> Nov 22 01:52:36 lumbergh ctl_cyrusdb[2009]: DBERROR db4: PANIC: Invalid
> argument
> Nov 22 01:52:36 lumbergh ctl_cyrusdb[2009]: DBERROR: critical database
> situation
> Nov 22 01:52:36 lumbergh master[2003]: process 2009 exited, status 75
> Nov 22 01:52:36 lumbergh master[2003]: ready for work
> Nov 22 01:52:36 lumbergh tls_prune[2015]: DBERROR db4: region error
> detected; run recovery.
> Nov 22 01:52:36 lumbergh tls_prune[2015]: DBERROR: dbenv->open
--
Oh how awful. Did he at least die peacefully? ....To shreds you say, tsk tsk tsk.
Well, how's his wife holding up? ....To shreds, you say... - Prof. Farnsworth
Rasputin :: Jack of All Trades - Master of Nuns
---
Cyrus Home Page: http://asg.web.cmu.edu/cyrus
Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html
More information about the Info-cyrus
mailing list