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
  #11 (permalink)  
Old 07-19-2007, 11:09 PM
Intermediate Member
 
Posts: 19
Default

Quote:
Originally Posted by jholder View Post
Brained is 100% correct on the Open Source edition

Some of us (brained included) have assisted in many open source migrations. Forgive us for thinking that's what you have

john
That's cool.

Now, even though I have the network version, can I still use brained's procedure above?

The key issue I have is that the current server has 1GB of space left, so doing backups will be a bit of a problem.... which is why I was hoping there was a migration tool for the Network version.

...Skeeve
Reply With Quote
  #12 (permalink)  
Old 07-19-2007, 11:14 PM
Former Zimbran
 
Posts: 5,606
Default

Yes, the procedure works on both editions.

I understand the space thing.

Another option would be IMAPSYNC, but you'd loose some stuff, like documents. So, we probably should do the tar /opt/zimbra thing.

Lookup how to use rsync
man rsync

You can also just rsync the /opt/zimbra folder to the new server.

it's really up to you, but everything is contained in /opt/zimbra
Reply With Quote
  #13 (permalink)  
Old 07-20-2007, 10:45 AM
Intermediate Member
 
Posts: 19
Default

Quote:
Originally Posted by brained View Post
You want to migrate first, then upgrade.
  • Install the exact same 4.0.4 on the new server
  • Rsync the /opt/zimbra over from the old
  • Re-run the 4.0.4 install script on the new server
  • Start up the 4.0.4 on the new server and make sure it's running properly (LDAP, MySql, message store, etc) Really make sure - you don't want to try to upgrade a broken system
  • Shut Zimbra down and then -
  • Then run the install script for 4.5.6
OK, re rsync, got any options I should be using. I'm trying:

rsync -Wur --links source dest

should I be adding aything else?

...Skeeve
Reply With Quote
  #14 (permalink)  
Old 07-20-2007, 11:18 AM
Intermediate Member
 
Posts: 19
Default

Quote:
Originally Posted by skeeve View Post
OK, re rsync, got any options I should be using. I'm trying:

rsync -Wur --links source dest

should I be adding aything else?

...Skeeve
ive add -o -g

anything I miss?

...Skeeve
Reply With Quote
  #15 (permalink)  
Old 07-20-2007, 12:17 PM
Intermediate Member
 
Posts: 19
Default

Quote:
Originally Posted by brained View Post
You want to migrate first, then upgrade.
  • Install the exact same 4.0.4 on the new server
  • Rsync the /opt/zimbra over from the old
  • Re-run the 4.0.4 install script on the new server
  • Start up the 4.0.4 on the new server and make sure it's running properly (LDAP, MySql, message store, etc) Really make sure - you don't want to try to upgrade a broken system
  • Shut Zimbra down and then -
  • Then run the install script for 4.5.6
OK.. I'm up to the part where I have re-run the 4.0.4 install and I'm trying to make sure it is running properly.

Well, it is sort of working... outlook can get it, I can get into the web interface, send email and so on.

In the web interface I am having some problems though.

When i look at "some", not all, emails I get:

