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 02-22-2008, 12:16 AM
Active Member
 
Posts: 36
Default Migrating from NE to NE

Helloo,

Since we have encountered some harware problems with our server, we plan to move our mail server to another machine. The only procedure I found for moving from one mailserver to another is the one for opensource -> NE. We are currently running a RHEL5 server and ZCS 4.5.9 NE. The new environmemnt will be similar (RHEL5/ZCS 4.5.9). Is it safe to apply the same procedure for moving from NE to NE??

Thank you.

The procedure for moving from open source to NE:

Network Edition Moving from Open Source to Network Edition ZCS - Zimbra :: Wiki
Reply With Quote
  #2 (permalink)  
Old 02-22-2008, 12:17 AM
Moderator
 
Posts: 2,207
Default

Check this one : http://www.zimbra.com/blog/archives/...er_server.html
Reply With Quote
  #3 (permalink)  
Old 02-22-2008, 12:23 AM
Active Member
 
Posts: 36
Default

Thanks!! I'll give it a try today.
Reply With Quote
  #4 (permalink)  
Old 02-26-2008, 01:55 AM
Active Member
 
Posts: 36
Default

Not good...

here's what i get when trying to run the setup on the new machine (i ran zmfixperms prior to that):


Setting defaults from saved config in /opt/zimbra/.saveconfig/config.save
HOSTNAME=zimbra.pentalog.fr
LDAPHOST=
LDAPPORT=
SNMPTRAPHOST=
SMTPSOURCE=
SMTPDEST=
SNMPNOTIFY=0
SMTPNOTIFY=0
LDAPROOTPW=zimbra
LDAPZIMBRAPW=zimbra
Restoring existing configuration file from /opt/zimbra/.saveconfig/config.save...Restoring backup schedule...done
Operations logged to /tmp/zmsetup.log.8887
ERROR: service.FAILURE (system failure: getDirectContext) (cause: javax.naming.CommunicationException localhost:389)
ERROR: service.FAILURE (system failure: getDirectContext) (cause: javax.naming.CommunicationException localhost:389)
Setting defaults...Done
Setting defaults from existing config...Warning: null valued key 'mysql_logger_root_password'
Checking for port conflicts
Checking ldap status
Starting ldap
ldap startup failed with exit code 256
Setting defaults from ldap...ERROR: service.FAILURE (system failure: getDirectContext) (cause: javax.naming.CommunicationException localhost:389)
ERROR: service.FAILURE (system failure: getDirectContext) (cause: javax.naming.CommunicationException localhost:389)
ERROR: service.FAILURE (system failure: getDirectContext) (cause: javax.naming.CommunicationException localhost:389)
ERROR: service.FAILURE (system failure: getDirectContext) (cause: javax.naming.CommunicationException localhost:389)
ERROR: service.FAILURE (system failure: getDirectContext) (cause: javax.naming.CommunicationException localhost:389)
ERROR: service.FAILURE (system failure: getDirectContext) (cause: javax.naming.CommunicationException localhost:389)
ERROR: service.FAILURE (system failure: getDirectContext) (cause: javax.naming.CommunicationException localhost:389)
ERROR: service.FAILURE (system failure: getDirectContext) (cause: javax.naming.CommunicationException localhost:389)
ERROR: service.FAILURE (system failure: getDirectContext) (cause: javax.naming.CommunicationException localhost:389)
ERROR: service.FAILURE (system failure: getDirectContext) (cause: javax.naming.CommunicationException localhost:389)
ERROR: service.FAILURE (system failure: getDirectContext) (cause: javax.naming.CommunicationException localhost:389)
ERROR: service.FAILURE (system failure: getDirectContext) (cause: javax.naming.CommunicationException localhost:389)
ERROR: service.FAILURE (system failure: getDirectContext) (cause: javax.naming.CommunicationException localhost:389)
ERROR: service.FAILURE (system failure: getDirectContext) (cause: javax.naming.CommunicationException localhost:389)
ERROR: service.FAILURE (system failure: getDirectContext) (cause: javax.naming.CommunicationException localhost:389)
ERROR: service.FAILURE (system failure: getDirectContext) (cause: javax.naming.CommunicationException localhost:389)
Done

Main menu


