Hi Bill, hi all
thank you for answering. I know, without any provided information the crystal ball is what is needed.
At the time of writing my post I still tested around with moving the server. So now I will provide some information.
So I just wanted to know if generally there are any known problems when moving to a new server or if my assumptions or the way I was trying to move the server is generally right or not. That was my intent when writing my first post.
Bill, is it possible to do a server migration without using third party software like the Zextras migration tool you recommended? I saw this recommendation a lot of times here in the forums while searching, but I really want to do this by hand and let no software do some unknown magic. Hope you understand that. Just for my understanding - why do you prefer using Zextras migration tool?
All right. What do we have. This is what I've done so far.
Steps 1-6 are from:
https://wiki.zimbra.com/wiki/Ajcody-Notes-Server-Move
- Preparation: Install Ubuntu 16.04 on fresh VM, configure it with exact the same network settings like 14.04 VM. Difference: Name of network device now ens160 instead of eth0. So everything runs smooth. IP okay, DNS okay, Gateway okay, Files hosts, hostname, resolv.conf okay - like the old (at the moment running) server
- Storage mount points exact like the old server: Zimbra has it's own VMDK, 500GB mountet on /opt and formatted as ext4. For importing data from old Zimbra server I temporary mount the VMDK of the old server at the new server on /opt-OLD-ZIMBRA
- install Zimbra with "install.sh -s" from /ADMIN/zcs-8.7.1_GA_1670.UBUNTU16_64.20161025045114/
- rsync -avH --exclude='data/ldap/*' --progress /opt-OLD-ZIMBRA/zimbra/ /opt/zimbra
- rsync -avHS --delete --progress /opt-OLD-ZIMBRA/zimbra/ /opt/zimbra
- /opt/zimbra/libexec/zmfixperms --verbose --extended
Next steps 7-20 (in this list 1-14, this is weird) are from:
https://wiki.zimbra.com/wiki/How_to_mov ... her_server
- chown root:postdrop /opt/zimbra/common/sbin/postqueue
- chown root:postdrop /opt/zimbra/common/sbin/postdrop
- chmod g+s /opt/zimbra/common/sbin/postqueue
- chmod g+s /opt/zimbra/common/sbin/postdrop
- cd /opt/zimbra/common/
- chown root.root *
- chown root.zimbra conf/
- chown -R root.root libexec/
- chown -R root.root bin/
- cd conf
- chown root.zimbra *
- chown zimbra.zimbra master.cf master.cf.in bysender bysender.lmdb tag_as_foreign.re tag_as_foreign.re.in tag_as_originating.re tag_as_originating.re.in
- chown root.root snmp.conf main.cf
- postfix check
This is what I get at point 12:
Code: Select all
Output from 12:
chown: cannot access 'bysender': No such file or directory
chown: cannot access 'bysender.lmdb': No such file or directory
This is what I get at point 14:
Code: Select all
Output from 14:
The program 'postfix' is currently not installed. You can install it by typing:
apt install postfix
The output from the first command "install.sh -s" is just as normal as it could be.
The output from the second command "install.sh" is this: (command output as well as logfile in the code-block)
Code: Select all
===========================================================================
root@mail:/ADMIN/zcs-8.7.1_GA_1670.UBUNTU16_64.20161025045114#
root@mail:/ADMIN/zcs-8.7.1_GA_1670.UBUNTU16_64.20161025045114#
root@mail:/ADMIN/zcs-8.7.1_GA_1670.UBUNTU16_64.20161025045114# ./install.sh
Operations logged to /tmp/install.log.9PRwU3R6
Checking for existing installation...
zimbra-ldap...FOUND zimbra-ldap-8.7.1.GA.1670.UBUNTU16.64
zimbra-logger...FOUND zimbra-logger-8.7.1.GA.1670.UBUNTU16.64
zimbra-mta...FOUND zimbra-mta-8.7.1.GA.1670.UBUNTU16.64
zimbra-dnscache...FOUND zimbra-dnscache-8.7.1.GA.1670.UBUNTU16.64
zimbra-snmp...FOUND zimbra-snmp-8.7.1.GA.1670.UBUNTU16.64
zimbra-store...FOUND zimbra-store-8.7.1.GA.1670.UBUNTU16.64
zimbra-apache...FOUND zimbra-apache-8.7.1.GA.1670.UBUNTU16.64
zimbra-spell...FOUND zimbra-spell-8.7.1.GA.1670.UBUNTU16.64
zimbra-convertd...NOT FOUND
zimbra-memcached...FOUND zimbra-memcached-1.4.25-1zimbra8.7b1.16.04
zimbra-proxy...FOUND zimbra-proxy-8.7.1.GA.1670.UBUNTU16.64
zimbra-archiving...NOT FOUND
zimbra-core...FOUND zimbra-core-8.7.1.GA.1670.UBUNTU16.64
ZCS upgrade from 8.7.1 to 8.7.1 will be performed.
Validating ldap configuration
Unknown Error: It should be impossible to reach this statement.
===========================================================================
Log-Datei /tmp/install.log.9PRwU3R6:
===========================================================================
root@mail:/tmp#
root@mail:/tmp# cat install.log.9PRwU3R6
COMMAND: ldap start
Started slapd: pid 13418
root@mail:/tmp#
root@mail:/tmp#
===========================================================================
I get this output when I run the script "install.sh --skip-upgrade-check": (command output as well as logfile in the code-block)
Code: Select all
===========================================================================
root@mail:/ADMIN/zcs-8.7.1_GA_1670.UBUNTU16_64.20161025045114#
root@mail:/ADMIN/zcs-8.7.1_GA_1670.UBUNTU16_64.20161025045114#
root@mail:/ADMIN/zcs-8.7.1_GA_1670.UBUNTU16_64.20161025045114# ./install.sh --skip-upgrade-check
Operations logged to /tmp/install.log.VdbK2B37
Checking for existing installation...
zimbra-ldap...FOUND zimbra-ldap-8.7.1.GA.1670.UBUNTU16.64
zimbra-logger...FOUND zimbra-logger-8.7.1.GA.1670.UBUNTU16.64
zimbra-mta...FOUND zimbra-mta-8.7.1.GA.1670.UBUNTU16.64
zimbra-dnscache...FOUND zimbra-dnscache-8.7.1.GA.1670.UBUNTU16.64
zimbra-snmp...FOUND zimbra-snmp-8.7.1.GA.1670.UBUNTU16.64
zimbra-store...FOUND zimbra-store-8.7.1.GA.1670.UBUNTU16.64
zimbra-apache...FOUND zimbra-apache-8.7.1.GA.1670.UBUNTU16.64
zimbra-spell...FOUND zimbra-spell-8.7.1.GA.1670.UBUNTU16.64
zimbra-convertd...NOT FOUND
zimbra-memcached...FOUND zimbra-memcached-1.4.25-1zimbra8.7b1.16.04
zimbra-proxy...FOUND zimbra-proxy-8.7.1.GA.1670.UBUNTU16.64
zimbra-archiving...NOT FOUND
zimbra-core...FOUND zimbra-core-8.7.1.GA.1670.UBUNTU16.64
ZCS upgrade from 8.7.1 to 8.7.1 will be performed.
----------------------------------------------------------------------
PLEASE READ THIS AGREEMENT CAREFULLY BEFORE USING THE SOFTWARE.
SYNACOR, INC. ("SYNACOR") WILL ONLY LICENSE THIS SOFTWARE TO YOU IF YOU
FIRST ACCEPT THE TERMS OF THIS AGREEMENT. BY DOWNLOADING OR INSTALLING
THE SOFTWARE, OR USING THE PRODUCT, YOU ARE CONSENTING TO BE BOUND BY
THIS AGREEMENT. IF YOU DO NOT AGREE TO ALL OF THE TERMS OF THIS
AGREEMENT, THEN DO NOT DOWNLOAD, INSTALL OR USE THE PRODUCT.
License Terms for this Zimbra Collaboration Suite Software:
https://www.zimbra.com/license/zimbra-public-eula-2-6.html
----------------------------------------------------------------------
Do you agree with the terms of the software license agreement? [N] y
Checking current number of databases...
Do you want to verify message store database integrity? [Y] n
Checking for installable packages
Found zimbra-core
Found zimbra-ldap
Found zimbra-logger
Found zimbra-mta
Found zimbra-dnscache
Found zimbra-snmp
Found zimbra-store
Found zimbra-apache
Found zimbra-spell
Found zimbra-memcached
Found zimbra-proxy
Use Zimbra's package repository [Y]
Configuring package repository
The Zimbra Collaboration Server appears to already be installed.
It can be upgraded with no effect on existing accounts,
or the current installation can be completely removed prior
to installation for a clean install.
Do you wish to upgrade? [Y]
Scanning for any new or additional packages available for installation
Existing packages will be upgraded
Upgrading zimbra-core
Upgrading zimbra-ldap
Upgrading zimbra-logger
Upgrading zimbra-mta
Upgrading zimbra-dnscache
Upgrading zimbra-snmp
Upgrading zimbra-store
Upgrading zimbra-apache
Upgrading zimbra-spell
Upgrading zimbra-memcached
Upgrading zimbra-proxy
Checking required space for zimbra-core
Checking space for zimbra-store
Checking required packages for zimbra-store
zimbra-store package check complete.
Installing:
zimbra-core
zimbra-ldap
zimbra-logger
zimbra-mta
zimbra-dnscache
zimbra-snmp
zimbra-store
zimbra-apache
zimbra-spell
zimbra-memcached
zimbra-proxy
The system will be modified. Continue? [N] y
Installing packages
zimbra-core will be downloaded.
zimbra-ldap will be downloaded.
zimbra-logger will be downloaded.
zimbra-mta will be downloaded.
zimbra-dnscache will be downloaded.
zimbra-snmp will be downloaded.
zimbra-store will be downloaded.
zimbra-apache will be downloaded.
zimbra-spell will be downloaded.
zimbra-memcached will be downloaded.
zimbra-proxy will be downloaded.
Downloading packages. This will not modify the system. This may take some time.
Saving existing configuration file to /opt/zimbra/.saveconfig
Shutting down zimbra mail
Backing up the ldap database...done.
Upgrading the remote packages
Removing deployed webapp directories
Local packages zimbra-core zimbra-ldap zimbra-logger zimbra-mta zimbra-dnscache zimbra-snmp zimbra-store zimbra-apache zimbra-spell zimbra-proxy selected for installation
Monitor /tmp/install.log.VdbK2B37 for package installation progress
Remote package installation started
Installing zimbra-core-components zimbra-ldap-components zimbra-mta-components zimbra-dnscache-components zimbra-snmp-components zimbra-store-components zimbra-apache-components zimbra-spell-components zimbra-memcached zimbra-proxy-components....done
Local package installation started
Installing zimbra-core zimbra-ldap zimbra-logger zimbra-mta zimbra-dnscache zimbra-snmp zimbra-store zimbra-apache zimbra-spell zimbra-proxy...done
done
Setting defaults from saved config in /opt/zimbra/.saveconfig/config.save
HOSTNAME=mail.ourdomain.de
LDAPHOST=mail.ourdomain.de
LDAPPORT=389
SNMPTRAPHOST=mail.ourdomain.de
SMTPSOURCE=admin@ourdomain.de
SMTPDEST=admin@ourdomain.de
SNMPNOTIFY=yes
SMTPNOTIFY=yes
LDAPROOTPW=*
LDAPZIMBRAPW=*
LDAPPOSTPW=*
LDAPREPPW=*
LDAPAMAVISPW=*
LDAPNGINXPW=*
Restoring existing configuration file from /opt/zimbra/.saveconfig/localconfig.xml...done
./install.sh: line 336: 26700 Segmentation fault (core dumped) /opt/zimbra/libexec/zmsetup.pl
root@mail:/ADMIN/zcs-8.7.1_GA_1670.UBUNTU16_64.20161025045114#
root@mail:/ADMIN/zcs-8.7.1_GA_1670.UBUNTU16_64.20161025045114#
root@mail:/ADMIN/zcs-8.7.1_GA_1670.UBUNTU16_64.20161025045114#
===========================================================================
Log-Datei /tmp/install.log.VdbK2B37:
===========================================================================
root@mail:/tmp#
root@mail:/tmp#
root@mail:/tmp# cat install.log.VdbK2B37
Paketlisten werden gelesen...
Abhängigkeitsbaum wird aufgebaut....
Statusinformationen werden eingelesen....
apt-transport-https is already the newest version (1.2.15ubuntu0.2).
0 aktualisiert, 0 neu installiert, 0 zu entfernen und 0 nicht aktualisiert.
Holen:1 http://security.ubuntu.com/ubuntu xenial-security InRelease [102 kB]
OK:2 http://de.archive.ubuntu.com/ubuntu xenial InRelease
Holen:3 http://de.archive.ubuntu.com/ubuntu xenial-updates InRelease [102 kB]
Holen:4 http://de.archive.ubuntu.com/ubuntu xenial-backports InRelease [102 kB]
OK:5 https://repo.zimbra.com/apt/87 xenial InRelease
Es wurden 306 kB in 0 s geholt (368 kB/s).
Paketlisten werden gelesen...
Paketlisten werden gelesen...
Abhängigkeitsbaum wird aufgebaut....
Statusinformationen werden eingelesen....
zimbra-apache-components is already the newest version (1.0.0-1zimbra8.7b1.16.04).
zimbra-core-components is already the newest version (1.0.0-1zimbra8.7b1.16.04).
zimbra-dnscache-components is already the newest version (1.0.0-1zimbra8.7b1.16.04).
zimbra-ldap-components is already the newest version (1.0.0-1zimbra8.7b1.16.04).
zimbra-memcached is already the newest version (1.4.25-1zimbra8.7b1.16.04).
zimbra-mta-components is already the newest version (1.0.2-1zimbra8.7b1.16.04).
zimbra-proxy-components is already the newest version (1.0.0-1zimbra8.7b1.16.04).
zimbra-snmp-components is already the newest version (1.0.0-1zimbra8.7b1.16.04).
zimbra-spell-components is already the newest version (1.0.0-1zimbra8.7b1.16.04).
zimbra-store-components is already the newest version (1.0.0-1zimbra8.7b1.16.04).
0 aktualisiert, 0 neu installiert, 0 zu entfernen und 0 nicht aktualisiert.
COMMAND: zmlocalconfig -e zimbra_java_home=/opt/zimbra/common/lib/jvm/java
COMMAND: zmlocalconfig -e mailboxd_truststore=/opt/zimbra/common/lib/jvm/java/jre/lib/security/cacerts
COMMAND: zmlocalconfig -s | sed -e "s/ = \(.*\)/=\'\1\'/" > /opt/zimbra/.saveconfig/config.save
COMMAND: zmcontrol shutdown
COMMAND: /opt/zimbra/libexec/zmslapcat /opt/zimbra/data/ldap
REMOTE PACKAGES: zimbra-core-components zimbra-ldap-components zimbra-mta-components zimbra-dnscache-components zimbra-snmp-components zimbra-store-components zimbra-apache-components zimbra-spell-components zimbra-memcached zimbra-proxy-components
LOCAL PACKAGES: zimbra-core zimbra-ldap zimbra-logger zimbra-mta zimbra-dnscache zimbra-snmp zimbra-store zimbra-apache zimbra-spell zimbra-proxy
Paketlisten werden gelesen...
Abhängigkeitsbaum wird aufgebaut....
Statusinformationen werden eingelesen....
zimbra-apache-components is already the newest version (1.0.0-1zimbra8.7b1.16.04).
zimbra-core-components is already the newest version (1.0.0-1zimbra8.7b1.16.04).
zimbra-dnscache-components is already the newest version (1.0.0-1zimbra8.7b1.16.04).
zimbra-ldap-components is already the newest version (1.0.0-1zimbra8.7b1.16.04).
zimbra-memcached is already the newest version (1.4.25-1zimbra8.7b1.16.04).
zimbra-mta-components is already the newest version (1.0.2-1zimbra8.7b1.16.04).
zimbra-proxy-components is already the newest version (1.0.0-1zimbra8.7b1.16.04).
zimbra-snmp-components is already the newest version (1.0.0-1zimbra8.7b1.16.04).
zimbra-spell-components is already the newest version (1.0.0-1zimbra8.7b1.16.04).
zimbra-store-components is already the newest version (1.0.0-1zimbra8.7b1.16.04).
0 aktualisiert, 0 neu installiert, 0 zu entfernen und 0 nicht aktualisiert.
(Lese Datenbank ... 128844 Dateien und Verzeichnisse sind derzeit installiert.)
Vorbereitung zum Entpacken von .../zimbra-core_8.7.1.GA.1670.UBUNTU16.64_amd64.deb ...
Entpacken von zimbra-core (8.7.1.GA.1670.UBUNTU16.64) über (8.7.1.GA.1670.UBUNTU16.64) ...
Vorbereitung zum Entpacken von .../zimbra-ldap_8.7.1.GA.1670.UBUNTU16.64_amd64.deb ...
Entpacken von zimbra-ldap (8.7.1.GA.1670.UBUNTU16.64) über (8.7.1.GA.1670.UBUNTU16.64) ...
Vorbereitung zum Entpacken von .../zimbra-logger_8.7.1.GA.1670.UBUNTU16.64_amd64.deb ...
Entpacken von zimbra-logger (8.7.1.GA.1670.UBUNTU16.64) über (8.7.1.GA.1670.UBUNTU16.64) ...
Vorbereitung zum Entpacken von .../zimbra-mta_8.7.1.GA.1670.UBUNTU16.64_amd64.deb ...
Entpacken von zimbra-mta (8.7.1.GA.1670.UBUNTU16.64) über (8.7.1.GA.1670.UBUNTU16.64) ...
Vorbereitung zum Entpacken von .../zimbra-dnscache_8.7.1.GA.1670.UBUNTU16.64_amd64.deb ...
Entpacken von zimbra-dnscache (8.7.1.GA.1670.UBUNTU16.64) über (8.7.1.GA.1670.UBUNTU16.64) ...
Vorbereitung zum Entpacken von .../zimbra-snmp_8.7.1.GA.1670.UBUNTU16.64_amd64.deb ...
Entpacken von zimbra-snmp (8.7.1.GA.1670.UBUNTU16.64) über (8.7.1.GA.1670.UBUNTU16.64) ...
Vorbereitung zum Entpacken von .../zimbra-store_8.7.1.GA.1670.UBUNTU16.64_amd64.deb ...
Entpacken von zimbra-store (8.7.1.GA.1670.UBUNTU16.64) über (8.7.1.GA.1670.UBUNTU16.64) ...
Vorbereitung zum Entpacken von .../zimbra-apache_8.7.1.GA.1670.UBUNTU16.64_amd64.deb ...
Entpacken von zimbra-apache (8.7.1.GA.1670.UBUNTU16.64) über (8.7.1.GA.1670.UBUNTU16.64) ...
Vorbereitung zum Entpacken von .../zimbra-spell_8.7.1.GA.1670.UBUNTU16.64_amd64.deb ...
Entpacken von zimbra-spell (8.7.1.GA.1670.UBUNTU16.64) über (8.7.1.GA.1670.UBUNTU16.64) ...
Vorbereitung zum Entpacken von .../zimbra-proxy_8.7.1.GA.1670.UBUNTU16.64_amd64.deb ...
Entpacken von zimbra-proxy (8.7.1.GA.1670.UBUNTU16.64) über (8.7.1.GA.1670.UBUNTU16.64) ...
zimbra-core (8.7.1.GA.1670.UBUNTU16.64) wird eingerichtet ...
update-rc.d: warning: start and stop actions are no longer supported; falling back to defaults
update-rc.d: warning: start runlevel arguments (2 5) do not match zimbra Default-Start values (3 5)
insserv: Service nscd has to be enabled to start service zimbra
insserv: exiting now!
update-rc.d: error: insserv rejected the script header
zimbra-ldap (8.7.1.GA.1670.UBUNTU16.64) wird eingerichtet ...
zimbra-logger (8.7.1.GA.1670.UBUNTU16.64) wird eingerichtet ...
zimbra-mta (8.7.1.GA.1670.UBUNTU16.64) wird eingerichtet ...
zimbra-dnscache (8.7.1.GA.1670.UBUNTU16.64) wird eingerichtet ...
zimbra-snmp (8.7.1.GA.1670.UBUNTU16.64) wird eingerichtet ...
zimbra-store (8.7.1.GA.1670.UBUNTU16.64) wird eingerichtet ...
zimbra-apache (8.7.1.GA.1670.UBUNTU16.64) wird eingerichtet ...
zimbra-spell (8.7.1.GA.1670.UBUNTU16.64) wird eingerichtet ...
zimbra-proxy (8.7.1.GA.1670.UBUNTU16.64) wird eingerichtet ...
root@mail:/tmp#
root@mail:/tmp#
root@mail:/tmp#
===========================================================================
Okay. This is what I can provide right now.
I hope this is not to much information at one time.
And of course I really hope anyone can chip in with some useful thoughts
Cheers,
Michael