Aller au contenu

Mettre à jour Zimbra

zimbra_logoVoilà maintenant un moment que j'utilise Zimbra, et je n'avais pas encore fait d'article pour expliquer comment mettre à jour une installation existante. La version 6.0.2 viens de sortir, c'est donc l'occasion de me rattraper.

Mettre à jour une installation de Zimbra est une opération très simple et somme toute assez rapide. L'installeur détecte automatiquement la présence d'une version antérieure et propose de lui-même la mise à jour. Notez que chaque mise à jour est un peu comme un service pack, dans la mesure ou elle contient toutes les modifications depuis la dernière version majeure. Vous n'êtes donc pas obligé d'appliquer tous les patch successifs si vous avez pris du retard.

Téléchargement et décompression de l'archive

La première étape consiste bien entendu à télécharger la nouvelle version sur le serveur. Vous trouverez l'archive à télécharger sur la page : http://www.zimbra.com/community/downloads.html.

Une fois le téléchargement terminé, vous devez extraire les fichiers de l'archive avant de pouvoir lancer l'installeur.

$ tar fxvz zcs-6.0.2_GA_1912.RHEL5_64.20091020161509.tgz
Ensuite, on se rend dans le dossier obtenu, zcs-6.0.2_GA_1912.RHEL5_64.20091020161509 dans notre exemple, et on peut lancer la commande d'installation. Notez que vous devez être connecté en root pour effectuer cette opération.

Lancement de la mise à jour

# cd zcs-6.0.2_GA_1912.RHEL5_64.20091020161509
# ./install.sh
Si, comme moi, vous utilisez CentOS, vous devez prendre la version pour Red Hat Entreprise Linux et utiliser la commande suivante pour l'installation, faute de quoi l'opération ne pourras pas se faire, étant donné que l'installeur fait un contrôle strict de la plate-forme de destination :
# ./install.sh --platform-override

Le déroulement de la mise à jour

Zimbra vérifie les éléments déjà installés

Operations logged to /tmp/install.log.4377
Checking for existing installation...
 zimbra-ldap...FOUND zimbra-ldap-6.0.1_GA_1816
 zimbra-logger...FOUND zimbra-logger-6.0.1_GA_1816
 zimbra-mta...FOUND zimbra-mta-6.0.1_GA_1816
 zimbra-snmp...FOUND zimbra-snmp-6.0.1_GA_1816
 zimbra-store...FOUND zimbra-store-6.0.1_GA_1816
 zimbra-apache...FOUND zimbra-apache-6.0.1_GA_1816
 zimbra-spell...FOUND zimbra-spell-6.0.1_GA_1816
 zimbra-convertd...NOT FOUND
 zimbra-memcached...NOT FOUND
 zimbra-proxy...NOT FOUND
 zimbra-archiving...NOT FOUND
 zimbra-cluster...NOT FOUND
 zimbra-core...FOUND zimbra-core-6.0.1_GA_1816
ZCS upgrade from 6.0.1 to 6.0.2 will be performed.
Puis, il sauvegarde la configuration existante
Saving existing configuration file to /opt/zimbra/.saveconfig
Ensuite, il affiche la traditionnelle licence
PLEASE READ THIS AGREEMENT CAREFULLY BEFORE USING THE SOFTWARE.
ZIMBRA, INC. ("ZIMBRA") 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 the Zimbra Collaboration Suite:
 http://www.zimbra.com/license/zimbra_public_eula_2.1.html
 
Press Return to continue
On passe à la vérification des pré-requis
Checking for prerequisites...
 FOUND: NPTL
 FOUND: sudo-1.6.9p17-3
 FOUND: libidn-0.6.5-1.1
 FOUND: gmp-4.1.4-10
 FOUND: compat-libstdc++-33-3.2.3-61
compat-libstdc++-33-3.2.3-61
 FOUND: /usr/lib64/libstdc++.so.5
 FOUND: /usr/lib64/libstdc++.so.6
Checking for suggested prerequisites...
 FOUND: perl-5.8.8
 FOUND: sysstat
Prerequisite check complete.
Checking current number of databases...
Puis Zimbra nous demande si nous voulons vérifier l'intégrité de la base de données
Do you want to verify message store database integrity? [Y]
Verifying integrity of message store databases.  This may take a while.
mysqld is alive
No errors found
Tout est ok, l'upgrade peut commencer
Checking for installable packages
 
Found zimbra-core
Found zimbra-ldap
Found zimbra-logger
Found zimbra-mta
Found zimbra-snmp
Found zimbra-store
Found zimbra-apache
Found zimbra-spell
Found zimbra-memcached
Found zimbra-proxy
 
