Results 1 to 8 of 8

Thread: 32-bit to 64-bit Migration

  1. #1
    spinaltoad is offline Member
    Join Date
    Apr 2007
    Posts
    13
    Rep Power
    8

    Default 32-bit to 64-bit Migration

    I found some of the migration wiki's to be confusion.
    Here are some quick notes I made migration from ubuntu 32-bit to 64-bit.
    I asigned internal IP's to my servers.
    10.0.0.1 is the old server
    10.0.0.2 is the new server

    All commands are done as root.

    Summary Notes.
    Install new server with same version of Zimbra and values as old server. 32-bit 64-bit doesn't matter
    Copy All Files /opt/zimbra/store
    Copy All Files in /opt/zimbra/index
    Backup LDAP database then restore database to new server. (binary copies will not work)
    inorder for ldap restored database to work, copy certain values with in /opt/zimbra/conf/localconfig.xml

    Install OS
    Download exactly the same version as the old system has
    Make sure the /etc/hosts has the correct hostname
    Install ZCS (install.sh) with exactly the same settings as the original system had

    Important settings:
    Domain Name Must be exactly the same as the original server
    Zimbra LDAP Server - For Domain to create - identify the same default domain as on the original server.
    Zimbra Mailbox Server - An administrator's account is automatically created.
    Admin user to create is the same name as on the original server.
    Admin password same as on the orginal server
    Spam training user same as on the orginal server.
    Non-spam (HAM) training user account same as on the orginal server
    Global Document Account user same as on the orginal server

    Prep New Server
    Code:
    * mkdir /backup
    * chown zimbra:zimbra /backup
    * su zimbra
    * zmcontrol stop
    * rm -rf /opt/zimbra/data/ldap/hdb/* 
    * rm -rf /opt/zimbra/db/data/*
    Code:
    If this is an ldap master with replicas: 
    * rm -rf /opt/zimbra/data/ldap/accesslog/*
    Code:
    mkdir -p /opt/zimbra/data/ldap/hdb/db /opt/zimbra/data/ldap/hdb/logs
    On orginal Server, pepare for move day.
    Code:
    nice -n +19 rsync -avzH -e ssh --progress /opt/zimbra/store/ root@10.0.0.2:/opt/zimbra/store
    nice -n +19 rsync -avzH -e ssh --progress /opt/zimbra/index/ root@10.0.0.2:/opt/zimbra/index
    Move Day, on orginal server, Block access to server via firewall
    Code:
    mkdir /backup
    chown zimbra:zimbra /backup
    su zimbra
    /opt/zimbra/libexec/zmslapcat /backup
    zmcontrol stop
    cp /opt/zimbra/data/ldap/hdb/db/DB_CONFIG /backup/
    nice -n -20 rsync -avzH -e ssh --delete --progress /opt/zimbra/store/ root@10.0.0.2:/opt/zimbra/store
    nice -n -20 rsync -avzH -e ssh --delete --progress /opt/zimbra/index/ root@10.0.0.2:/opt/zimbra/index
    nice -n -20 rsync -avzH -e ssh --delete --progress /opt/zimbra/db/data/ root@10.0.0.2:/opt/zimbra/db/data
    nice -n -20 rsync -avzH -e ssh --delete --progress /backup/ root@10.0.0.2:/backup
    On original server, Get Values in /opt/zimbra/conf/localconfig.xml
    Copy the value between <value> </value>
    Code:
    cat /opt/zimbra/conf/localconfig.xml | grep -A 2 zimbra_mysql_password 
    cat /opt/zimbra/conf/localconfig.xml | grep -A 2 mysql_root_password
    cat /opt/zimbra/conf/localconfig.xml | grep -A 2 zimbra_ldap_password 
    cat /opt/zimbra/conf/localconfig.xml | grep -A 2 ldap_root_password 
    cat /opt/zimbra/conf/localconfig.xml | grep -A 2 ldap_postfix_password 
    cat /opt/zimbra/conf/localconfig.xml | grep -A 2 ldap_replication_password
    Change the Ip address of the Orginal server.
    Asign the New Server the ip address of the orginal server.
    Make sure the new server has the correct hostname an ip address in /etc/hostname

    On New server
    Code:
    cp /backup/DB_CONFIG /opt/zimbra/data/ldap/hdb/db
    chown -R zimbra:zimbra /opt/zimbra/data/ldap 
    /opt/zimbra/openldap/sbin/slapadd -q -b "" -F /opt/zimbra/data/ldap/config -cv -l /backup/ldap.bak
    Edit /opt/zimbra/conf/localconfig.xml
    Replace the following values with the same values that were found on the old server.

    * zimbra_mysql_password
    * mysql_root_password
    * zimbra_ldap_password
    * ldap_root_password
    * ldap_postfix_password
    * ldap_amavis_password
    * ldap_nginx_password
    * ldap_replication_password

    Fix Permission on New server
    Code:
    /opt/zimbra/libexec/zmfixperms
    chown zimbra:zimbra /opt/zimbra/zmstat -R
    /opt/zimbra/libexec/zmfixperms --extended
    Start Server

    Reference
    www.tobru.ch: Migrating Zimbra to 64-Bit
    Platform and OS Independent ZCS to ZCS Migration Using Rsync - Zimbra :: Wiki

  2. #2
    phoenix is online now Zimbra Consultant & Moderator
    Join Date
    Sep 2005
    Location
    Vannes, France
    Posts
    23,499
    Rep Power
    56

    Default

    Quote Originally Posted by spinaltoad View Post
    I found some of the migration wiki's to be confusion.
    There is no confusion about moving a server from 32bit to 64bit using the wiki article, many users have followed those instructions without problems. There's only one Certified document in the Zimbra wiki that covers the subject and that's the one that should be followed, neither of the links you provide are official Zimbra documents on the subject.
    Regards


    Bill


    Acompli: A new adventure for Co-Founder KevinH.

  3. #3
    gbkersey is offline Junior Member
    Join Date
    Apr 2007
    Posts
    5
    Rep Power
    8

    Default

    I have followed the wiki article several times and I'm getting the following:

    zimbra@fs:~$ zmcontrol -v
    Release 6.0.10_GA_2692.UBUNTU10_64 UBUNTU10_64 NETWORK edition.
    zimbra@fs:~$ zmprov
    [] INFO: I/O exception (java.net.ConnectException) caught when processing request: Connection refused
    [] INFO: Retrying request
    ERROR: zclient.IO_ERROR (invoke Connection refused, server: localhost) (cause: java.net.ConnectException Connection refused)


    Since the wiki article is locked, there is no way to comment on it. I've done migrations of FOSS versions using the instructions found in the wiki with no problems....

  4. #4
    phoenix is online now Zimbra Consultant & Moderator
    Join Date
    Sep 2005
    Location
    Vannes, France
    Posts
    23,499
    Rep Power
    56

    Default

    Quote Originally Posted by gbkersey View Post
    Since the wiki article is locked, there is no way to comment on it. I've done migrations of FOSS versions using the instructions found in the wiki with no problems....
    There's no difference between moving an NE server or an OSS server (apart from the obvious NE commands that don't apply to OSS), what's the status of the services? Is the firewall and AppArmor disabled?
    Regards


    Bill


    Acompli: A new adventure for Co-Founder KevinH.

  5. #5
    gbkersey is offline Junior Member
    Join Date
    Apr 2007
    Posts
    5
    Rep Power
    8

    Default

    I modified and used the script shown on this page for the FOSS migrations:
    Migrating from 32 bit Centos 4.x to 64 bit Centos 5.x - Zimbra :: Wiki
    That worked no problem.

    When I tried following the instructions on the wiki, the official instructions, I get a problem with zmprov...

    no firewall rules are set on this machine
    apparmor was not a problem for the FOSS migrations. However, per your suggestion, I turned it off on the server I'm currently working on. No joy...

    zmprov worked fine on the initial install of the server, however, after following the steps on Network Edition: Moving from 32-bit to 64-bit Server - Zimbra :: Wiki
    I get the following error:

    zimbra@fs:~$ zmprov
    [] INFO: I/O exception (java.net.ConnectException) caught when processing request: Connection refused
    [] INFO: Retrying request
    ERROR: zclient.IO_ERROR (invoke Connection refused, server: localhost) (cause: java.net.ConnectException Connection refused)

    Could this be an ssl certificate problem?

    Note that commands that rely only on ldap via zmprov work.... for instance 'zmprov -l gaa' works fine.

  6. #6
    gbkersey is offline Junior Member
    Join Date
    Apr 2007
    Posts
    5
    Rep Power
    8

    Default

    So based on my tcpdumping of the loopback interface, zmprov is attempting to connect to port 7071 (the admin interface) and there is nothing listening there.

    So, I guess my problem is that mailboxd is not running and I suppose this is due to a certificate error. I have tryied to regen the certs following the script in the migration link above, but not joy...

    I'm not sure what to try next and any help would be appreciated.

  7. #7
    Cine.ZxCommunity's Avatar
    Cine.ZxCommunity is offline Senior Member
    Join Date
    Jul 2011
    Posts
    55
    Rep Power
    4

    Default

    Have you managed to migrate your server?

    If you are still trying to figure out how to perform the migration I suggest you to have a look at ZeXtras Migration Tool, a free tool specifically made to make zimbra-to-zimbra migrations easy and safe.

    Check it out on the Zimbra Gallery at ZeXtras Migration Tool | Zimbra :: Gallery
    Cine - Community Manager - ZeXtras
    www.zextras.com

  8. #8
    gbkersey is offline Junior Member
    Join Date
    Apr 2007
    Posts
    5
    Rep Power
    8

    Default The solution was....

    Looks like it was a certificate problem... Rick with Zimbra was nice enough to get on the machine in question and help me with the problem.

    The problem was that /opt/zimbra/mailboxd/etc/keystore was messed up in some way. Could have been incorrect contents or a permissions problem....

    Rick fixed the problem by doing the following:

    As root:
    /opt/zimbra/bin/zmcertmgr createcrt self -new
    /opt/zimbra/bin/zmcertmgr deploycrt self
    /opt/zimbra/libexec/zmfixperms -v -e

    Then he was able to get zmmailboxd running....

    Thanks!
    Bo

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. 7.1.1 64 bit wont start after migration
    By iceruam in forum Administrators
    Replies: 4
    Last Post: 06-30-2011, 02:03 PM
  2. Migration from 5.0.26 32 bit to 7+ 64 bit
    By Meowmixjinx in forum Administrators
    Replies: 3
    Last Post: 03-24-2011, 07:27 AM
  3. Migration From RHEL 4 32 Bit to RHEL 5 64 Bit edition
    By prasadpimple in forum Administrators
    Replies: 3
    Last Post: 02-12-2011, 04:19 AM
  4. Migration 32 bit to 64 bit.
    By timothyalangorman in forum Administrators
    Replies: 2
    Last Post: 01-19-2011, 06:41 AM
  5. [SOLVED] GroupWise 7.0.2 migration
    By Rich Graves in forum Migration
    Replies: 28
    Last Post: 04-17-2008, 04:13 PM

Posting Permissions

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