Overview
This is for an upgrade test
Take a backup of the main server
Do a restore to create a test server
Before starting the test server remove network card this will server two purposes, stop conflicts with the main servers MAC and allow a boot up to change the IP and hostname so you can test upgrade without taking the main server offline.
Do OS update from 10.04 to 12.04 then update zimbra to 8.0.8 or 8.0.9 then upgrade OS to 14.04 and then Zimbra to 8.6.0
Most of the below step are the same except maybe the firewall stuff
Remove Network card using proxmox interface
Start test server make some network changes these will have to be done via console as no NIC is present
Change the ip hostname and db.0.0.10 adjusting the serial # and the ips to 10.22.0.125 change ip to 125 as i have firewall setup for this ip and putty instance.
vi /etc/network/interfaces
vi /etc/hosts change ip
vi /etc/bind/db.computerking.ca
This is for an upgrade on the main server
Disable incoming email to the test machine for obvious reasons the below commands will disable incoming mail from efa-1 but still allow clients to connect to test server so they can access mails
ufw delete allow 25
ufw delete allow 325
ufw delete allow 465
ufw delete allow 587
Shutdown the server it will not be receiving email anyway
I like to shutdown all other backups servers so as not to overload the hypervisor
Take a backup of the main server
Check and regenerate certificates if needed
insert command here
Before any updates do a database integrity check
insert command here
Upgrade OS from 10.04 to 12.04
As Zimbra user Stop Zimbra
sudo -i
su - zimbra
zmcontrol stop
exit
Upgrade OS
do-release-upgrade
During the upgrade i did the following which deviates from the Zimbra insturctions and will probalby break some things
Always select I to update to the package maintainers versions hope i can fix these later
/etc/rsyslog.d/50-default.conf
/etc/sudoers accept changes as zimbra puts everything back but you will have to fix backuppc/etc/snmp/snmpd.conf
Install new grub on /dev/vda only is fine
reboot to broken zimbra
Upgrading Zimbra from 8.0.x in may case 8.0.6 to 8.0.8
wget --no-check-certificate https://files2.zimbra.com/downloads/8.0.8_GA/zcs-NETWORK-8.0.8_GA_6184.UBUNTU12_64.20140925164220.tgz
tar -xvf wget zcs-NETWORK-8.0.8_GA_6184.UBUNTU12_64.20140925164220.tgz
cd zcs-NETWORK-8.0.8_GA_6184.UBUNTU12_64.20140925164220
apt-get install libgmp3c2 libperl5.14 NOTE this were already installed
apt-get install libaio1 NOTE this was not installed
./install.sh -s --skip-activation-check
Important! In the next step please skip it, will launch the database integrity check later:
Do you want to verify message store database integrity? [Y] N
./install.sh --skip-activation-check
Important! This time do the check
Do you want to verify message store database integrity? [Y]
All should go well check with zmcontrol status and tail -f /var/log/zimbra.log
Upgrading os to 14.04
As Zimbra user Stop Zimbra
sudo -i
su - zimbra
zmcontrol stop
exit
Upgrade OS
do-release-upgrade
During the upgrade i did the following which deviates from the Zimbra insturctions and will probalby break some things
Usually select I to update to the package maintainers versions hope i can fix these later
/etc/security/limits.conf Do not install or select N
/etc/sudousers Do not install or select N then add this line later
visudo
+Defaults mail_badpass
reboot to broken zimbra
Upgrading Zimbra from 8.0.8 to 8.0.9
wget --no-check-certificate https://files2.zimbra.com/downloads/8.0.9_GA/zcs-NETWORK-8.0.9_GA_6191.UBUNTU14_64.20141103151651.tgz
tar -xvf zcs-NETWORK-8.0.9_GA_6191.UBUNTU14_64.20141103151651.tgz
cd zcs-NETWORK-8.0.9_GA_6191.UBUNTU14_64.20141103151651.tgz\
./install.sh --skip-activation-check
Select NO for database verification
Do you want to verify message store database integrity? [Y]N
Upgrading Zimbra from 8.0.9 to 8.6.0
wget --no-check-certificate https://files.zimbra.com/downloads/8.6.0_GA/zcs-NETWORK-8.6.0_GA_1153.UBUNTU14_64.20141215151218.tgz
tar -xvf zcs-NETWORK-8.6.0_GA_1153.UBUNTU14_64.20141215151218.tgz
cd zcs-NETWORK-8.6.0_GA_1153.UBUNTU14_64.20141215151218.tgz
apt-get install unzip libreoffice
./install.sh --skip-activation-check
Select YES for database verification
Do you want to verify message store database integrity? [Y]Y
Delete all old zimbra backups and create a new full backup
add command here
Create a new VM backup
Restart other backups servers
Thats it hopefully it all went well