Moving data from Cyrus 2.3.7 (RHEL) to 2.3.16 (Invoca)
Simpson, John R
john_simpson at reyrey.com
Thu Oct 14 13:15:32 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 servers will be bare-bones -- no pre-existing data or older version of Cyrus.
John
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 be
>
> You are welcome! The RHEL package is based on ours but it's a bit old now.
>
> > deploying new servers for 2.3.16, not upgrading the existing servers.
> In
> > the past, we have simply rsync'd /var/spool/imap and /var/lib/imap to
> the
> > 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 are
> 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.
>
> Regards,
> Simon
More information about the Info-cyrus
mailing list