Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
Go Back   Zimbra :: Forums > Zimbra Collaboration Suite > Installation

Welcome to the Zimbra :: Forums!
Welcome, if you would like to post a comment please register. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-24-2008, 12:16 PM
Trained Alumni
 
Posts: 9
Default Upgrade 5.0.7 to 5.0.10 rollback

Hi,

Testing a roll back procedure to a failed upgrade, I came up with this:

1. Before starting upgrade from 5.0.7 to 5.0.10 backup /opt/zimbra. I use cpio to copy the content of /opt/zimbra to /opt/zimbra.backup

# cd /opt/zimbra
# find . -print | cpio -pmudv /opt/zimbra.backup

2. Perform upgrade to 5.0.10 and follow the prompts.

# cd /var/tmp/zcs-NETWORK-5.0.10_GA_2638.RHEL4_64.20081003025447
# ./install.sh -x

3. Once upgrade is finished verify the new version.

$ zmcontrol -s

Release 5.0.10_GA_2638.RHEL4_64_20081003025447 RHEL4_64 NETWORK edition

$ rpm -qa | grep -i zimbra

zimbra-core-5.0.10_GA_2638.RHEL4_64-20081003025447
zimbra-spell-5.0.10_GA_2638.RHEL4_64-20081003025447
zimbra-logger-5.0.10_GA_2638.RHEL4_64-20081003025447
zimbra-ldap-5.0.10_GA_2638.RHEL4_64-20081003025447
zimbra-proxy-5.0.10_GA_2638.RHEL4_64-20081003025447
zimbra-mta-5.0.10_GA_2638.RHEL4_64-20081003025447
zimbra-apache-5.0.10_GA_2638.RHEL4_64-20081003025447
zimbra-archiving-5.0.7_GA_2450.RHEL4_64-20080630182541
zimbra-convertd-5.0.10_GA_2638.RHEL4_64-20081003025447
zimbra-store-5.0.10_GA_2638.RHEL4_64-20081003025447
zimbra-snmp-5.0.10_GA_2638.RHEL4_64-20081003025447

From the administration gui: Help Desk -> About Zimbra Version

4. If upgrade failed, start rollback. Stop Zimbra

$ zmcontrol stop

5. Restore files from backup

# cd /opt/zimbra.backup
# find . -print | cpio -pmudv /opt/zimbra

6. Update RPM database only with previous packages. If you don't perform this step 'zmcontrol -v' will report version 5.0.10 as it gets this information from the RPM database.

# cd /var/tmp/zcs-NETWORK-5.0.7_GA_2450.RHEL4_64.20080630182541/packages
rpm -U --justdb --oldpackage zimbra-core-5.0.7_GA_2450.RHEL4_64-20080630182541.x86_64.rpm
rpm -U --justdb --oldpackage zimbra-ldap-5.0.7_GA_2450.RHEL4_64-20080630182541.x86_64.rpm
rpm -U --justdb --oldpackage zimbra-logger-5.0.7_GA_2450.RHEL4_64-20080630182541.x86_64.rpm
rpm -U --justdb --oldpackage zimbra-mta-5.0.7_GA_2450.RHEL4_64-20080630182541.x86_64.rpm
rpm -U --justdb --oldpackage zimbra-snmp-5.0.7_GA_2450.RHEL4_64-20080630182541.x86_64.rpm
rpm -U --justdb --oldpackage zimbra-store-5.0.7_GA_2450.RHEL4_64-20080630182541.x86_64.rpm
rpm -U --justdb --oldpackage zimbra-apache-5.0.7_GA_2450.RHEL4_64-20080630182541.x86_64.rpm
rpm -U --justdb --oldpackage zimbra-spell-5.0.7_GA_2450.RHEL4_64-20080630182541.x86_64.rpm
rpm -U --justdb --oldpackage zimbra-proxy-5.0.7_GA_2450.RHEL4_64-20080630182541.x86_64.rpm
rpm -U --justdb --oldpackage zimbra-archiving-5.0.7_GA_2450.RHEL4_64-20080630182541.x86_64.rpm
rpm -U --justdb --oldpackage zimbra-convertd-5.0.7_GA_2450.RHEL4_64-20080630182541.x86_64.rpm

7. Verify RPM update

rpm -qa | grep -i zimbra
zimbra-convertd-5.0.7_GA_2450.RHEL4_64-20080630182541
zimbra-spell-5.0.7_GA_2450.RHEL4_64-20080630182541
zimbra-logger-5.0.7_GA_2450.RHEL4_64-20080630182541
zimbra-ldap-5.0.7_GA_2450.RHEL4_64-20080630182541
zimbra-store-5.0.7_GA_2450.RHEL4_64-20080630182541
zimbra-archiving-5.0.7_GA_2450.RHEL4_64-20080630182541
zimbra-core-5.0.7_GA_2450.RHEL4_64-20080630182541
zimbra-snmp-5.0.7_GA_2450.RHEL4_64-20080630182541
zimbra-proxy-5.0.7_GA_2450.RHEL4_64-20080630182541
zimbra-mta-5.0.7_GA_2450.RHEL4_64-20080630182541
zimbra-apache-5.0.7_GA_2450.RHEL4_64-20080630182541

8. Start Zimbra

$ zmcontrol start

9. Verify version

$ zmcontrol -v

Release 5.0.7_GA_2450.RHEL4_64_20080630182541 RHEL4_64 NETWORK edition

From the administration gui: Help Desk -> About Zimbra Version

10. Back to square one! Hope that helps.
Reply With Quote
  #2 (permalink)  
Old 10-29-2008, 02:17 PM
Active Member
 
Posts: 43
Default

This is what I needed hazmitia!
I'll test it soon and let you know how it works for me.
Reply With Quote
  #3 (permalink)  
Old 11-22-2008, 06:48 PM
Active Member
 
Posts: 43
Default

It did work great.

Thanks again
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads

Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.

blog.zimbra.com




 

SEO by vBSEO ©2011, Crawlability, Inc.