La version 8.6 commence à vieillir quelque peu et j'ai décidé de migrer vers la version 8.7, toujours dans sa machine KVM. L'usage de la VM simplifie les opérations :
- Sauvegarde complète (faire une image du disque (dd + bzip2), au cas où !
- Récupération du logiciel, tiens il a beaucoup maigri, à peine 286Mo au lieu de plus de 700 ?
- Lancement des opérations.
Avant de migrer il faut installer le proxy si vous ne l'avez pas fait en 8.6, pour cela ré-installer la 8.6 en y incluant le proxy.
Il suffit ensuite de "dé-tarer" l'archive dans un coin tranquille et de lancer le script "./install.sh" ce qui vous fournira un listing analogue au suivant, attention l'opération est assez longue.
Quelques réponses obligatoires sont marquées en rouge, rassurez vous il y en a peu.
Operations logged to /tmp/install.log.pl8L1ggo
Checking for existing installation...
zimbra-ldap...FOUND zimbra-ldap-8.6.0.GA.1153.UBUNTU14.64
zimbra-logger...FOUND zimbra-logger-8.6.0.GA.1153.UBUNTU14.64
zimbra-mta...FOUND zimbra-mta-8.6.0.GA.1153.UBUNTU14.64
zimbra-dnscache...FOUND zimbra-dnscache-8.6.0.GA.1153.UBUNTU14.64
zimbra-snmp...FOUND zimbra-snmp-8.6.0.GA.1153.UBUNTU14.64
zimbra-store...FOUND zimbra-store-8.6.0.GA.1153.UBUNTU14.64
zimbra-apache...FOUND zimbra-apache-8.6.0.GA.1153.UBUNTU14.64
zimbra-spell...FOUND zimbra-spell-8.6.0.GA.1153.UBUNTU14.64
zimbra-convertd...NOT FOUND
zimbra-memcached...FOUND zimbra-memcached-8.6.0.GA.1153.UBUNTU14.64
zimbra-proxy...FOUND zimbra-proxy-8.6.0.GA.1153.UBUNTU14.64
zimbra-archiving...NOT FOUND
zimbra-core...FOUND zimbra-core-8.6.0.GA.1153.UBUNTU14.64
ZCS upgrade from 8.6.0 to 8.7.1 will be performed.
Checking for existing proxy service in your environment
Checking for existing memcached service in your environment
Validating ldap configuration
LDAP validation succeeded. Continuing.
----------------------------------------------------------------------
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] Y
Importing Zimbra GPG key
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] 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.
-----> on utilise maintenant un repository ce qui explique la relative petitesse de l'archive téléchargée. Le chargement des paquets nécessaires n'est pas des plus rapides et à des vitesses très irrégulières (de 40K/sec à 5M/sec et pourtant cela vient de cloudfront !) ... le message "This may take some time" est bien mérité !
------> un moment après :
Downloading Remote package zimbra-memcached version 1.4.25-1zimbra8.7b1.14.04
Saving existing configuration file to /opt/zimbra/.saveconfig
Shutting down zimbra mail
Removing existing packages
zimbra-ldap...done
zimbra-logger...done
zimbra-mta...done
zimbra-dnscache...done
zimbra-snmp...done
zimbra-store...done
zimbra-spell...done
zimbra-memcached...done
zimbra-proxy...done
zimbra-apache...done
zimbra-core...done
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.pl8L1ggo 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....
----------> le chargement des composants semble se faire avec "apt-get" et "dpkg" mais on ne voit rien sur la console.
----------->
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
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=xxx-zimbra-xxx.jpp.fr
LDAPHOST=xxx-zimbra-xxx.jpp.fr
LDAPPORT=389
SNMPTRAPHOST=xxx-zimbra-xxx.jpp.fr
SMTPSOURCE=le_compte_admin
SMTPDEST=le_compte_admin
SNMPNOTIFY=yes
SMTPNOTIFY=yes
LDAPROOTPW=*
LDAPZIMBRAPW=*
LDAPPOSTPW=*
LDAPREPPW=*
LDAPAMAVISPW=*
LDAPNGINXPW=*
Restoring existing configuration file from /opt/zimbra/.saveconfig/localconfig.xml...done
Operations logged to /tmp/zmsetup.20161111-193459.log
Adding /opt/zimbra/conf/ca/ca.pem to cacerts
Upgrading from 8.6.0_GA_1153 to 8.7.1_GA_1670
Stopping zimbra services...
Stopping zimbra services...done.
This appears to be 8.6.0_GA
Starting mysql...done.
Checking ldap status...not running.
Checking ldap status...not running.
Starting ldap...done.
Checking ldap status...already running.
Schema upgrade required from version 103 to 107.
Running /opt/zimbra/libexec/scripts/migrate20150401-ZmgDevices.pl
Fri Nov 11 19:35:45 2016: Verified schema version 103.
Fri Nov 11 19:35:45 2016: Verified schema version 103.
Fri Nov 11 19:35:45 2016: Updating DB schema version from 103 to 104.
Running /opt/zimbra/libexec/scripts/migrate20150515-DataSourcePurgeTables.pl
Fri Nov 11 19:35:48 2016: Verified schema version 104.
Fri Nov 11 19:36:11 2016: Verified schema version 104.
Fri Nov 11 19:36:11 2016: Updating DB schema version from 104 to 105.
Running /opt/zimbra/libexec/scripts/migrate20150623-ZmgDevices.pl
Fri Nov 11 19:36:14 2016: Verified schema version 105.
Fri Nov 11 19:36:14 2016: Verified schema version 105.
Fri Nov 11 19:36:14 2016: Updating DB schema version from 105 to 106.
Running /opt/zimbra/libexec/scripts/migrate20150702-ZmgDevices.pl
Fri Nov 11 19:36:17 2016: Verified schema version 106.
Fri Nov 11 19:36:19 2016: Verified schema version 106.
Fri Nov 11 19:36:19 2016: Updating DB schema version from 106 to 107.
Stopping mysql...
Updating from 8.6.1_GA
Updating from 8.7.0_BETA1
Updating mailboxd_java_options to remove deprecated PermSize and MaxPermSize java options.
Updating from 8.7.0_BETA2
Updating from 8.7.0_RC1
Updating from 8.7.0_RC2
Updating from 8.7.0_GA
Updating from 8.7.1_GA
Updating global config and COS's with attributes introduced after 8.6.0_GA...done.
Stopping ldap...done.
Upgrade complete.
Checking ldap status....not running.
Starting ldap...done.
Setting defaults...done.
Setting defaults from existing config...
Checking for port conflicts
Setting defaults from ldap...done.
Saving config in /opt/zimbra/config.12373...done.
Operations logged to /tmp/zmsetup.20161111-193459.log
Setting local config values...done.
Initializing core config...Setting up CA...done.
Deploying CA to /opt/zimbra/conf/ca ...done.
Setting replication password...done.
Setting Postfix password...done.
Setting amavis password...done.
Setting nginx password...done.
Creating server entry for xxx-zimbra-xxx.jpp.fr...already exists.
Setting Zimbra IP Mode...done.
Saving SSL Certificate in ldap...done.
Setting spell check URL...done.
Setting service ports on xxx-zimbra-xxx.jpp.fr...done.
Setting Keyboard Shortcut Preferences...done.
Setting zimbraFeatureTasksEnabled=TRUE...done.
Setting Master DNS IP address(es)...done.
Setting DNS cache tcp lookup preference...done.
Setting DNS cache udp lookup preference...done.
Setting DNS tcp upstream preference...done.
Setting TimeZone Preference...done.
Initializing mta config...done.
Setting services on xxx-zimbra-xxx.jpp.fr...done.
Adding xxx-zimbra-xxx.jpp.fr to zimbraMailHostPool in default COS...done.
Creating user spam@jpp.fr...already exists.
Creating user ham@jpp.fr...already exists.
Creating user virus-quarantine.6ec8zwetz@jpp.fr...already exists.
Setting spam training and Anti-virus quarantine accounts...done.
Configuring SNMP...done.
Setting up syslog.conf...done.
Starting servers...
done.
Checking for deprecated zimlets...done.
Checking for network zimlets in LDAP...done.
Removing network zimlets...
Finished removing network zimlets.
Installing common zimlets...
com_zimbra_phone...done.
com_zimbra_tooltip...done.
com_zimbra_viewmail...done.
com_zimbra_attachmail...done.
com_zimbra_adminversioncheck...done.
com_zimbra_email...done.
com_zimbra_ymemoticons...done.
com_zimbra_webex...done.
com_zimbra_url...done.
com_zimbra_proxy_config...done.
com_zimbra_clientuploader...done.
com_zimbra_attachcontacts...done.
com_zimbra_srchhighlighter...done.
com_zimbra_mailarchive...done.
com_zimbra_cert_manager...done.
com_zimbra_date...done.
com_zimbra_bulkprovision...done.
Finished installing common zimlets.
Getting list of all zimlets...done.
Updating non-standard zimlets...
Finished updating non-standard zimlets.
Restarting mailboxd...done.
Skipping creation of default domain GAL sync account - existing install detected.
You have the option of notifying Zimbra of your installation.
This helps us to track the uptake of the Zimbra Collaboration Server.
The only information that will be transmitted is:
The VERSION of zcs installed (8.7.1_GA_1670_UBUNTU14_64)
The ADMIN EMAIL ADDRESS created (admin@jpp.fr)
Notify Zimbra of your installation? [Yes] Notifying Zimbra of installation via http://www.zimbra.com/cgi-bin/notify.cgi?VER=8.7.1_GA_1670_UBUNTU14_64&…
Notification complete
Setting up zimbra crontab...done.
Moving /tmp/zmsetup.20161111-193459.log to /opt/zimbra/log
Configuration complete - press return to exit
Et maintenant vérifions si cela fonctionne ... OUIIII, le Webmail est accessible et on peut envoyer des messages .... et ils arrivent. C'est ce que l'on demande à un système de mail, même en version 8.7.
La migration de 8.6 à 8.7 est un succès, ce qui reste dans la norme des paquets Zimbra.