Use the instructions in this chapter to upgrade your Zenoss instance. Depending on how you installed Zenoss, follow the instructions in one of these sections to upgrade:
Stack Installer
RHEL 4 or RHEL 5 RPMs
Refer to the following table to determine the upgrade path you must follow when upgrading to a newer version.
Table 8.1. Upgrade Paths
If your current version is: | You can upgrade directly to this version: |
---|---|
2.1.x | 2.1.3 |
2.1.3 | 2.2.4 |
2.2.x | 2.2.4 |
2.2.4 | 2.3.3 |
2.3.x | 2.4.5 |
2.4.x | 2.5.2 |
2.5.x | 3.0.0 |
2.5.x | 3.0.1 |
Follow these procedures to prepare your system for upgrade.
Verify that Sun JRE 1.5 or later version is installed on your system.
Note
Zenoss is not compatible with the GNU Compiler for Java (GCJ).
Older versions of Zenoss used a persistent disk cache in the zope.conf
file. If you originally installed an older Zenoss version, it is possible that your upgraded system still has this cache enabled. This configuration is not compatible with the current version of Zenoss, and must be disabled before starting the upgrade process.
Follow these steps to disable and remove the cache:
In the
zope.conf
file, verify that theclient zeo1
line is commented out, as follows:<zodb_db main> mount-point / # ZODB cache, in number of objects cache-size 5000 <zeoclient> server localhost:8100 storage 1 name zeostorage var $INSTANCE/var # ZEO client cache, in bytes cache-size 20MB # Uncomment to have a persistent disk cache #client zeo1 </zeoclient> </zodb_db>
As the
zenoss
user, enter these commands to remove old caches, if they exist:zenoss stop rm $ZENHOME/var/*.zec zenoss start
When upgrading to Version 3.0.x, you must install the PreUpgrade ZenPack to prepare your environment for the transition. This version depends on a new global catalog that indexes most objects in your database for quick retrieval.
Run this ZenPack only against the Zenoss master; do not run it against Zenoss collectors.
To prepare your environment:
Download and save the PreUpgrade30 ZenPack
.egg
file from the Zenoss Community ZenPacks page:Run the following command as the zenoss user:
zenpack --install ZenPacks.zenoss.PreUpgrade30
Enter the following commands:
zopectl stop zenhub stop zopectl start zenhub start
Run the following command to build the catalog:
zencatalog start
When the
zencatalog
daemon starts, it will traverse your database and build the catalog.You can check the progress of the daemon from the event console, or from the
zencatalog.log
file. Run the following command:tail -f $ZENHOME/log/zencatalog.log
Note
You must wait until
zencatalog
finishes before continuing upgrade. The amount of time required to create the global catalog depends on the number of devices and components in your database.
Before upgrade, you must back up your Zenoss data
As the
zenoss
user, use the following commands to back up the Zenoss files. Use both backup methods for maximum recovery options.zenoss$ zenbackup --save-mysql-access --file /tmp/zenoss-backup.tgz zenoss$ tar czf complete-backup.tar.gz $ZENHOME
Save the backup files to a location other than
$ZENHOME
.