ZIMBRA : première migration
ZIMBRA : première migration jppZimbra ayant annoncé la fin des upgrades pour les versions 32bits OpenSource, j'ai décidé d'upgrader ma version 6.0.4 à la dernière disponible : 6.0.7. pour la suite peut-être y aura-t-il de temps en temps des patchs ?
Oui, il y en a et je viens de passer en 6.0.9 en suivant cette même procédure.
Note : j'ai laissé l'intégralité des copies d'écrans bien que cela soit un peu long (vous avez dit longuet ?).
Après le téléchargement de la version et du patch qui va avec :
zcs-6.0.7_GA_2473.DEBIAN5.20100616212143.tgz
zcs-patch-6.0.7_GA_2476.tgz
Procédure suivie:
- stopper "cron"
- stopper "at"
- stopper zimbra"
- effectuer une image complète du répertoires "/opt/zimbra"
- détarer le gros "TGZ" dans un répertoire tranquille
- détarer le petit "TGZ" dans le même répertoire
On se trouve alors devant les fichiers suivants :
drwxr-xr-x 14 root root 4096 2010-09-20 19:44 ..
drwxr-xr-x 7 503 503 4096 2010-06-17 07:09 zcs-6.0.7_GA_2473.DEBIAN5.20100616212143
-rw-r--r-- 1 root root 455562410 2010-09-20 19:46 zcs-6.0.7_GA_2473.DEBIAN5.20100616212143.tgz
drwxrwxr-x 5 zimbra 503 4096 2010-06-25 22:44 zcs-patch-6.0.7_GA_2476
-rw-r--r-- 1 root root 26871472 2010-09-20 19:46 zcs-patch-6.0.7_GA_2476.tgz
En allant dans le répertoire "zcs-6.0.7_GA_2473.DEBIAN5.20100616212143" on trouve l'arborescence suivante :
drwxr-xr-x 7 503 503 4096 2010-06-17 07:09 .
drwxr-xr-x 4 root root 4096 2010-09-20 19:48 ..
drwxr-xr-x 2 503 503 4096 2010-06-17 07:09 bin
drwxr-xr-x 2 503 503 4096 2010-06-17 07:09 data
drwxr-xr-x 3 503 503 4096 2010-06-17 07:09 docs
-rwxr-xr-x 1 503 503 6534 2010-06-17 07:09 install.sh
drwxr-xr-x 2 503 503 4096 2010-06-17 07:10 packages
-r--r--r-- 1 503 503 369 2010-06-17 07:09 readme_binary_en_US.txt
-r--r--r-- 1 503 503 8575 2010-06-17 07:09 readme_source_en_US.txt
-r--r--r-- 1 503 503 428 2010-06-17 07:09 README.txt
drwxr-xr-x 3 503 503 4096 2010-06-17 07:09 util
Un magnifique README nous tend les bras et indique de lancer "./install.sh" ce que je fais aussitôt.
./install.sh Operations logged to /tmp/install.log.31403 Checking for existing installation... zimbra-ldap...FOUND zimbra-ldap-6.0.4_GA_2038.DEBIAN5 zimbra-logger...FOUND zimbra-logger-6.0.4_GA_2038.DEBIAN5 zimbra-mta...FOUND zimbra-mta-6.0.4_GA_2038.DEBIAN5 zimbra-snmp...FOUND zimbra-snmp-6.0.4_GA_2038.DEBIAN5 zimbra-store...FOUND zimbra-store-6.0.4_GA_2038.DEBIAN5 zimbra-apache...FOUND zimbra-apache-6.0.4_GA_2038.DEBIAN5 zimbra-spell...FOUND zimbra-spell-6.0.4_GA_2038.DEBIAN5 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.4_GA_2038.DEBIAN5 ZCS upgrade from 6.0.4 to 6.0.7 will be performed. Saving existing configuration file to /opt/zimbra/.saveconfig 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 C'est bon signe il a tout détecté sa proposition semble honnête, on continue ... et la sauvegarde aura probablement superflue, mais une coupure de courant (qui ne s'est jamais pris les pieds dans le fil ? ) et Pfuuit . Checking for prerequisites... FOUND: NPTL FOUND: sudo-1.6.9p17-3 FOUND: libidn11-1.8+20080606-1 FOUND: libpcre3-7.6-2.1 FOUND: libgmp3c2-2:4.2.2+dfsg-3 FOUND: libexpat1-2.0.1-4+lenny3 FOUND: libstdc++6-4.4.4-8 Checking for suggested prerequisites... FOUND: perl-5.10.0 FOUND: sysstat Prerequisite check complete. Checking current number of databases... Do you want to verify message store database integrity? [Y] Ben oui, on va vérifier l'intégrité juste pour voir, ça ne mange pas de pain, je frappe donc "Y" ... Verifying integrity of message store databases. This may take a while. Starting mysqld...done. mysqld is alive No errors found mysqld is alive Stopping mysqld... done. 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] Ce n'était pas si long que cela, mais j'ai peu de volume. Oui, je souhaite upgrader, on est là pour ça ! "Y" donc puisquel'on nous dit que tout va baigner ... on y va sans regret. 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] Je ne les ai pas installés car mon serveur est très peu chargé et es relativement puissant, je confirme le 'N'. 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 The system will be modified. Continue? [N] Tiens, sécurité, la réponse par défaut est "N", il faut donc taper soi même le "Y" fatidique, quel travail ! 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.7_GA_2473.DEBIAN5_i386.deb... zimbra-ldap......zimbra-ldap_6.0.7_GA_2473.DEBIAN5_i386.deb...done zimbra-logger......zimbra-logger_6.0.7_GA_2473.DEBIAN5_i386.deb...done zimbra-mta......zimbra-mta_6.0.7_GA_2473.DEBIAN5_i386.deb...done zimbra-snmp......zimbra-snmp_6.0.7_GA_2473.DEBIAN5_i386.deb...done zimbra-store......zimbra-store_6.0.7_GA_2473.DEBIAN5_i386.deb...done zimbra-apache......zimbra-apache_6.0.7_GA_2473.DEBIAN5_i386.deb...done zimbra-spell......zimbra-spell_6.0.7_GA_2473.DEBIAN5_i386.deb...done Setting defaults from saved config in /opt/zimbra/.saveconfig/config.save HOSTNAME=*****.***.*** LDAPHOST=*****.***.*** LDAPPORT=389 SNMPTRAPHOST=*****.***.*** SMTPSOURCE=*****@****.***.*** SMTPDEST=*****@****.***.*** SNMPNOTIFY=yes SMTPNOTIFY=yes LDAPROOTPW=special_discret LDAPZIMBRAPW=special_discret LDAPPOSTPW=special_discret LDAPREPPW=special_discret LDAPAMAVISPW=special_discret LDAPNGINXPW=special_discret Restoring existing configuration file from /opt/zimbra/.saveconfig/localconfig.xml...done Operations logged to /tmp/zmsetup.09202010-195950.log Upgrading from 6.0.4_GA_2038 to 6.0.7_GA_2473 Stopping zimbra services...done. Verifying /opt/zimbra/conf/my.cnf Starting mysql...done. This appears to be 6.0.4_GA Checking ldap status...not running. Running zmldapapplyldif...done. Checking ldap status...already running. Schema upgrade required from version 63 to 64. Running /opt/zimbra/libexec/scripts/migrate20100106-MobileDevices.pl Mon Sep 20 20:00:36 2010: Verified schema version 63. Mon Sep 20 20:00:36 2010: Adding policy_values column to ZIMBRA.MOBILE_DEVICES table. Mon Sep 20 20:00:37 2010: Verified schema version 63. Mon Sep 20 20:00:37 2010: Updating DB schema version from 63 to 64. Stopping mysql...done. Updating from 6.0.5_GA Mon Sep 20 20:00:36 2010: Adding policy_values column to ZIMBRA.MOBILE_DEVICES table. Mon Sep 20 20:00:37 2010: Verified schema version 63. Mon Sep 20 20:00:37 2010: Updating DB schema version from 63 to 64. Stopping mysql...done. Updating from 6.0.5_GA Updating from 6.0.6_GA Updating from 6.0.7_GA Updating global config and COS's with attributes introduced after 6.0.4_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... Checking for port conflicts Setting defaults from ldap...done. Saving config in /opt/zimbra/config.8891...done. Operations logged to /tmp/zmsetup.09202010-195950.log Setting local config values...done. Setting up CA...done. Deploying CA to /opt/zimbra/conf/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 ******.***.***...already exists. Saving CA in ldap ...done. Saving SSL Certificate in ldap ...done. Setting spell check URL...done. Setting service ports on ******.***.***...done. Adding ******.***.*** to zimbraMailHostPool in default COS...done. Installing webclient skins... lavender...done. tree...done. beach...done. bare...done. oasis...done. waves...done. pebble...done. yahoo...done. sand...done. smoke...done. lemongrass...done. zmail...done. steel...done. hotrod...done. lake...done. sky...done. bones...done. twilight...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.xxx.xxx..done. Creating user spam.py3tgmmj@xxxxxx.xxx.xxx...already exists. Creating user ham.p7c2hbkw56@xxxxxx.xxx.xxx...already exists. Setting spam training accounts...done. Configuring SNMP...done. Checking for default IM conference room...already initialized. Setting up syslog.conf...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.7_GA_2473_DEBIAN5) The ADMIN EMAIL ADDRESS created (xxxxx@xxxxxx.xxx.xxx) Notify Zimbra of your installation? [Yes] Notifying Zimbra of installation via http://www.zimbra.com/cgi-bin/notify.cgi?VER=6.0.7_GA_2473_DEBIAN5&MAIL=xxxxx@x… 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_email...done. com_zimbra_bulkprovision...done. com_zimbra_phone...done. com_zimbra_adminversioncheck...done. com_zimbra_dnd...done. com_zimbra_url... com_zimbra_date...done. com_zimbra_ymemoticons...done. com_zimbra_cert_manager...done. Finished installing common zimlets. Getting list of all zimlets...done. Updating non-standard zimlets... com_zimbra_local...done. Finished updating non-standard zimlets. Upgrading Document templates...done. Restarting mailboxd... Setting up zimbra crontab...done. Moving /tmp/zmsetup.09202010-195950.log to /opt/zimbra/log Configuration complete - press return to exit |
C'est fini pour l'upgrade, cela a bien moliné pendant une dizaine de minutes. Comme d'habitude l'installation est passée comme une lettre à la poste, un petit bravo aux développeurs, si si j'y tiens.
Il va maintenant falloir songer à passer le patch. On se dirige donc vers le répertoire "zcs-patch-6.0.7_GA_2476" qui contient queques "drôles" de fichiers de provenance inconnue ( des martiens ? Pif, Paf rm ._*) :
drwxrwxr-x 5 zimbra 503 4096 2010-06-25 22:44 .
drwxr-xr-x 4 root root 4096 2010-09-20 19:48 ..
drwxrwxr-x 2 zimbra 503 4096 2010-06-25 22:44 bin
-rwxrwxr-x 1 zimbra 503 197 2010-06-25 22:44 ._bin
drwxrwxr-x 2 zimbra 503 4096 2010-07-17 05:40 conf
-rwxrwxr-x 1 zimbra 503 197 2010-07-17 05:40 ._conf
-rwxr-xr-x 1 zimbra 503 197 2010-06-25 22:44 ._installPatch.sh
-rwxr-xr-x 1 zimbra 503 713 2010-06-25 22:44 installPatch.sh
drwxrwxr-x 3 zimbra 503 4096 2010-07-17 05:41 source
-rwxrwxr-x 1 zimbra 503 197 2010-07-17 05:41 ._source
Mais comme il y a un "installPatch.sh" il est tentant de l'utiliser. Je ne refais pas de sauvegarde en faisant confiance aux développeurs, ce que je ne ferais pas sur une machine de production ... Et c'est parti ...
./installPatch.sh Current Version: 6.0.7_GA_2473 Found Patch for 6.0.7_GA called 6.0.7_P1 Deploying patch for 6.0.7_GA Updating files for package zimbra-store /opt/zimbra/jetty/webapps/service/WEB-INF/lib/zimbrastore.jar... copied. /opt/zimbra/jetty/webapps/zimbra/WEB-INF/lib/zimbrastore.jar... copied. /opt/zimbra/jetty/webapps/zimbraAdmin/WEB-INF/lib/zimbrastore.jar... copied. /opt/zimbra/lib/jars/zimbrastore.jar... copied. /opt/zimbra/jetty/webapps/zimbra/h/printmessage... copied. /opt/zimbra/jetty/webapps/zimbra/js/MailCore_all.js.zgz... copied. /opt/zimbra/jetty/webapps/zimbra/js/NewWindow_2_all.js.zgz... copied. /opt/zimbra/jetty/webapps/zimbra/js/Calendar_all.js.zgz... copied. |
C'est super rapide mais il faut faire un start/stop de ZIMBRA pour que ces modifications soient prises en compte.
Tout a été relancé et les premiers tests sont OK, l'accès "POP" fonctionne et Evolution récupère quelques mails; Thunderbird sur une machine Windows ( j'ose à peine écrire cela, mais cette machine n'est pas à moi !) récupère lui aussi ses mails sans problèmes.
L'interface d'administration ne me paraît pas sensiblement changée, le Webmail est toujours là et son ergonomie me plaît toujours autant ... et il marche avec google-chrome sans vous engueuler .... Il va falloir que je voie ce que celà donne depuis le magnifique smartphone qui m'a été offert.
Au passage ZIMBRA surveille un peu la machine et si par aventure un disque dépasse 85% d'occupation l'admin reçoit un petit mail :