Upgrading from 2.3 to til 2.4

Dave McMurtrie dave64 at andrew.cmu.edu
Tue May 10 14:00:06 EDT 2011


On 05/10/2011 01:00 PM, Frank Elsner wrote:
> On Tue, 10 May 2011 12:19:42 -0400 Wesley Craig wrote:
>> It's usually possible in a murder configuration to do a zero downtime upgrade by xfer-ing users to a backend running the new version.  The admin is then in control of how much index upgrade load to inflict on the new machine.
>
> I'm very interested in details of the "xfer-ing". Can you provide them?

This is how we accomplished our upgrade from 2.3 to 2.4.  We originally 
planned an in-place upgrade, but we encountered the same performance 
problems you noted.  Instead, we vacated one server at a time and did 
the upgrades with no mailboxes in place.  We were then free to move 
mailboxes back on to the newly upgraded server.

If you are running a Cyrus Murder, simply connect via cyradm and issue a 
"rename" command using the same source and destination mailbox name, but 
specify a different server.  The result will be that the mailbox will 
keep its original name but will be moved to the different server.

For example, if my mailbox was on server1 and I wanted to move it to 
server 2 I could:

$ cyradm server1
 > rename user.dave64 user.dave64 server2

To specify a partition instead of moving it to the defaultpartition,

 > rename user.dave64 user.dave64 server2!u1

hth,

Dave





More information about the Info-cyrus mailing list