Network Edition: Moving from 32-bit to 64-bit Server: Difference between revisions

m (don't forget to copy the certificates)
Line 67: Line 67:
#:* '' /opt/zimbra/index/*''
#:* '' /opt/zimbra/index/*''
#:* Any other volumes that were set up on the 32-bit server such as HSM.
#:* Any other volumes that were set up on the 32-bit server such as HSM.
# If the original server was running with [[Commercial_Certificates|commercial certificates]], copy those over as well. The tomcat keystore (http, pop, and imap) is '''/opt/zimbra/tomcat/conf/keystore.''' If any root certificates were added to the cacerts keystore, that is '''/opt/zimbra/java/jre/lib/security/cacerts''' on linux or '''/System/Library/Frameworks/JavaVM.framework/Versions/1.5/Home/lib/security/cacerts''' on Mac OS X. The postfix certificates (smtp) are '''/opt/zimbra/conf/smtpd.crt''' and '''smtpd.key.''' If you are using the certificates for perdition or ldap they are also in '''/opt/zimbra/conf/;''' they should be identical to the postfix certificate files.
# Remove any old backup sessions because these sessions are no longer needed. Type '' rm -rf /opt/zimbra/redolog/*''
# Remove any old backup sessions because these sessions are no longer needed. Type '' rm -rf /opt/zimbra/redolog/*''
# Start ZCS, type '' zmcontrol start'' .
# Start ZCS, type '' zmcontrol start'' .
Line 73: Line 74:


--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
<br> Keywords: ''Migration, 32bit, 64bit, architecture, moving, ofzd, revisiond''
<br> Keywords: ''Migration, migrating, 32bit, 64bit, architecture, moving, ofzd, revisiond''


{|  class="toc" border="0" cellpadding="0" cellspacing="0" width=100%
{|  class="toc" border="0" cellpadding="0" cellspacing="0" width=100%

Revision as of 16:49, 6 August 2007

Officiallock2.png - This is official documentation, and is protected for editing by Zimbra Employees only.
Rev2.png - This article is currently being revised. This means that the information may not be up to date or accurate.

This article describes the steps to move network edition ZCS accounts from a 32-bit server to a 64-bit server.

IMPORTANT: The ZCS release you install on the 64-bit server must be the same release as installed on the 32-bit server. The server can have a different operating system.

The new server hardware must meet the requirements described in the Installation Prerequisites section of the ZCS Single Server Installation Guide. Install the new operating systems, making any necessary OS configuration modifications as described in the installation guide.

32-bit to 64-Bit Migration

For the migration, you do the following on the 32-bit server:

  • Block client access to the old server's IP address with firewall rules
  • Create an LDAP dump directory
  • Backup the LDAP data

You do the following on the 64-bit server:

  • Prepare the new server
  • Restore the LDAP data
  • Edit the localconfig.xml file to update the MySQL password values to be the same as those configured on the old server
  • Copy the latest backup files from the 32-bit server to the 64-bit server
  • Delete the MySQL data that is set up in the initial installation of ZCS
  • Copy various files from the 32-bit server to the 64-bit server
  • Prepare and run a new backup for the 64-bit server

Preparing the 32-bit Server

  1. Block client access to the server's IP address with firewall rules.
  2. Create an LDAP dump directory. As root, type mkdir /backupldap .
  3. As root, type chown zimbra:zimbra /backup .
  4. Backup the LDAP data, as zimbra, type
    /opt/zimbra/libexec/zmslapcat /backup
  5. Stop the 32-bit server, type zmcontrol stop .
  6. Change the hostname and IP address on the old server to something else. Do not turn off the server.

Preparing the 64-bit Server

  1. Prepare the 64-bit server and install ZCS.
The ZCS installation on the new server must be configured exactly as the ZCS configuration on the original server. You go through the complete menu driven installation process, making changes to the configuration setting to match the settings on the original server.
a. Copy your ZCSLicense.xml file to a directory on the new server. You will not be able to complete the ZCS installation if the license is not on the new server.
b. Follow the directions in the ZCS single server installation guide to install ZCS. Make sure that you configure the same domain, hostname, passwords as on the old server. During ZCS install, the following settings must be changed to match the original server settings:
  • 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.
  • Make sure that the account name for Admin user to create is the same name as on the original server.
  • Set the admin password.
  • Change the Spam training user and the Non-spam (HAM) training user account names to be the same as the spam account names on the original server.
  • Global Document Account - This account name is automatically generated. Change the Global Document Account name to be the same account name as on the original server.
  • Change any other settings on the new server to match the configuration on the original server.

ZCS is installed. To continue:

  1. Stop the ZCS services, type zmcontrol stop .
  2. Restore the LDAP data to the 64-bit server. As zimbra, type
    a. rm -rf /opt/zimbra/openldap-data/*
    b. Copy from the 32-bit server to the 64-bit server the /backup/ldap.bak file. Type /opt/zimbra/openldap/sbin/slapadd \
    -f /opt/zimbra/conf/slapd.conf -cv \
    < /backup/ldap.bak
  3. Edit /opt/zimbra/conf/localconfig.xml to update the zimbra_mysql_password and the mysql_root_password values to the values from the localconfig.xml file on the 32-bit server.
  4. Delete the MySQL data on the 64-bit server and copy the MySQL data from the 32-bit server.
    a. Type rm -rf /opt/zimbra/db/data/*
    b. Copy the /opt/zimbra/db/data/* from the 32-bit server to the 64-bit server.
  5. Copy the following files from the 32-bit server to the 64-bit server
    • /opt/zimbra/store/*
    • /opt/zimbra/index/*
    • Any other volumes that were set up on the 32-bit server such as HSM.
  6. If the original server was running with commercial certificates, copy those over as well. The tomcat keystore (http, pop, and imap) is /opt/zimbra/tomcat/conf/keystore. If any root certificates were added to the cacerts keystore, that is /opt/zimbra/java/jre/lib/security/cacerts on linux or /System/Library/Frameworks/JavaVM.framework/Versions/1.5/Home/lib/security/cacerts on Mac OS X. The postfix certificates (smtp) are /opt/zimbra/conf/smtpd.crt and smtpd.key. If you are using the certificates for perdition or ldap they are also in /opt/zimbra/conf/; they should be identical to the postfix certificate files.
  7. Remove any old backup sessions because these sessions are no longer needed. Type rm -rf /opt/zimbra/redolog/*
  8. Start ZCS, type zmcontrol start .
  9. Now run a full backup, type zmbackup -f -a all .
  10. Remove the firewall rules and allow client access to the new server.


Keywords: Migration, migrating, 32bit, 64bit, architecture, moving, ofzd, revisiond

Verified Against: Zimbra Collaboration Suite 4.5.3
Article ID: http://wiki.zimbra.com/index.php?title=Network_Edition_Moving_form_32-bit_to_64-bit_Server Date Created: April 11, 2007 Date Modified: July 06, 2007
Jump to: navigation, search