msg - system failure: IOException while retrieving content for item 1909
com.zimbra.cs.service.ServiceException: system failure: IOException while retrieving content for item 1909
at com.zimbra.cs.service.ServiceException.FAILURE(Ser viceException.java:174)
at com.zimbra.cs.mailbox.MessageCache.getMimeMessage( MessageCache.java:198)
at com.zimbra.cs.mailbox.Message.getMimeMessage(Messa ge.java:270)
at com.zimbra.cs.service.mail.ToXML.encodeMessageAsMP (ToXML.java:532)
at com.zimbra.cs.service.mail.GetMsg.handle(GetMsg.ja va:74)
at com.zimbra.soap.SoapEngine.dispatchRequest(SoapEng ine.java:261)
at com.zimbra.soap.SoapEngine.dispatch(SoapEngine.jav a:162)
at com.zimbra.soap.SoapEngine.dispatch(SoapEngine.jav a:84)
at com.zimbra.soap.SoapServlet.doPost(SoapServlet.jav a:223)
at javax.servlet.http.HttpServlet.service(HttpServlet .java:709)
at com.zimbra.cs.servlet.ZimbraServlet.service(Zimbra Servlet.java:173)
at javax.servlet.http.HttpServlet.service(HttpServlet .java:802)
at org.apache.catalina.core.ApplicationFilterChain.in ternalDoFilter(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.do Filter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invo ke(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invo ke(StandardContextValve.java:178)
at org.apache.catalina.core.StandardHostValve.invoke( StandardHostValve.java:126)
at org.apache.catalina.valves.ErrorReportValve.invoke (ErrorReportValve.java:105)
at org.apache.catalina.core.StandardEngineValve.invok e(StandardEngineValve.java:107)
at org.apache.catalina.valves.AccessLogValve.invoke(A ccessLogValve.java:541)
at org.apache.catalina.connector.CoyoteAdapter.servic e(CoyoteAdapter.java:148)
at org.apache.coyote.http11.Http11Processor.process(H ttp11Processor.java:869)
at org.apache.coyote.http11.Http11BaseProtocol$Http11 ConnectionHandler.processConnection(Http11BaseProt ocol.java:667)
at org.apache.tomcat.util.net.PoolTcpEndpoint.process Socket(PoolTcpEndpoint.java:527)
at org.apache.tomcat.util.net.LeaderFollowerWorkerThr ead.runIt(LeaderFollowerWorkerThread.java:80)
at org.apache.tomcat.util.threads.ThreadPool$ControlR unnable.run(ThreadPool.java:684)
at java.lang.Thread.run(Thread.java:595)
Caused by: java.io.FileNotFoundException: /opt/zimbra/store/0/5/msg/0/1909-5423.msg (Permission denied)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(FileInputStream.jav a:106)
at com.zimbra.cs.util.ByteUtil.getContent(ByteUtil.ja va:86)
at com.zimbra.cs.store.FileBlobStore.getContent(FileB lobStore.java:302)
at com.zimbra.cs.store.FileBlobStore.getContent(FileB lobStore.java:296)
at com.zimbra.cs.mailbox.MessageCache.fetchFromStore( MessageCache.java:216)
at com.zimbra.cs.mailbox.MessageCache.getMimeMessage( MessageCache.java:179)
... 25 more

code - service.FAILURE
method - ZmCsfeCommand.prototype.invoke
detail - soap:Receiver

Is this serious? Is the migration a failure? This is the point I need to know whether to scrap everything I've done so far and try again (although I did everything right I am sure).

I've got to wake up in 5 hours and go explain to the boss where I am up to, it woulda kinda be nice to know what to tell him. I will check here when I wake up.

...Skeeve
Reply With Quote
  #16 (permalink)  
Old 07-20-2007, 01:08 PM
Former Zimbran
 
Posts: 5,606
Default

Try running the zmfixperms script located in /opt/zimbra/libexec
Reply With Quote
  #17 (permalink)  
Old 07-20-2007, 05:06 PM
Intermediate Member
 
Posts: 19
Default

Quote:
Originally Posted by jholder View Post
Try running the zmfixperms script located in /opt/zimbra/libexec
Yup, ran it, didnt do much.

When I first login as a user or click on the message it says 'A network service error has occurred.' with the detail being the above.

...Skeeve
Reply With Quote
  #18 (permalink)  
Old 07-21-2007, 04:30 AM
Intermediate Member
 
Posts: 19
Default

OK, ran out of time and had to junk to migration - had to give the users back their email access.

So, what can I try to make this more successful next time?

...Skeeve
Reply With Quote
  #19 (permalink)  
Old 07-21-2007, 05:32 AM
Zimbra Consultant & Moderator
 
Posts: 19,655
Default

This will copy the files (to a backup directory) with all permissions:

Code:
# rsync backup
rsync -avrlHKpogDt /opt/zimbra/ /data/backup/zimbra

# rsync restore
rsync -avrlHKpogDt /data/backup/zimbra /opt/zimbra
obviously change the backup directory to one of your own. You should also make a note of the zimbra uid & gid on the current server and then make sure it's the same on the new install.
__________________
Regards


Bill
Reply With Quote
  #20 (permalink)  
Old 07-21-2007, 05:46 AM
Zimbra Consultant & Moderator
 
Posts: 19,655
Default

I forgot to add that this type of migration assumes your are using the same IP and hostname on the new server.
__________________
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.