Archived community.zenoss.org | full text search
Skip navigation
Currently Being Moderated

9.1 Upgrading From a Source Install to a Stack Install

VERSION 1 
Created on: Feb 19, 2010 10:27 AM by Zenoss API - Last Modified:  Feb 19, 2010 10:27 AM by Zenoss API

 1. Upgrading From a Source Install to a Stack Install

Follow these steps to upgrade from a source-based install to a zenoss-stack .deb or rpm.

Note: For all commands, the prompt "#" indicates "run as root" and "$" indicates the zenoss user.

  1. Get the Zenoss .deb (for Debian) or .rpm (for RHEL and SUSE).

  2. The  Zenoss stack includes its own copy of MySQL, which, by default, will run on port 3307. Change your current configuration to point to port 3307.

    In the  Zenoss interface, go to the Event Manager. Select Edit, and then change the port from 3306 to 3307

  3. Back up all data:

    $ zenbackup --file=/tmp/zenbackup.tgz
  4. Make a note of which ZenPacks you have installed.

    Note

    From the  Zenoss interface, go to Settings > ZenPacks for a list of installed ZenPacks.

  5. Shut down the system:

    $ zenoss stop
  6. Move the current  Zenoss to a new name:

    $ mv /usr/local/zenoss /usr/local/zenoss-2.1.3
  7. Install the stack on Debian by using the .deb:

    # dpkg -i zenoss-stack*.deb
  8. Copy the configuration files to a backup directory:

    $ cd /usr/local/zenoss/zenoss/etc
    $ cp zeo.conf zope.conf /tmp
  9. Start MySQL:

    # /usr/local/zenoss/mysql/scripts/ctl.sh start
  10. Reinstall any .egg ZenPacks that were previously installed. For .zip ZenPacks, convert these to .egg files and then install them.

  11. Load your data back with zenrestore:

    $ zenrestore --dbuser=zenoss --dbpass=zenoss --file /tmp/zenbackup.tgz
  12. Copy the configuration files back:

    $ cp /tmp/zope.conf /usr/local/zenoss/zenoss/etc
    $ cp /tmp/zeo.conf /usr/local/zenoss/zenoss/etc
  13. Start zeo:

    $ zeoctl start
  14. Migrate the data:

    $ zenmigrate 
  15. Re-register the portlets:

    $ zendmd
    >>> from Products.ZenWidgets.ZenossPortlets.ZenossPortlets \
        import register_default_portlets
    >>> register_default_portlets(zport.ZenPortletManager)
    >>> commit()
  16. Start  Zenoss:

    $ zenoss start
Comments (0)