Page 1 of 5 123 ... LastLast
Results 1 to 10 of 43

Thread: Problem With Moving ZCS to New Server

  1. #1
    Join Date
    Sep 2006
    Location
    477 Congress Street | Portland, ME 04101
    Posts
    1,374
    Rep Power
    11

    Default Problem With Moving ZCS to New Server

    We are trying to move Zimbra from one server running 4.5.11NE on SLES9 to another server running 4.5.11NE on 64-bit SLES10.

    We followed the instructions in John Holder's blog, and also did the LDAP export/import procedure.

    The import of the ldif file on the new server generated the error:
    Warning - No DB_CONFIG file found in directory /opt/zimbra/openldap-data: (2)
    Expect poor performance for suffix .

    This error repeated when we ran the ZCS installer after the ldif import.

    The ZCS installer then failed at the end with:
    Restoring existing configuration file from /opt/zimbra/.saveconfig/config.save...Restoring backup schedule...done
    Can't load '/opt/zimbra/zimbramon/lib/i586-linux-thread-multi/auto/DBI/DBI.so' for module DBI: /opt/zimbra/zimbramon/lib/i586-linux-thread-multi/auto/DBI/DBI.so: wrong ELF class: ELFCLASS32 at /usr/lib/perl5/5.8.8/x86_64-linux-thread-multi/DynaLoader.pm line 230, line 228.
    at /opt/zimbra/zimbramon/lib/i586-linux-thread-multi/DBI.pm line 266
    BEGIN failed--compilation aborted at /opt/zimbra/zimbramon/lib/i586-linux-thread-multi/DBI.pm line 266, line 228.
    Compilation failed in require at /opt/zimbra/libexec/scripts/Migrate.pm line 18, line 228.
    BEGIN failed--compilation aborted at /opt/zimbra/libexec/scripts/Migrate.pm line 18, line 228.
    Compilation failed in require at /opt/zimbra/libexec/zmupgrade.pm line 21, line 228.
    BEGIN failed--compilation aborted at /opt/zimbra/libexec/zmupgrade.pm line 21, line 228.
    Compilation failed in require at /opt/zimbra/libexec/zmsetup.pl line 59, line 228.
    BEGIN failed--compilation aborted at /opt/zimbra/libexec/zmsetup.pl line 59, line 228.


    Any ideas?

    Thanks!
    Mark

  2. #2
    Join Date
    Oct 2005
    Location
    Thatcher, AZ
    Posts
    5,606
    Rep Power
    21

    Default

    John Holder? You followed that quack's instructions?

    So moving to 64 bit is a bit tougher. You must dump ldap before moving.
    Then import it into your dummy install.
    Then move /opt/zimbra/openldap-data from the dummy install to somewhere safe
    Then copy your backup over the /opt/zimbra
    Then copy your "new" openldap-data into /opt/zimbra
    Then run ./install.sh

    (Sorry it took so long to reply, PM me if you need more help)

  3. #3
    Join Date
    Sep 2006
    Location
    477 Congress Street | Portland, ME 04101
    Posts
    1,374
    Rep Power
    11

    Default

    Quote Originally Posted by jholder View Post
    John Holder? You followed that quack's instructions?

    So moving to 64 bit is a bit tougher. You must dump ldap before moving.
    Then import it into your dummy install.
    Then move /opt/zimbra/openldap-data from the dummy install to somewhere safe
    Then copy your backup over the /opt/zimbra
    Then copy your "new" openldap-data into /opt/zimbra
    Then run ./install.sh

    (Sorry it took so long to reply, PM me if you need more help)
    Ah! The wiki article on exporting/importing ldap data I understood to say to delete on the new machine the contents of /opt/zimbra/openldap-data before doing the import.

    So, you are saying I think that we should:

    1. Run install.sh -s on new machine
    2. Import the ldif file into this dummy install
    3. Copy on the new machine /opt/zimbra/openldap-data someplace safe
    4. Replace the entire /opt/zimbra tree on the new server with the /opt/zimbra tree from the old 32-bit server
    5. On the new server, now replace the contents of the /opt/zimbra/openldap-data directory (which now has data from the 32-bit server) with the new server contents we previously copied to a safe place in step 3 above
    6. Run ./install.sh with no options to perform an "upgrade".


    We'll try that and see how it goes!

    Thanks John!

    All the best,
    Mark

    P.S. We have a ticket open with A. Cody on this one. I'll update the ticket once I try the above steps towards the end of the day.

  4. #4
    Join Date
    Oct 2005
    Location
    Thatcher, AZ
    Posts
    5,606
    Rep Power
    21

    Default

    Yep, that's right.

    I like to make things as complicated as possible, adding many many steps.

    Good luck,
    john

  5. #5
    Join Date
    Apr 2006
    Posts
    48
    Rep Power
    9

    Default 32 bit to 64 bit

    Looks like I posted pretty much the same question right after you lol. I was wondering about the import of the ldap. Do I copy over the slapd.conf and the DB_CONFIG files from the old server also. Because doing an ./install.sh -s doesn't install these files and when I run /opt/zimbra/openldap/sbin/slapadd -f /opt/zimbra/conf/slapd.conf -cv < /backup/ldap.bak to restore ldap of course it is missing the slapd.conf. Any help is appreciated.

  6. #6
    Join Date
    Oct 2005
    Location
    Thatcher, AZ
    Posts
    5,606
    Rep Power
    21

    Default

    wiki is too complicated. Try this:
    http://www.zimbra.com/blog/archives/...ap_data_1.html

  7. #7
    Join Date
    Sep 2006
    Location
    477 Congress Street | Portland, ME 04101
    Posts
    1,374
    Rep Power
    11

    Default

    Quote Originally Posted by jholder View Post
    But John...

    That article says to delete the contents of /opt/zimbra/openldap-data and if I understood you correctly, that's what got me into trouble.

    Please clarify!

    Thanks oh wise Zimbra sensei... (hey, your avatar looks very pensive so I thought I should sign off with something appropriate...)

    Mark

  8. #8
    Join Date
    Oct 2005
    Location
    Thatcher, AZ
    Posts
    5,606
    Rep Power
    21

    Default

    haha

    Follow the "dumping ldap to disk" part only. You just want to get the ldif file. Then refer to the other instructions.

  9. #9
    Join Date
    Sep 2006
    Location
    477 Congress Street | Portland, ME 04101
    Posts
    1,374
    Rep Power
    11

    Default

    Hi John,

    Something is not quite right here...

    On the new 64-bit server, if I run ./install.sh -s, there is nothing in the /opt/zimbra/openldap-data directory.

    If I then try to import the ldif file created from the 32-bit server, I get the error about the missing CONFIG file (which is accurate), and the subsequent running of ./install.sh as an upgrade fails as described in a previous post.

    Now, if after running ./install.sh -s on the new server I instead copy over /opt/zimbra from the 32-bit server to the 64-bit server to populate (among other things) the /opt/zimbra/openldap-data directory, then when I go to import the ldif file created from the 32-bit server, I get lots of errors that all those keys are already in there.

    IOW:
    1. ./install.sh -s + import ldif = missing ldap CONFIG error.

    2. ./install.sh -s + overwrite /opt/zimbra + import ldif = ldap import failures.

    Is any of this making sense?

    Thanks!
    Mark

  10. #10
    Join Date
    Oct 2005
    Location
    Thatcher, AZ
    Posts
    5,606
    Rep Power
    21

    Default

    Okay sorry. My fault. Here's a quick once over

    1) Backup working zimbra
    2) Dump ldap to disk using wiki page (create ldif file)
    3) stop running zimbra, shut down machine
    4) bring up new machine with same hostname, same IP doesn't matter as long is DNS is redirecting
    5) install current version of zimbra with new flavor for OS. Go through entire setup (ie don't use ./install.sh -s, just./install.sh)
    6) wipe /opt/zimbra/openldap-data
    7) Import ldif file using wiki page
    8) Move /opt/zimbra/openldap-data dir to safe local
    9) replace /opt/zimbra with backup
    10) Move openldap-data dir into place (/opt/zimbra/openldap-data)
    11) run ./install.sh -s

Similar Threads

  1. really odd server timeout problem
    By danix in forum Installation
    Replies: 1
    Last Post: 02-12-2008, 03:35 PM
  2. ZCS alongside existing server
    By ebatte in forum Installation
    Replies: 0
    Last Post: 01-23-2008, 12:33 PM
  3. Replies: 10
    Last Post: 11-21-2007, 03:32 AM
  4. Moving Zimbra to New Server
    By Jazzhands in forum Installation
    Replies: 1
    Last Post: 08-03-2007, 07:01 PM
  5. Getting problems in FC4 while instalation
    By kitty_bhoo in forum Installation
    Replies: 13
    Last Post: 09-12-2006, 11:34 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
  •