The unstable version has its own bugs, but at times we need an unstable version, as it has a lot more features. I did made a recent upgrade of my opennms installation to 1.9.8 from 1.8.12-1. I had to go through a heck lot of problems during the upgrade and my app went down and at some point, I thought it will become useless. But I have managed to upgrade it finally without any problems. So I am noting down the steps that I had done for this upgrade to work properly.
Backup your existing installation files and database (just in case)
1. copy the "etc" folder in your opennms installation.
tar -C $OPENNMS_HOME -cvzf /root/opennmsback/opennms-etc-backup.tar.gz etc
2. Create a database backup
pg_dump -U postgres -Fc -C -f /root/opennmsback/opennms-database-backup.pg opennms
Upgrading to the latest version
1.Download the yum repos of the opennms version suitable for your distro from http://yum.opennms.org/
cd /usr/src
wget http://yum.opennms.org/repofiles/opennms-repo-unstable-rhel5.noarch.rpm
2. Removing the current repo rpm (this is important. I didn't do this first time and I was screwed totally, from which I have learned my mistake and managed to get it working)
rpm -e `rpm -qa |grep opennms-repo`
rpm -ivh opennms-repo-unstable-rhel5.noarch.rpm (this will depend upon your particular repo download)
3. yum update opennms (updating opennms and resolving dependencies)
4. /opt/opennms/bin/install -dis
5. /etc/init.d/opennms restart
Login to the admin web interface and check the version from admin >> system information.
PS:
Incase you need to restore the database, delete the existing DB and create a new one and then restore.
dropdb -U postgres opennms
createdb -U postgres opennms






0 comments:
Post a Comment