Moving data from Cyrus 2.3.7 (RHEL) to 2.3.16 (Invoca)
simon.matter at invoca.ch
Thu Oct 14 14:18:53 EDT 2010
> Thank you Simon! To clarify one point, when you say "the RPM takes care
> of it automagically", does that mean that I should rsync the old data to
> the new server BEFORE installing the cyrus-imapd 2.3.16-8 RPMS? The new
No, you have to install the cyrus-imapd RPMs first. You can even start it
to see if it works. But then before syncing, shut it down.
What "the RPM takes care of it automagically" is the conversion of
databases according to the defaults in the package and/or your settings in
> servers will be bare-bones -- no pre-existing data or older version of
> John Simpson
> Senior Software Engineer, I. T. Engineering and Operations
>> -----Original Message-----
>> From: Simon Matter [mailto:simon.matter at invoca.ch]
>> Sent: Thursday, October 14, 2010 10:56 AM
>> To: Simpson, John R
>> Cc: info-cyrus at lists.andrew.cmu.edu
>> Subject: Re: Moving data from Cyrus 2.3.7 (RHEL) to 2.3.16 (Invoca)
>> > Greetings all,
>> Hi John,
>> > We have been running Cyrus 2.3.7, as packaged by Red Hat
>> > (cyrus-imapd-2.3.7-2.el5) for some time, and we're upgrading to 2.3.16
>> > (cyrus-imapd-2.3.16-8, thanks Simon) to support replication. We will
>> You are welcome! The RHEL package is based on ours but it's a bit old
>> > deploying new servers for 2.3.16, not upgrading the existing servers.
>> > the past, we have simply rsync'd /var/spool/imap and /var/lib/imap to
>> > new servers, but this doesn't seem like a good idea when dealing with
>> > different versions and packagings.
>> The good news is you should not have to worry about anything, the RPM
>> takes care of it automagically :)
>> If you are able to test things and quickly shutdown the old production
>> servers I tried it the following way:
>> 1) Check /etc/imapd.conf and /etc/cyrus.conf on the old and the new
>> server. I think they should be identical but better look at them. And of
>> course also check your auth config, for example if you are running
>> saslauthd and such.
>> 2) rsync -aH --delete (you may really want to sync hardlinks as well!)
>> /var/spool/imap and /var/lib/imap from old to new while old is running.
>> 3) service cyrus-imapd stop on the old box so databases are in a
>> consistent state (and are converted to skiplist for migration if they
>> not already skiplist)
>> 4) Rerun the rsync, should go quite fast now
>> 5) Start Cyrus on the new box and check how it works.
>> Please let me know if you have any problems.
More information about the Info-cyrus