Upgrade Zimbra 6 to zimbra 7 on EC2

Clone the instance

* Make a snapshot of the disks
* Launch and EBS instance with the same AMI type in 1c
* Create virtual disks from the snapshots created before in the same availability zone of the new instance
* Once is fully booted, stop the new instance
* Detach the root volume from the stopped instance
* Attach the root volume to /dev/sda1 and the other volume in my case to /dev/sdc
* Start the new instance again

Update my Split dns configuration (tinydns/dnscache)

* /etc/dnscache/env/IP
Update the file with the new internal IP.

Test the upgrade on the cloned instance.

I still run ./install.sh and the setup will find our current installation and update it.

* Connect to the new instance
* Check the uptime to be sure to be on the new instance
* cd zcs-7.0.1_GA_3105.DEBIAN5.20110304193033
* ./install.sh

Operations logged to /tmp/install.log.1903

Checking for existing installation...
zimbra-ldap...FOUND zimbra-ldap-6.0.8_GA_2661.DEBIAN5
zimbra-logger...FOUND zimbra-logger-6.0.8_GA_2661.DEBIAN5
zimbra-mta...FOUND zimbra-mta-6.0.8_GA_2661.DEBIAN5
zimbra-snmp...FOUND zimbra-snmp-6.0.8_GA_2661.DEBIAN5
zimbra-store...FOUND zimbra-store-6.0.8_GA_2661.DEBIAN5
zimbra-apache...FOUND zimbra-apache-6.0.8_GA_2661.DEBIAN5
zimbra-spell...FOUND zimbra-spell-6.0.8_GA_2661.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.8_GA_2661.DEBIAN5
ZCS upgrade from 6.0.8 to 7.0.1 will be performed.

Saving existing configuration file to /opt/zimbra/.saveconfig

[...]

Do you agree with the terms of the software license agreement? [N]

ERROR: Installation can not proceeed.  Please fix your /etc/hosts file
to contain:

Where  is the ip address of the host,
is the FULLY QUALIFIED host name, and
is the (optional) hostname-only portion

# hostname
myname
# dnsdomainname
mydomain

So I’ve added the internal IP (not 127.0.1) to the host file for host myname.mydomain

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.3.2-1.1
Checking for suggested prerequisites...
FOUND: perl-5.10.0
FOUND: sysstat
MISSING: sqlite3 does not appear to be installed.

###WARNING###

The suggested version of one or more packages is not installed.
This could cause problems with the operation of Zimbra.

Do you wish to continue [N] n

# apt-get install sqlite3

# ./install.sh

(Click on Expand source below to see the detailed output of installation).

[...]
Checking for suggested prerequisites...
FOUND: perl-5.10.0
FOUND: sysstat
FOUND: sqlite3
Prerequisite check complete.
Checking current number of databases...

Do you want to verify message store database integrity? [Y] 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]

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]
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] y
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_7.0.1_GA_3105.DEBIAN5_i386.deb...done
zimbra-ldap......zimbra-ldap_7.0.1_GA_3105.DEBIAN5_i386.deb...done
zimbra-logger......zimbra-logger_7.0.1_GA_3105.DEBIAN5_i386.deb...done
zimbra-mta......zimbra-mta_7.0.1_GA_3105.DEBIAN5_i386.deb...done
zimbra-snmp......zimbra-snmp_7.0.1_GA_3105.DEBIAN5_i386.deb...done
zimbra-store......zimbra-store_7.0.1_GA_3105.DEBIAN5_i386.deb...done
zimbra-apache......zimbra-apache_7.0.1_GA_3105.DEBIAN5_i386.deb...done
zimbra-spell......zimbra-spell_7.0.1_GA_3105.DEBIAN5_i386.deb...done

Setting defaults from saved config in /opt/zimbra/.saveconfig/config.save
HOSTNAME=myname.mydomain
LDAPHOST=myname.mydomain
LDAPPORT=389
SNMPTRAPHOST=myname.mydomain
SMTPSOURCE=admin@myname.mydomain
SMTPDEST=admin@myname.mydomain
SNMPNOTIFY=yes
SMTPNOTIFY=yes
LDAPROOTPW=xxxxx
LDAPZIMBRAPW=xxxx
LDAPPOSTPW=xxxxx
LDAPREPPW=xxxx
LDAPAMAVISPW=xxxx
LDAPNGINXPW=xxxxxx
Restoring existing configuration file from /opt/zimbra/.saveconfig/localconfig.xml...done
Operations logged to /tmp/zmsetup.04302011-114103.log
Upgrading from 6.0.8_GA_2661 to 7.0.1_GA_3105
Stopping zimbra services...done.
Verifying /opt/zimbra/conf/my.cnf
Starting mysql...done.
This appears to be 6.0.8_GA
Checking ldap status...not running.
Running zmldapapplyldif...done.
Checking ldap status...already running.
Running mysql_upgrade...done.
Redolog version update required.
Sat Apr 30 11:42:50 2011: Verified redolog version 1.28.
Sat Apr 30 11:42:50 2011: Updating Redolog schema version from 1.28 to 1.31.
Redolog version update finished.
Schema upgrade required from version 64 to 65.
Running /opt/zimbra/libexec/scripts/migrate20100926-Dumpster.pl
Sat Apr 30 11:42:56 2011: Verified schema version 64.
Sat Apr 30 11:45:30 2011: Verified schema version 64.
Sat Apr 30 11:45:30 2011: Updating DB schema version from 64 to 65.
Stopping mysql...done.
Updating from 6.0.9_GA
Updating from 6.0.10_GA
Updating from 6.0.11_GA
Stopping ldap...done.
Checking ldap status...not running.
Running zmldapapplyldif...done.
Checking ldap status...already running.
Updating from 6.0.12_GA
Updating from 7.0.0_BETA1
Updating from 7.0.0_BETA2
Updating from 7.0.0_BETA3
Updating from 7.0.0_RC1
Updating from 7.0.0_GA
Updating from 7.0.1_GA
Updating global config and COS's with attributes introduced after 6.0.8_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.
Saving config in /opt/zimbra/config.14725...done.
Operations logged to /tmp/zmsetup.04302011-114103.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 myname.mydomain...already exists.
Saving CA in ldap ...done.
Saving SSL Certificate in ldap ...done.
Setting spell check URL...done.
Setting service ports on myname.mydomain...done.
Adding myname.mydomain to zimbraMailHostPool in default COS...done.
Installing webclient skins...
hotrod...done.
tree...done.
sand...done.
lemongrass...done.
steel...done.
bare...done.
waves...done.
beach...done.
carbon...done.
lake...done.
pebble...done.
sky...done.
oasis...done.
lavender...done.
bones...done.
smoke...done.
twilight...done.
Finished installing webclient skins.
Setting Keyboard Shortcut Preferences...done.
Setting zimbraFeatureTasksEnabled=TRUE...done.
Setting zimbraFeatureBriefcasesEnabled=TRUE...done.
Setting MTA auth host...done.
Setting TimeZone Preference...done.
prov> Initializing mta config...done.
Setting services on myname.mydomain...done.
Creating user spam.xxxx@myname.mydomain...already exists.
Creating user ham.xxxxx@myname.mydomain...already exists.
Creating user virus-quarantine.o9tppslt_@myname.mydomain...done.
Setting spam training and Anti-virus quarantine 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 (7.0.1_GA_3105_DEBIAN5)
The ADMIN EMAIL ADDRESS created (admin@myname.mydomain)

Notify Zimbra of your installation? [Yes]

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_srchhighlighter...done.
com_zimbra_bulkprovision...done.
com_zimbra_webex...done.
com_zimbra_date...done.
com_zimbra_url...done.
com_zimbra_phone...done.
com_zimbra_email...done.
com_zimbra_dnd...done.
com_zimbra_attachcontacts...done.
com_zimbra_cert_manager...done.
com_zimbra_social...done.
com_zimbra_adminversioncheck...done.
com_zimbra_attachmail...done.
com_zimbra_linkedin...done.
Finished installing common zimlets.
Getting list of all zimlets...done.
Updating non-standard zimlets...
com_zimbra_ymemoticons...done.
com_zimbra_webex...done.
Finished updating non-standard zimlets.
Restarting mailboxd...done.
Setting up zimbra crontab...done.

Moving /tmp/zmsetup.04302011-114103.log to /opt/zimbra/log

Configuration complete - press return to exit

1 comment to Upgrade Zimbra 6 to zimbra 7 on EC2

Leave a Reply

  

  

  

You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>