1) Hostname: zimbra.pentalog.fr
2) Ldap master host: zimbra.pentalog.fr
3) Ldap port: 389
4) Ldap password: set
** 5) TimeZone: UNSET
6) zimbra-ldap: Enabled
7) zimbra-store: Enabled
+Create Admin User: no
+Enable automated spam training: yes
******* +Spam training user: UNSET
******* +Non-spam(Ham) training user: UNSET
+Global Documents Account: wiki@zimbra.pentalog.fr
+SMTP host: zimbra.pentalog.fr
******* +Web server HTTP port: UNSET
******* +Web server HTTPS port: UNSET
+Web server mode: mixed
+Enable POP/IMAP proxy: no
******* +IMAP server port: UNSET
******* +IMAP server SSL port: UNSET
******* +POP server port: UNSET
******* +POP server SSL port: UNSET
+Use spell check server: yes
+Spell server URL: http://zimbra.pentalog.fr:7780/aspell.php

8) zimbra-mta: Enabled
9) zimbra-snmp: Enabled
10) zimbra-logger: Enabled
11) zimbra-spell: Enabled
12) Enable default backup schedule: yes
r) Start servers after configuration yes
s) Save config to file
x) Expand menu
q) Quit


after configuring everything:


Main menu

1) Hostname: zimbra.pentalog.fr
2) Ldap master host: zimbra.pentalog.fr
3) Ldap port: 389
4) Ldap password: set
5) TimeZone: (GMT+01.00) Brussels / Copenhagen / Madrid / Paris
6) zimbra-ldap: Enabled
+Create Domain: no

7) zimbra-store: Enabled
+Create Admin User: no
+Enable automated spam training: yes
+Spam training user: spam.xjooz.tx@zimbra.pentalog.fr
+Non-spam(Ham) training user: ham.tbgouq7uk@zimbra.pentalog.fr
+Global Documents Account: wiki@zimbra.pentalog.fr
+SMTP host: zimbra.pentalog.fr
+Web server HTTP port: 80
+Web server HTTPS port: 443
+Web server mode: mixed
+Enable POP/IMAP proxy: no
+IMAP server port: 143
+IMAP server SSL port: 993
+POP server port: 110
+POP server SSL port: 995
+Use spell check server: yes
+Spell server URL: http://zimbra.pentalog.fr:7780/aspell.php

8) zimbra-mta: Enabled
+MTA Auth host: zimbra.pentalog.fr
+Enable Spamassassin: yes
+Enable Clam AV: yes
+Notification address for AV alerts: admin@zimbra.pentalog.fr

9) zimbra-snmp: Enabled
+Enable SNMP notifications: yes
+SNMP Trap hostname: zimbra.pentalog.fr
+Enable SMTP notifications: yes
+SMTP Source email address: admin@zimbra.pentalog.fr
+SMTP Destination email address: admin@zimbra.pentalog.fr

10) zimbra-logger: Enabled
11) zimbra-spell: Enabled

12) Enable default backup schedule: yes
c) Collapse menu
r) Start servers after configuration yes
s) Save config to file
q) Quit

Address unconfigured (**) items or correct ldap configuration (? - help)

No "a" for apply. What's to be done??

If needed, i can post the installation log.
Reply With Quote
  #5 (permalink)  
Old 02-26-2008, 02:23 AM
Moderator
 
Posts: 2,207
Default

Are your host file and IP address correctly setup ?
(DNS should not have changed).
Reply With Quote
  #6 (permalink)  
Old 02-26-2008, 02:40 AM
Active Member
 
Posts: 36
Default

yes, both of them are.

Here's something strange that i found in the installation log:

