Hmmm .. semenjak .. deploy zimbra yang versi 5.0.0 .. sampai pukul 14:50 WIB hari ini.. yang entah sudah berapa bulan lamanya .. dan gara2 mulai deploy Zimbra Desktop yang sering nongol Error Reports (service.Failure terus -terusan).. akhirnya saya memutuskan untuk mengupgradenya ke versi 5.0.8.
Berikut perjalanan saya mengupgrade Zimbra Release 5.0.8_GA_2462.UBUNTU6 UBUNTU6 FOSS edition yang menbutuhkan +/- 45 menit :
Update dan dist-upgrade sistem yang ada sebelum memulai.
Download Zimbra dari Zimbra Download Situs
Backup terlebih dahulu Zimbra yang terinstall dengan membuat file dan menggunakan script di bawah ini .. Script Asli dari Wiki Zimbra Open Source Edition Backup Procedure :
#!/bin/bash
# Zimbra Backup Script
# Requires ncftp to run
# This script is intended to run from the crontab as root
# Free to use and free of any warranty! Daniel W. Martin, 9 Sept 2007
# Outputs the time the backup started, for log/tracking purposes
echo Time backup started = $(date +%T)
before=”$(date +%s)”
# Live sync before stopping Zimbra to minimize sync time with the services down
# Comment out the following line if you want to try single cold-sync only
rsync -avHK –delete /opt/zimbra/ /srv/backup/zimbra
# which is the same as: /opt/zimbra /backup
# Including –delete option gets rid of files in the dest folder that don’t exist at the src
# this prevents logfile/extraneous bloat from building up overtime.
# Now we need to shut down Zimbra to rsync any files that were/are locked
# whilst backing up when the server was up and running.
before2=”$(date +%s)”
# Stop Zimbra Services
sudo -u zimbra /opt/zimbra/bin/zmcontrol stop
sleep 20
# Only enable the following command if you need all Zimbra user owned
# processes to be killed before syncing
# ps auxww | awk ‘{print $1″ “$2}’ | grep zimbra | kill -9 `awk ‘{print $2}’`
# Sync to backup directory
rsync -avHK –delete /opt/zimbra/ /srv/backup/zimbra
# Restart Zimbra Services
sudo -u zimbra /opt/zimbra/bin/zmcontrol start
# Calculates and outputs amount of time the server was down for
after=”$(date +%s)”
elapsed=”$(expr $after – $before2)”
hours=$(($elapsed / 3600))
elapsed=$(($elapsed – $hours * 3600))
minutes=$(($elapsed / 60))
seconds=$(($elapsed – $minutes * 60))
echo Server was down for: “$hours hours $minutes minutes $seconds seconds”
# Create a txt file in the backup directory that’ll contains the current Zimbra
# server version. Handy for knowing what version of Zimbra a backup can be restored to.
sudo -u zimbra zmcontrol -v > /opt/backup/zimbra/conf/zimbra_version.txt
# or examine your /opt/zimbra/.install_history
# Display Zimbra services status
echo Displaying Zimbra services status…
sudo -u zimbra /opt/zimbra/bin/zmcontrol status
# Outputs the time the backup finished
echo Time backup finished = $(date +%T)
# Calculates and outputs total time taken
after=”$(date +%s)”
elapsed=”$(expr $after – $before)”
hours=$(($elapsed / 3600))
elapsed=$(($elapsed – $hours * 3600))
minutes=$(($elapsed / 60))
seconds=$(($elapsed – $minutes * 60))
echo Time taken: “$hours hours $minutes minutes $seconds seconds”
Setelah selesai chmod 755, biar bisa di eksekusi
/directory/scriptbackup
Tunggu sampai script selesai di eksekusi.
Kemudian tinggal mengextract Zimbra server yang besarnya mencapai 300 an Meg.
$ sudo -i
# tar -zxvf zcs-5.0.8_GA_2462.UBUNTU6.20080709173036.tgz
# cd zcs-5.0.8_GA_2462.UBUNTU6.20080709173036
# ./install.sh
Pilih jawaban default yang ada, kecuali pada saat ada pertanyaan,
The system will be modified. Continue? [N]
Lha ini pilih Y .. dan kemudian pilih jawaban default lagi .. tunggu sampai
Configuration complete – press return to exit
Dan akhirnya … tinggal menikmati hasil yang ada .. Error Reports gak nongol lagi …
Zimbra Desktop sebelum di Update
Error Reports