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

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 06-30-2008, 02:20 PM
Member
 
Posts: 10
Default [SOLVED] Moving ZCS to new server - fails

I am trying to setup a new server with Ubuntu 6.06 LTS with ZCS Network Edition. My current server is running out of storage space so a move is needed. Both are running the exact same version of Ubuntu as well as the same ZCS and license files. ZCS on the new server appears to be functioning with an admin account and I can login using the admin web interface.
I am trying to use Moving ZCS to New Server - Zimbra :: Wiki to help me out, but one of the first lines is giving me errors. I first move the full backup and incremental backup to the new server. I then run zmrestoreldap -lb full-20080628XXXXXXX and I get the following error: Stopping ldap...Can't exec "ldap": No such file or directory at /opt/zimbra/bin/./zmrestoreldap line 133.
ERROR: failed to stop ldap.

Any ideas? Thanks!
Reply With Quote
  #2 (permalink)  
Old 06-30-2008, 08:54 PM
Zimbra Employee
 
Posts: 572
Default

Sounds like the "/opt/zimbra/bin/ldap" script is not in your path, or doesn't exist.
__________________
Quanah Gibson-Mount
Sr. Member of Technical Staff
Zimbra, Inc
A Division of VMware, Inc.
--------------------
Zimbra :: the leader in open source messaging and collaboration
Reply With Quote
  #3 (permalink)  
Old 06-30-2008, 08:58 PM
Member
 
Posts: 10
Default LDAP script is there

I just check for an LDAP script in /opt/zimbra/bin. It is there. I am at a total loss.
__________________
Steve Carrington
Reply With Quote
  #4 (permalink)  
Old 06-30-2008, 09:01 PM
Member
 
Posts: 10
Default

Would it have anything to do with the way I run the zmrestoreldap command? I do sudo -u zimbra /opt/zimbra/bin/zmrestoreladp -lb full2008...........
__________________
Steve Carrington
Reply With Quote
  #5 (permalink)  
Old 07-01-2008, 01:40 AM
Moderator
 
Posts: 7,911
Default

I would sudo to a full shell and the execute the command. I would also check that the zimbra user has the same UID and GID as per the original installation. It would not harm aswell to run /opt/zimbra/libexec/zmfixperms -extended as root.
__________________
Reply With Quote
  #6 (permalink)  
Old 07-01-2008, 07:37 AM
Member
 
Posts: 10
Default

I have tried both of these and I get the same errors. I am going to wipe the new system and start all over again and see if it helps out. The zimbra uid and gid were different, but changing them did not seem to help. Hopefully I will soon post again that all is well. What exactly is the error I am getting talking about? - Can't exec "ldap": No such file or directory at /opt/zimbra/bin/./zmrestoreldap line 133 - I looked at line 133 in zmrestoreldap and I see nothing out of the ordinary. Line 133 is my $rc = 0xffff & system("ldap stop"). It would appear that the problem is stopping ldap. I have manually stopped ldap, and verified it is not running, and I get the the same error message.
__________________
Steve Carrington
Reply With Quote
  #7 (permalink)  
Old 07-01-2008, 09:29 AM
Former Zimbran
 
Posts: 5,606
Default

Try this:
Moving ZCS to Another Server » Zimbra :: Blog

I wrote that, and it's much easier, trust me
Reply With Quote
  #8 (permalink)  
Old 07-01-2008, 10:08 AM
Member
 
Posts: 10
Default

I thought that this was fine for open-source versions, but with the network edition, I assumed that I should use the network edition backup/restore procedure. If the backup and restore method is not working correctly, it makes me wonder how good my backups are worth. Also, the open-source version makes me take the mail server offline for a MUCH longer time. If I cannot get it to work with a backup/restore, I will go this route.
__________________
Steve Carrington
Reply With Quote
  #9 (permalink)  
Old 07-01-2008, 01:28 PM
Intermediate Member
 
Posts: 21
Default

I do this jobs many times with good result.

I make this.

1- install the new server, if possible the same OS that the old one.
2- Install dependences to make possible to install zimbra from scartch. ( in my case debian dependences, a nice howto in howtoforge)
3. download the same zimbra version as the old server
4. run installer int he new server ./install.sh -s "( -s is important)"
5. remove the /opt/zimbra from the new server "rm -rf /opt/zimbra"

6.Install rsyn in both servers and rsync the old server with the new one, in the old server run "rsync -e ssh -avz /opt/zimbra root@ip_new_server:"
7. take a wile, take a break a sit with a coffe..
8. when finish.. then in the new server you have a zimbra directory under root, move it to /opt/ "mv /root/zimbra /opt/", run in the new server again ./install.sh (without -s)
9. when installer ask for upgrade, say "yes"

regards.

B.
Reply With Quote
  #10 (permalink)  
Old 07-01-2008, 01:28 PM
Member
 
Posts: 10
Default

I reloaded Ubuntu fully and tried it all over again - exact same error message. I even installed with the -s option and I get the same error.
__________________
Steve Carrington
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.