Results 1 to 10 of 10

Thread: Migration questions / Looking for advice

  1. #1
    peter@mxtoolbox.com is offline Partner (VAR/HSP)
    Join Date
    Feb 2007
    Location
    Austin, TX
    Posts
    110
    Rep Power
    8

    Default Migration questions / Looking for advice

    I have two 4.5.6 NE machines setup right now with LDAP replication and a good number of users.

    I want to eventually get to running version 5. I am thinking about bringing up a new separate box running version 5.0.2 and want to know two things.

    1) Can you add a 5.0.2 server to join LDAP replication with 4.5.x boxes? I don't think so but wanted to confirm.

    2) If you cannot share LDAP with 4.5.x, how can I migrate boxes from an completely separate 4.5.x box to a 5.0.2 box? If they were connected with LDAP I could use zmmailboxmove, what other solutions do I have without that?

    I'm scared of migrating the 4.5.6 box in place because the "worst case" scenario has me reinstalling and doing a restore from backups. The problem is that the backups are sitting at like 200GB right now and that means my service is offline for 12+ hours.

    Also if I do the upgrade in place, I have to bring down both servers and do the upgrade simultaneously, correct?
    Peter LeBlond
    Product Development Engineer
    http://www.mxtoolbox.com


  2. #2
    gmsmith is offline Moderator
    Join Date
    Apr 2006
    Location
    Williamsburg, VA
    Posts
    451
    Rep Power
    9

    Default

    Peter,

    I think you best option is an in place upgrade. We went through something similar recently. What we did was did a hot rsync of the /opt/zimbra director minus the backups dir to a remote drive. Then the day of the upgrade, stopped ZCS, did another rsync, which took significantly less time, then proceeded with the upgrade.

    In your case, I would go to 4.5.11 then 5.02 (or maybe 5.03 depending on timing) all in one sitting. 4.5.11 addresses some stuff related ldap replicas, and be sure to read the release notes/wiki entry on it.

  3. #3
    peter@mxtoolbox.com is offline Partner (VAR/HSP)
    Join Date
    Feb 2007
    Location
    Austin, TX
    Posts
    110
    Rep Power
    8

    Default

    Thanks, the rsync idea sounds like an awesome idea. I hadn't thought about that it for this, but I've done that before and it worked awesome.

    Thanks!
    Peter LeBlond
    Product Development Engineer
    http://www.mxtoolbox.com


  4. #4
    gmsmith is offline Moderator
    Join Date
    Apr 2006
    Location
    Williamsburg, VA
    Posts
    451
    Rep Power
    9

    Default

    No problem...

    Here is what we used:

    rsync -avr /path/to/source /path/to/destination/

  5. #5
    mmorse's Avatar
    mmorse is offline Moderator
    Join Date
    May 2006
    Location
    USA
    Posts
    6,242
    Rep Power
    20

    Default

    Quote Originally Posted by peter@mxtoolbox.com View Post
    I have two 4.5.6 NE machines setup right now with LDAP replication and a good number of users.
    Good plan - just don't forget about LDAP Replicas 4.5.x to 5.0.x - Zimbra :: Wiki

  6. #6
    peter@mxtoolbox.com is offline Partner (VAR/HSP)
    Join Date
    Feb 2007
    Location
    Austin, TX
    Posts
    110
    Rep Power
    8

    Unhappy

    Okay, so I attempted to do a dry run on a virtual machine and discovered that rsyncing the /opt/zimbra directory is not going to work. I have 160GB and 1.3 million files there, so the rsync process ran 18.3 hours. I could just do a full restore in that amount of time (13 hours on avg for a full restore).

    Does anybody know for sure that the /store and /index directories are NOT touched during the upgrade procedure? I could probably do that rysnc in a reasonable amount of time.

    Thanks,
    Peter
    Peter LeBlond
    Product Development Engineer
    http://www.mxtoolbox.com


  7. #7
    gmsmith is offline Moderator
    Join Date
    Apr 2006
    Location
    Williamsburg, VA
    Posts
    451
    Rep Power
    9

    Default

    The beauty of rsync, is that once it finishes its first rsync, it just does changes. So let it run for that long (which does sound a little long), but when you are ready to do the upgrade it will take a very small fraction of that time to finish up.

  8. #8
    peter@mxtoolbox.com is offline Partner (VAR/HSP)
    Join Date
    Feb 2007
    Location
    Austin, TX
    Posts
    110
    Rep Power
    8

    Default

    This feature I know (and love).

    But the USB disk is there in case the upgrade goes kabloey (sp?). What I'm saying is that if I spend time doing the upgrade and as a last resort I have to rely on the rysnc BACK from the USB disk, then I'm looking at 18 hours to copy the files back.

    By excluding the store and index I'm looking at 28k files instead of 1.3m. I just wanna know if I can count on store and index not to get clobbered during the upgrade scripts. I don't think they will, but I'm not willing to bet the farm on it on my gut.
    Peter LeBlond
    Product Development Engineer
    http://www.mxtoolbox.com


  9. #9
    gmsmith is offline Moderator
    Join Date
    Apr 2006
    Location
    Williamsburg, VA
    Posts
    451
    Rep Power
    9

    Default

    Can't answer your store question, but in my experience the sync back goes a lot quicker, since it is writing to multiple discs with a raid card. Maybe it is my imagination, but i have seen a sync back complete in half the time.

  10. #10
    Klug's Avatar
    Klug is offline Moderator
    Join Date
    Mar 2006
    Location
    Beaucaire, France
    Posts
    2,292
    Rep Power
    13

    Default

    Why not rsyncing directly to the new server (as I read in the first post you were going for a new box) ?

    Using the blog method with little change should work :
    . forget step one (hey, this guy is nuts, he says to forget backup)
    . start with step 2, meet your new server
    . then step 3, dummy install on new server (same Zimbra version as current Zimbra server) and then remove it
    . then step 4 but direct rsync (from "old" server to "new" one, not using the "external HD"), then stop the "old" server, then install Zimbra on new server
    . then step 5, upgrade Zimbra on new server

    You can do step 4 in several steps : an initial long rsync then when you really want to upgrade, a new quick rsync.

    And if you mess up your Zimbra upgrade on new server (step 5), you can bring old server back up...
    And start everything over later.

    All you need is an MTA able to spool incoming mails while you upgrade.
    And another box (obviously) but if in the end you stay with 2 servers, you'll can reuse (for stg else) one of the "old" servers.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 10
    Last Post: 10-29-2009, 08:56 PM
  2. [SOLVED] Mail.app POP3 migration to ZCS
    By jpbuse in forum Migration
    Replies: 6
    Last Post: 04-23-2008, 02:38 PM
  3. Migration Wizard: Unable to Open Directory Object
    By ThorGoLucky in forum Administrators
    Replies: 15
    Last Post: 01-31-2008, 02:01 AM
  4. Migration questions
    By jfields in forum Migration
    Replies: 4
    Last Post: 12-04-2007, 05:30 PM
  5. Migration Questions
    By possumjc in forum Installation
    Replies: 1
    Last Post: 07-20-2006, 02:52 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •