Professional Documents
Culture Documents
same time
I've recently had some problems regarding upgrading Zimbra while also upgrading my OS at the
same time. To be more specific: I wanted to upgrade Zimbra Open Source Edition from 8.0.5 to
8.6 and at the same time upgrade Ubuntu Server from 12.04 to 14.04. The problem I encountered
was that I couldn't get it to work, Zimbra threw a lot of Perl-related exceptions and since the
Zimbra forum isn't very communicative I had to reroll to my backup to be up and running after
the weekend again. So what is the correct process?
Broco
1,484619
add a comment
2 Answers
activeoldest votes
3
I found a guide on the Zimbra site that was ok but was lacking some parts
(https://wiki.zimbra.com/wiki/Ubuntu_Upgrades). I figured it out eventually but I felt the need to
write this down for future reference for me and others. In my case I was using a single server
install with Zimbra Open Source Edition, some of this might not apply to other instances.
General stuff
1. Use a virtual Machine and LVM Volumes
Best practice in general is to install Zimbra on a virtual machine and use LVM or another
technique that supports snapshots. This way you can create snapshots and in case anything goes
wrong you just roll back to your snapshot.
Snapshots can not only be used for having an additional and easy to use fallback point in case an
update/upgrade goes wrong but also provide for easier backups:
4. Use screen
In case you administrate your server via SSH, make sure you use screen for all upgrades. In case
your connection gets interrupted it doesn't ruin your day (if the terminal session closes it
terminates all running commands). With screen you an just resume with interrupted session
with screen -r.
Upgrading
Here comes the tricky part. In my case I screwed up and started with upgrading Ubuntu 12.04 to
Ubuntu 14.04. Then I tried to install Zimbra 8.6 over my current 8.0.5 and toasted my installation
because I became cocky and ignored version checking.
The trick is that you have to install the exact same version of Zimbra on your upgraded OS than
you had on your old one. In my case there wasn't even an installer for Ubuntu 14.04 so basically I
could only roll back to my Snapshot and start again.
In this example I use my configuration. Again: I wanted to upgrade from Ubuntu 12.04 to 14.04
and Zimbra 8.0.5 to 8.6.
1. Make sure to use the same Zimbra version for both your old and your new OS
In my case, there was no installer for Zimbra 8.0.5 on Ubuntu 14.04, but there was a 8.6 installer
for Ubuntu 12.04. It doesn't matter if you upgrade Zimbra or your OS first, but it does matter that
you install the same Zimbra version on both your old and your new OS. You can upgrade after
you installed your old Zimbra version on your new OS but you CAN NOT upgrade your OS and
Zimbra at the same time.
2. Upgrade to Zimbra 8.6 on Ubuntu 12.04
Just download the 8.6 archive, unpack it and install. You don't have to stop zimbra first, the
installer will do so automatically.
screen
wget https://files.zimbra.com/downloads/8.6.0_GA/zcs-
8.6.0_GA_1153.UBUNTU12_64.20141215195814.tgz
tar xzf zcs-8.6.0_GA_1153.UBUNTU12_64.20141215195814.tgz
cd zcs-8.6.0_GA_1153.UBUNTU12_64.20141215195814
sudo ./install.sh
Follow the instructions. You don't have to to the integrity check if you are asked, but it is a pretty
good idea to do so. This might take a while but makes sure your database is intact. After the
installation verify that everything is working fine.
su - zimbra
zmcontrol stop
zmcontrol status
exit
Update and Upgrade and then start your release upgrade:
The -s option stands for software; it means the installer doesn't upgrade your data, it just installs
the new software. You need the new software to upgrade your existing data (mail storage,
settings, etc.), if you leave it out the installer will cancel with an error. Before you proceed, make
sure again you use the right installer for your version. You see the version inside the folder name:
zcs-8.6.0_GA_1153.UBUNTU14_64.20141215151116.
cd zcs-8.6.0_GA_1153.UBUNTU14_64.20141215151116
sudo ./install.sh -s
Important: Skip the integrity check, you can do it later manually after the data has been
upgraded.
Do you want to verify message store database integrity? [N]
Proceed and answer with Y if you are asked if you want to upgrade. After the installation is done,
run the same installer again, this time without the -s option:
sudo install.sh
Note: You can run the integrity check now or skip it and do it later.
Follow the instructions like before. You should now have a working Zimbra 8.6 on Ubuntu 14.04.
In short
This doesn't work
Zimbra 8.0.5 on Ubuntu 12.04 --> Upgrade Ubuntu to 14.04 and install Zimbra 8.6 on Ubuntu
14.04
This works
Zimbra 8.0.5 on Ubuntu 12.04 --> Zimbra 8.6_for_12_04 on Ubuntu 12.04 --> Upgrade to
Ubuntu 14.04 --> Install Zimbra 8.6_for_14_04 on Ubuntu 14.04
Broco
1,484619
add a comment
0
Step 3. Upgrade Ubuntu from 12.04 to 14.04
Here it is important to PAUSE when upgrade process tells you about removing non-compatible
repositories! Wait before you continue, open another SSH session to the server and edit the file:
/etc/apt/sources.list.d/zimbra.list
Save the file and get back to original SSH session, where now you may continue with upgrade
process. Doing so, upgrade WON'T REMOVE, BUT RATHER UPGRADE all Zimbra packages.
Labsy
137
• Wait, so does this mean I can do it in one step? Even if it does, isn't it more safe to do so seperately?
Because the way I described it is what the official Zimbra documentation says. Gotta admit the
documentation for Zimbra Community Edition is kind of bad in some regards. – Broco Mar 14 '18 at 8:54