The Zimbra Collaboration Suite appears already to 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]
Choix éventuel des paquetages supplémentaires à installer
Select the packages to install
 Upgrading zimbra-core
 Upgrading zimbra-ldap
 Upgrading zimbra-logger
 Upgrading zimbra-mta
 Upgrading zimbra-snmp
 Upgrading zimbra-store
 Upgrading zimbra-apache
 Upgrading zimbra-spell
 
Install zimbra-memcached [N]
Install zimbra-proxy [N]
Un petit résumé et une mise en garde (CentOS vs RHEL) avant de commencer
Checking required space for zimbra-core
checking space for zimbra-store
 
Installing:
 zimbra-core
 zimbra-ldap
 zimbra-logger
 zimbra-mta
 zimbra-snmp
 zimbra-store
 zimbra-apache
 zimbra-spell
 
You appear to be installing packages on a platform different
than the platform for which they were built.
 
This platform is CentOS5_64
Packages found: RHEL5_64
This may or may not work.
 
Using packages for a platform in which they were not designed for
may result in an installation that is NOT usable. Your support
options may be limited if you choose to continue.
 
Install anyway? [N] Y
The system will be modified.  Continue? [N] Y
L'installation commence effectivement
Shutting down zimbra mail
 
Backing up the ldap database...done.
 
Removing existing packages
 
 zimbra-ldap...done
 zimbra-logger...done
 zimbra-mta...done
 zimbra-snmp...done
 zimbra-store...done
 zimbra-spell...done
 zimbra-apache...done
 zimbra-core...done
 
Removing deployed webapp directories
Installing packages
 
 zimbra-core......zimbra-core-6.0.2_GA_1912.RHEL5_64-20091020161509.x86_64.rpm...done
 zimbra-ldap......zimbra-ldap-6.0.2_GA_1912.RHEL5_64-20091020161509.x86_64.rpm...done
 zimbra-logger......zimbra-logger-6.0.2_GA_1912.RHEL5_64-20091020161509.x86_64.rpm...done
 zimbra-mta......zimbra-mta-6.0.2_GA_1912.RHEL5_64-20091020161509.x86_64.rpm...done
 zimbra-snmp......zimbra-snmp-6.0.2_GA_1912.RHEL5_64-20091020161509.x86_64.rpm...done
 zimbra-store......zimbra-store-6.0.2_GA_1912.RHEL5_64-20091020161509.x86_64.rpm...done
 zimbra-apache......zimbra-apache-6.0.2_GA_1912.RHEL5_64-20091020161509.x86_64.rpm...done
 zimbra-spell......zimbra-spell-6.0.2_GA_1912.RHEL5_64-20091020161509.x86_64.rpm...done
 
Setting defaults from saved config in /opt/zimbra/.saveconfig/config.save
 HOSTNAME=xxxxxx.xxxxxx.xxx
 LDAPHOST=xxxxxx.xxxxxx.xxx
 LDAPPORT=nnn
 SNMPTRAPHOST=xxxxxx.xxxxxx.xxx
 SMTPSOURCE=xxxxxx@xxxxxx.xxxxxx.xxx
 SMTPDEST=xxxxxx@xxxxxx.xxxxxx.xxx
 SNMPNOTIFY=yes
 SMTPNOTIFY=yes
 LDAPROOTPW=xxxxxx
 LDAPZIMBRAPW=xxxxxx
 LDAPPOSTPW=xxxxxx
 LDAPREPPW=xxxxxx
 LDAPAMAVISPW=xxxxxx
 LDAPNGINXPW=xxxxxx
Restoring existing configuration file from /opt/zimbra/.saveconfig/localconfig.xml...done
Operations logged to /tmp/zmsetup.10242009-125620.log
Upgrading from 6.0.1_GA_1816 to 6.0.2_GA_1912
Stopping zimbra services...done.
Verifying /opt/zimbra/conf/my.cnf
Starting mysql...done.
This appears to be 6.0.1_GA
Redolog version update required.
Sat Oct 24 12:56:39 2009: Verified redolog version 1.27.
Sat Oct 24 12:56:39 2009: Updating Redolog schema version from 1.27 to 1.28.
Redolog version update finished.
Stopping mysql...done.
Checking ldap status...not running.
Running zmldapapplyldif...done.
Checking ldap status...already running.
Updating from 6.0.2_GA
Updating global config and COS's with attributes introduced after 6.0.1_GA...done.
Stopping ldap...done.
Upgrade complete.
 
Running bdb db_recover...done.
Running zmldapapplyldif...done.
Checking ldap status....already running.
Setting defaults...done.
Setting defaults from existing config...done.
Checking for port conflicts
Setting defaults from ldap...done.
Eventuellement, à ce stade, Zimbra peut vous demander de renseigner de nouveaux paramètres de configuration.

La version 6.0.2 apporte la vérification automatique de nouvelle version. Vous devez donc l'activer ou non, à votre convenance.

L'installation continue

