Results 1 to 8 of 8

Thread: Migration from one PC to another

  1. #1
    gfdos.sys is offline Senior Member
    Join Date
    Sep 2005
    Location
    Buffalo, NY
    Posts
    65
    Rep Power
    9

    Default Migration from one PC to another

    I have been "playing" with the idea of backing up my zimbra Server. Now I find I need to utilize the thought of "backing up" at a different level: restoration -- to different Equipment.

    The question here is: how do I successfully "Backup" the Zimbra running on one piece of hardware, and move it to another.

    Since I bring with me lots of attempts at doing this I am moving this whole concept to this new thread. Following is what I have tried so far, for ppls to ponder over.

    Given:
    PC1: RHEL4 update 3, Zimbra 3.0.1 GA
    PC2: RHEL5 (rtm)

    Source threads for this discussion:
    OSS Backup Discussion

    Migration Issues 3.1.4 to 4.5.3
    Migration Issues 3.x to 4.5.3

    Critical bug workaround for 4.5.5


    There are 2 parts to this:
    1. Get/Show RHEL 4 Zimbra relases will install on RHEL 5
    2. Get the Zimbra install info from the old server on to this new one. (I need to transition Zimbra to newer hardware -- read: different PC)

    Part 1
    What I've sucessfully done so far:

    Installing RHEL 5 with the intension of installing Zimbra RHEL 4 release on it.

    sendmail can be deselected when installing by insuring it is not checked under Base System | Base, as well as Servers | Mail Server, it wont matter though because fetchmail is dependant on it, so it will install anyway.
    openssl097a compat-libstdc++-296 compat-libstdc++-33 are available when installing under Base System | Legacy software support.
    fetchmail - under Applications | Text-based Internet
    gmp : gmp-devel under Development

    Before Installing Zimbra:
    visudo and comment "Defaults requiretty"
    NOTE: in RHEL 5 the man page for visudo is there, but the command doesnt seem to work. I have read that as long as you are the only user modifying the file you can:

    su
    vi /etc/Sudoers
    (comment "Defaults requiretty")
    :x! (to force vi to save over the readonly file)

    vi /etc/hosts
    verify:
    127.0.0.1 localhost.localdomain localhost
    xxx.xxx.x.x mail.host.com mail

    I cheat and use the GUI for the next few steps:
    RHEL5 automatically turns on SELinux and firewall ... it doesnt even ask during install anymore... so
    System | Administration | Security Level and Firewall
    Set Firewall to disabled, Set SELinux to Disabled

    Install Zimbra 3.0.1 GA OSS

    This is installed and working fine on RHEL 5. I now need to figure out how to get my old info on this machine from a different server.

    Part 2
    What I've done to try to bring info from another machine:


    zmcontrol stop
    targzip /opt
    stop zimbra with "zmcontrol stop"
    rename opt volume with "mv /opt /opt.clean"
    restore old opt volume with "tar -xvf zimbrabak.tar.gz"
    reboot

    Where I get stuck:
    Zimbra doesnt seem to restart after reboot.
    If I "stop" it manually with zmcontrol stop, then try to restart with zmcontrol start, it gets to the first thing:
    Starting ldap...Password:
    and wants some sort of password. I have tried the root password and even the LDAP password from the old zimbra machine (found with zmlocalconfig -s).
    I have even tried reformatting the machine, reinstalling linux, and specifying the old LDAP password from the previous server when installing clean zimbra, before renaming /opt to /opt.clean.
    No DICE.

    The only other thing I could find on the forums to try doing was Installing over this zimbra, and choosing upgrade.
    The upgrade goes fine, except I get errors right after the ldap convert, then ldap FAILED (512)

  2. #2
    phoenix is offline Zimbra Consultant & Moderator
    Join Date
    Sep 2005
    Location
    Vannes, France
    Posts
    23,569
    Rep Power
    57

    Default

    Reset the LDAP password with zmldappasswd.
    Regards


    Bill


    Acompli: A new adventure for Co-Founder KevinH.

  3. #3
    gfdos.sys is offline Senior Member
    Join Date
    Sep 2005
    Location
    Buffalo, NY
    Posts
    65
    Rep Power
    9

    Default

    Okay I tried that ... same problems... I'm going to start over again and give you all the errors I'm getting.

    Removed zimbra using instructions from wiki.

    This time rather than Installing, renaming /opt, and untaring, rebooting.
    Im going to try from "clean" uninstall as per wiki:
    tar -xvpf zimbrabak.tar.gz
    Then Installing over....

    Errors to follow.

  4. #4
    gfdos.sys is offline Senior Member
    Join Date
    Sep 2005
    Location
    Buffalo, NY
    Posts
    65
    Rep Power
    9

    Lightbulb okay...

    Untaring and then installing doesnt work because the first thing install does, is remove /opt/zimbra. So dont do that.

    Next I noticed that the zimbra package I was trying to use to get this all working was 3.1.0 GA, and I have 3.0.1 GA installed on this box boy do I feel sheepish!

    I did get SOMETHING out of this tho --

    Completely removed zimbra as per wiki.
    Tryed installing 3.0.1 GA -- had conflict with something still running on port 993!
    Completely removed zimbra as per wiki.
    Rebooted
    CLEAN SLATE!

    Installed 3.0.1 GA
    It took this time!
    zmcontrol status says every thing is running!
    logged into zimbra via ff locally -- all good!
    logged out of zimbra, closed ff

    su - zimbra
    zmcontrol stop
    exit
    su
    netstat -na | grep zimbra
    kill -9 process (if anything running)
    VERY IMPORTANT:
    right click on tmp mount on desktop and unmount volume
    mv /opt /op.tclean
    tar -Uvpf zimbrabak.tgz (to put old /opt in place)
    reboot

    Its up! logged into email -- all looks like its there, opened a few messages looks good.
    su - zimbra
    zmcontrol status
    antispam, antivirus, and spell stopped?!
    zmcontrol stop
    zmcontrol start
    starting spell... FAILED
    /opt/zimbra/httpd-2.0.54/bin/httpd: error while loading shared libraries: libdb-4.2.so: cannot open shared object file: No such file or directory

    zmcontrol status shows antispam, antivirus, and spell still stopped.

    I'm SOOO close!!!

    I tried running the 3.1.0 GA install to upgrade hoping that would fix this... it doesnt.
    zmcontrol status shows:
    antispam Stopped
    zmamavisdctl is not running
    antivirus Stopped
    zmamavisdctl is not running
    ldap Running
    logger Running
    mailbox Running
    mta Running
    snmp Running
    spell Stopped
    zmapachectl is not running

    zmcontrol stop, then zmcontrol start shows:
    Starting ldap...Done.
    Starting antispam...Done.
    Starting antivirus...Done.
    Starting logger...Done.
    Starting mailbox...Done.
    Starting mta...Done.
    Starting snmp...Done.
    Starting spell...FAILED
    /opt/zimbra/httpd-2.0.54/bin/httpd: error while loading shared libraries: libdb-4.2.so: cannot open shared object file: No such file or directory

    What should I do now?
    I can reproduce everything here.
    Is there something I should do to 3.0.1 GA before upgrading to 3.1.0 GA?
    or
    Is there something I can do to 3.1.0 GA that will fix the issue?
    Last edited by gfdos.sys; 06-06-2007 at 03:06 PM.

  5. #5
    gfdos.sys is offline Senior Member
    Join Date
    Sep 2005
    Location
    Buffalo, NY
    Posts
    65
    Rep Power
    9

    Default Still need help on this

    Just for hoots and gigles, I installed 4.5.0 GA as upgrade to 3.1.0 GA upgrade to 3.0.1 GA

    After a lengthy upgrade of a great many schemas, It looks like everything is working except spell still... any Ideas on the spell problem
    4.5.0 GA: zmcontrol start says:
    antispam Running
    antivirus Running
    ldap Running
    logger Running
    mailbox Running
    mta Running
    snmp Running
    spell Stopped
    zmapachectl is not running

  6. #6
    gfdos.sys is offline Senior Member
    Join Date
    Sep 2005
    Location
    Buffalo, NY
    Posts
    65
    Rep Power
    9

    Default Still need help on this

    Just for hoots and gigles, I installed 4.5.0 GA as upgrade to 3.1.0 GA upgrade to 3.0.1 GA

    After a lengthy upgrade of a great many schemas, It looks like everything is working except spell still... any Ideas on the spell problem
    4.5.0 GA: zmcontrol start says:
    antispam Running
    antivirus Running
    ldap Running
    logger Running
    mailbox Running
    mta Running
    snmp Running
    spell Stopped
    zmapachectl is not running

  7. #7
    gfdos.sys is offline Senior Member
    Join Date
    Sep 2005
    Location
    Buffalo, NY
    Posts
    65
    Rep Power
    9

    Default

    I just logged into the 4.5.0 client. Wow you really added alot of new cool stuffs!
    Cant wait to get this up on our main server replacing 3.0.1!

    I noticed that Documents(Beta) is also not working on 4.5.0:
    When I go to the Documents tab i get:
    Error: Document templates missing. Please notify administrator.
    which is probably the reason why if I create a new document I get this error when trying to save it:
    msg - error: empty config variable zimbraNotebookAccount
    com.zimbra.cs.service.wiki.WikiServiceException: error: empty config variable zimbraNotebookAccount
    at com.zimbra.cs.service.wiki.WikiServiceException.ER ROR(WikiServiceException.java:57)
    at com.zimbra.cs.wiki.Wiki.getDefaultWikiAccount(Wiki .java:429)
    at com.zimbra.cs.session.WikiSession.getInstance(Wiki Session.java:39)
    at com.zimbra.cs.wiki.Wiki$WikiById.<init>(Wiki.java: 293)
    at com.zimbra.cs.wiki.Wiki.getInstance(Wiki.java:506)
    at com.zimbra.cs.wiki.Wiki.addPage(Wiki.java:605)
    at com.zimbra.cs.service.wiki.SaveWiki.handle(SaveWik i.java:75)
    at com.zimbra.soap.SoapEngine.dispatchRequest(SoapEng ine.java:262)
    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:162)
    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)

    code - wiki.ERROR
    method - ZmCsfeCommand.prototype.invoke
    detail - soap:Sender

  8. #8
    Crexis's Avatar
    Crexis is offline Senior Member
    Join Date
    Feb 2006
    Posts
    54
    Rep Power
    9

    Default

    Hi. I have set up a few ZCS 4.5 macs but I always use Suse 10.1. Spell never works first time and I found a post in the forums somewhere that makes mention of this. The issue is with a missing or incorrect symlink. To fix the prob, I do:
    Code:
    # cd /opt/zimbra/lib
    # ln -s /usr/lib/libexpat.so.1.5.0 libexpat.so.0
    This may be specific to Suse 10.1 but it's possibly same issue different files on RH. Hope that helps some.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Migration Wizard: Unable to Open Directory Object
    By ThorGoLucky in forum Administrators
    Replies: 15
    Last Post: 01-31-2008, 02:01 AM
  2. Replies: 2
    Last Post: 07-22-2007, 10:35 PM
  3. mail migration usermail size
    By kmuralidharan in forum Migration
    Replies: 0
    Last Post: 07-10-2007, 08:16 AM
  4. My migration from GroupWise - any suggestions?
    By stuartg.orion in forum Migration
    Replies: 3
    Last Post: 06-11-2007, 05:34 PM
  5. Replies: 5
    Last Post: 06-05-2007, 04:18 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
  •