Preparing packages for installation...
zimbra-ldap-4.5.9_GA_1454.RHEL5-20071016194233
find: /opt/zimbra/lib/ext-common: No such file or directory
find: /opt/zimbra/lib/ext-common: No such file or directory
chown: cannot access `/opt/zimbra/dspam-*': No such file or directory
chown: cannot access `/opt/zimbra/dspam/*': No such file or directory
chown: cannot access `/opt/zimbra/httpd-*': No such file or directory
chown: cannot access `/opt/zimbra/httpd/*': No such file or directory
chown: cannot access `/opt/zimbra/logger/mysql-*': No such file or directory
chown: cannot access `/opt/zimbra/logger/mysql/*': No such file or directory
chown: cannot access `/opt/zimbra/mysql-*': No such file or directory
chown: cannot access `/opt/zimbra/mysql/*': No such file or directory
chown: cannot access `/opt/zimbra/net-snmp-*': No such file or directory
chown: cannot access `/opt/zimbra/snmp/*': No such file or directory
chown: cannot access `/opt/zimbra/amavisd/sbin': No such file or directory
chown: cannot access `/opt/zimbra/tomcat/bin': No such file or directory
chmod: cannot access `/opt/zimbra/postfix/conf/postfix-script': No such file or directory
chmod: cannot access `/opt/zimbra/postfix/conf/post-install': No such file or directory

COMMAND: cat /opt/zimbra/.saveconfig/backup.save | xargs zmschedulebackup -R

ERROR: Invalid schedule: -a

Schedule regular backups

Usage: zmshedulebackup [-q|-s|-A|-R|-F|-D] [-t <target>] [-z] [schedule] [schedule...]
-q: query (default command) - prints existing schedule
-s: save schedule (format applicable for restoring)
-F: flush - remove current schedule (cancel all scheduled backups)
-A: append - adds specified backup to current schedule
-R: replace - replace current schedule with specified schedule
-D: Default - replace current schedule with DEFAULT schedule
-z: compress - compress email blobs with zip
-t: target - backup target location (default is /opt/zimbra/backup)
-a: account - account specific (default is all)


schedule: <i|f|d arg> <time specifier>
i: incremental backup (not needed in Auto-Grouped backup mode)
f: full backup
d <arg>: delete backups. <arg> is n{d|m|y}
time specifier: crontab style time specifier, QUOTED. See crontab(5)
Fields are:
minute 0-59
hour 0-23
day of month 1-31
month 1-12
day of week 0-7 (0 or 7 is Sun, or use names)

Default schedule in Standard backup mode is:
f 0 1 * * 6
i 0 1 * * 0-5
d 1m 0 0 * * *

Default schedule in Auto-Grouped backup mode is:
f 0 1 * * 0-6
d 1m 0 0 * * *


The specified directories exists and have the appropiate permissions. Haven't got a clue of what's happening.

Inside /etc/sudousers i have

#
# Disable "ssh hostname sudo <cmd>", because it will show the password in clear.
# You have to run "ssh -t hostname sudo <cmd>".
#
#Defaults requiretty
Reply With Quote
  #7 (permalink)  
Old 02-26-2008, 06:50 AM
Moderator
 
Posts: 6,237
Default

I've seen this before if the installer can't verify the ldap_url, by attempting to bind. So I think either the ldap server, port, or password might not be configured correctly - or something else is on the ldap port.
As also exhibited by your:
Quote:
Originally Posted by mannes
ldap startup failed with exit code 256
Setting defaults from ldap...ERROR: service.FAILURE (system failure:getDirectContext) (cause: javax.naming.CommunicationException localhost:389)
on this 2nd/new box:
ps aux | grep zimbra
ps auxww | grep zimbra
ps auxww | grep slapd
kill -9 pid# any remaining
lsof -i :389
netstat -a
Anything on it?

If you think it's the password - you can try:
zmldappasswd --root newpass
zmldappasswd newpass
Reply With Quote
  #8 (permalink)  
Old 02-26-2008, 08:46 AM
Active Member
 
Posts: 36
Default

Still no luck whatsoever. I'll give it a try with the OSS-NE procedure for a NE to a NE.
Reply With Quote
  #9 (permalink)  
Old 02-26-2008, 09:00 AM
Moderator
 
Posts: 6,237
Default

That procedure is a little different.

You can use the disaster recovery changing server method etc: /docs/ne/latest/administration_guide/10_Backup_Restore.13.1.html

Feel free to open a support ticket and someone can give you a hand.
Reply With Quote
  #10 (permalink)  
Old 02-27-2008, 07:16 AM
Active Member
 
Posts: 36
Default

Ok, I managed to recover the backups from the old server and I used them to get the new box up and running. But I encountered a few problems:

- the COSs were not rebuilt
- none of the distribution lists was recreated
- none of the domain aliases was recreated

Is this normal?? What's to be done to get them back??
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.