Operations logged to /tmp/zmsetup.10242009-125620.log
Setting local config values...done.
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 xxxxxx.xxxxxx.xxx...already exists.
Saving CA in ldap ...done.
Saving SSL Certificate in ldap ...done.
Setting spell check URL...done.
Setting service ports on xxxxxx.xxxxxx.xxx...done.
Adding xxxxxx.xxxxxx.xxx to zimbraMailHostPool in default COS...done.
Installing webclient skins...
 lavender...done.
 goldrush...done.
 hotrod...done.
 waves...done.
 yahoo...done.
 zmail...done.
 bones...done.
 beach...done.
 sky...done.
 lemongrass...done.
 steel...done.
 bare...done.
 sand...done.
Finished installing webclient skins.
Setting Keyboard Shortcut Preferences...done.
Setting zimbraFeatureIMEnabled=FALSE...done.
Setting zimbraFeatureTasksEnabled=TRUE...done.
Setting zimbraFeatureBriefcasesEnabled=TRUE...done.
Setting zimbraFeatureNotebookEnabled=TRUE...done.
Setting MTA auth host...done.
Setting TimeZone Preference...done.
prov> Initializing mta config...done.
Setting services on xxxxxx.xxxxxx.xxx...done.
Creating user xxxxxx@xxxxxx.xxxxxx.xxx...already exists.
Creating user xxxxxx@xxxxxx.xxxxxx.xxx...already exists.
Setting spam training accounts...done.
Configuring SNMP...done.
Checking for default IM conference room...already initialized.
Setting up syslog.conf...updateSyslog: Updating /etc/syslog.conf....done.
done.
 
You have the option of notifying Zimbra of your installation.
This helps us to track the uptake of the Zimbra Collaboration Suite.
The only information that will be transmitted is:
 The VERSION of zcs installed (6.0.2_GA_1912_CentOS5_64)
 The ADMIN EMAIL ADDRESS created (xxxxxx@xxxxxx.xxxxxx.xxx)
 
Notify Zimbra of your installation? [Yes] A Yes/No answer is required
 
You have the option of notifying Zimbra of your installation.
This helps us to track the uptake of the Zimbra Collaboration Suite.
The only information that will be transmitted is:
 The VERSION of zcs installed (6.0.2_GA_1912_CentOS5_64)
 The ADMIN EMAIL ADDRESS created (xxxxxx@xxxxxx.xxxxxx.xxx)
 
Notify Zimbra of your installation? [Yes] A Yes/No answer is required
 
You have the option of notifying Zimbra of your installation.
This helps us to track the uptake of the Zimbra Collaboration Suite.
The only information that will be transmitted is:
 The VERSION of zcs installed (6.0.2_GA_1912_CentOS5_64)
 The ADMIN EMAIL ADDRESS created (xxxxxx@xxxxxx.xxxxxx.xxx)
 
Notify Zimbra of your installation? [Yes]
Notification complete
 
Starting servers...done.
Checking for deprecated zimlets...done.
Checking for network zimlets in LDAP...done.
Removing network zimlets...
Finished removing network zimlets.
Removing convertd mime tree from ldap...done.
Installing common zimlets...
 com_zimbra_adminversioncheck...done.
 com_zimbra_cert_manager...done.
 com_zimbra_email...done.
 com_zimbra_local...done.
 com_zimbra_phone...done.
 com_zimbra_date...done.
 com_zimbra_ymemoticons...done.
 com_zimbra_url...done.
 com_zimbra_bulkprovision...done.
Finished installing common zimlets.
Getting list of all zimlets...done.
Updating non-standard zimlets...
Finished updating non-standard zimlets.
Upgrading Document templates...done.
Restarting mailboxd...done.
Setting up zimbra crontab...done.
 
Moving /tmp/zmsetup.10242009-125620.log to /opt/zimbra/log
 
Configuration complete - press return to exit
Et voila !

4 thoughts on “Mettre à jour Zimbra

  1. avatarGaël

    bonjour,

    j'aurais voulu savoir combien de temps te faut-il pour installer une version mineur ?
    Pour ma part je veux passer de la version 6.0.9 à la 6.0.15.

  2. avatarMarcet

    Il faut compter de 15 à 30 minutes suivant la rapidité de la machine.

    Mais avant toute chose, il faut bien lire les release notes, car certaines manipulations annexes sont parfois nécessaire, comme par exemple pour passer d'une version 6.x à une version 7.x.

    Dans ton cas, je pense qu'il n'y a rien de particulier à faire.

  3. avatarBlraux

    Bonjour, à l'installation (./install.sh) ---> Permission non accordée.
    De quoi cela peut il provenir sachant que je suis en root?

Laisser un commentaire

Votre adresse de messagerie ne sera pas publiée. Les champs obligatoires sont indiqués avec *