Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
Go Back   Zimbra :: Forums > Zimbra Collaboration Suite > Migration

Welcome to the Zimbra :: Forums!
Welcome, if you would like to post a comment please register. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 08-19-2010, 12:43 AM
Active Member
 
Posts: 26
Default step by step tutorial for migration to new server?

Hi,

I´ve already found articles like Moving ZCS to another server.

My situation: I have a server (in a datacentre where I have no physical access) running my ZCS (Opensource edition) on Debian. The version is
Code:
Release 6.0.3_GA_1915.DEBIAN4.0 DEBIAN4.0 FOSS edition.
The hostname is mailhost.mydomain.com. Now I have a new server (in another datacentre, other IP address, also running Debian, but newer version) and I want to migrate ZCS to that server. The new hostname should be mail.mydomain.com. At the moment there is only this one MX record for my domain:
Code:
MX  	mailhost.mydomain.com. 100
The question is now: At what point in the tutorial should I change the MX record. Will I have to run both zimbra servers some days parallel for to not loose mails?

And what about the hostname? Should I install ZCS on the new server with the old hostname mailhost.mydomain.com and migrate the data and then change hostname to mail.mydomain.com or will this be a problem?

Thanks for your help!
Reply With Quote
  #2 (permalink)  
Old 08-20-2010, 10:41 AM
Zimbra Consultant & Moderator
 
Posts: 20,317
Default

Quote:
Originally Posted by tabster View Post
Hi,

I´ve already found articles like Moving ZCS to another server.

My situation: I have a server (in a datacentre where I have no physical access) running my ZCS (Opensource edition) on Debian. The version is
Code:
Release 6.0.3_GA_1915.DEBIAN4.0 DEBIAN4.0 FOSS edition.
The hostname is mailhost.mydomain.com. Now I have a new server (in another datacentre, other IP address, also running Debian, but newer version) and I want to migrate ZCS to that server. The new hostname should be mail.mydomain.com. At the moment there is only this one MX record for my domain:
Code:
MX  	mailhost.mydomain.com. 100
The question is now: At what point in the tutorial should I change the MX record. Will I have to run both zimbra servers some days parallel for to not loose mails?

And what about the hostname? Should I install ZCS on the new server with the old hostname mailhost.mydomain.com and migrate the data and then change hostname to mail.mydomain.com or will this be a problem?

Thanks for your help!
You should use the same hostname for the new server as mentioned in the blog article, you should also block inbound mail by closing port 25 on your firewall. When you've done that and moved Zimbra to the new server you can make sure that everything is working OK and when you're happy that it is you need to rename the server to your preferred name.

I am, of course, making an assumption that one or both of these servers is behind a firewall, are they? Are either of them behind a NAT router on a private LAN IP?
__________________
Regards


Bill
Reply With Quote
  #3 (permalink)  
Old 08-20-2010, 10:44 AM
Active Member
 
Posts: 26
Default

Thanks for your answer. I have to admit that both of them are note behind a firewall. Is this very important for such a server? They hang directly on the net and I have only this one new server (the old one will be kicked off when the new one is running fine.
Reply With Quote
  #4 (permalink)  
Old 08-20-2010, 11:20 AM
Zimbra Consultant & Moderator
 
Posts: 20,317
Default

Quote:
Originally Posted by tabster View Post
Thanks for your answer. I have to admit that both of them are note behind a firewall. Is this very important for such a server?
It would always be my preference to run any server behind a firewall, note that it's not recommended to run the firewall on the Zimbra server but it should be behind one.

Quote:
Originally Posted by tabster View Post
They hang directly on the net and I have only this one new server (the old one will be kicked off when the new one is running fine.
You might find it easier to migrate the users to the new server, how many user accounts are there on this server (and how much data)?
__________________
Regards


Bill
Reply With Quote
  #5 (permalink)  
Old 08-20-2010, 11:26 PM
Active Member
 
Posts: 26
Default

Quote:
Originally Posted by phoenix View Post
It would always be my preference to run any server behind a firewall, note that it's not recommended to run the firewall on the Zimbra server but it should be behind one.
I know that this maybe would be better. But if I only have one machine, it can be difficult. I could install something like vmware to run the firewall on the host machine and zimbra in a guest system. But is this worth it?

Quote:
Originally Posted by phoenix View Post
You might find it easier to migrate the users to the new server, how many user accounts are there on this server (and how much data)?
It´s not so much: There are less than ten user accounts with about 7 GB of data in total. What would be the difference?
Reply With Quote
  #6 (permalink)  
Old 08-21-2010, 07:30 AM
Active Member
 
Posts: 36
Default

You can run iptables
Reply With Quote
  #7 (permalink)  
Old 09-10-2010, 11:04 AM
Active Member
 
Posts: 26
Default

Quote:
Originally Posted by phoenix View Post
You might find it easier to migrate the users to the new server, how many user accounts are there on this server (and how much data)?
The full migration is more difficult than expected, because I want to go from a 32bit system to a 64bit one. Will there be problems migrating users from 32bit to 64bit or is this a nice alternative to the many steps mentioned here?
Reply With Quote
  #8 (permalink)  
Old 09-10-2010, 12:23 PM
Zimbra Consultant & Moderator
 
Posts: 20,317
Default

Quote:
Originally Posted by tabster View Post
Will there be problems migrating users from 32bit to 64bit or is this a nice alternative to the many steps mentioned here?
You need to follow those instructions for a successful migration fro 32bit to 64bit.
__________________
Regards


Bill
Reply With Quote
  #9 (permalink)  
Old 09-11-2010, 04:41 AM
Active Member
 
Posts: 26
Default

Okay, I tried this tutorial and everything seemed to work correctly. But when I wanted to start the new server after migration I got the following error:
Quote:
Starting ldap...Done.
Failed.
Failed to start slapd. Attempting debug start to determine error.
bdb_db_close: database "": txn_checkpoint failed: Invalid argument (22).
backend_startup_one (type=hdb, suffix=""): bi_db_open failed! (-30974)
bdb_db_close: database "": alock_close failed
Any idea what the problem is?
Reply With Quote
  #10 (permalink)  
Old 09-11-2010, 04:52 AM
Zimbra Consultant & Moderator
 
Posts: 20,317
Default

It's possible you've either made an error during the migration or the database might have been corrt before the migration: site:zimbra.com "txn_checkpoint failed: Invalid argument" - Yahoo! Search Results
__________________
Regards


Bill
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads

Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.

blog.zimbra.com




 

SEO by vBSEO ©2011, Crawlability, Inc.