Navigation
This version of the documentation is archived and no longer supported. To learn how to upgrade your version of MongoDB Ops Manager, refer to the upgrade documentation.
You were redirected from a different version of the documentation. Click here to go back.

Upgrade Ops Manager with deb Packages

Overview

This tutorial describes how to upgrade an existing Ops Manager Application and Backup Daemon using deb packages.

Ops Manager supports direct upgrades from version 1.5 and later. If you have an earlier version, you must first upgrade to version 1.5.

Prerequisite

You must have administrative access on the machines on which you perform the upgrade.

You must have the download link available on the customer downloads page provided to you by MongoDB. If you do not have this link, you can access the download page for evaluation at http://www.mongodb.com/download.

Procedures

Upgrade the Ops Manager Application

The version of your existing Ops Manager installation determines your upgrade path. The following table lists upgrade paths per version:

Version Upgrade Patch
1.5 or later Use this procedure to upgrade directly to the latest release.
1.3 or 1.4
  1. Use this procedure first to upgrade to 1.5 or 1.6.
  2. Use this procedure again to upgrade to the latest version.
1.2 or earlier Use Upgrade from Version 1.2 and Earlier.

There are no supported downgrade paths for Ops Manager.

To upgrade:

1
2

Shut down Ops Manager.

For example:

sudo service mongodb-mms stop
3

If you are running Ops Manager Backup, shutdown the Ops Manager Backup Daemon.

The daemon may be installed on a different server. It is critical that this is also shut down. To shut down, issue a command similar to the following:

sudo service mongodb-mms-backup-daemon stop
4

Save a copy of your previous configuration file.

For example:

sudo cp /opt/mongodb/mms/conf/conf-mms.properties ~/.
5

Download the package.

Download the latest version of the package by issuing a curl command with the download link available on the customer downloads page provided to you by MongoDB.

curl -OL <link-address-for-package>
6

Install the new package.

For example:

sudo dpkg -i mongodb-mms_<version>_x86_64.deb
7

Edit the new configuration file.

Fill in the new configuration file at /opt/mongodb/mms/conf/conf-mms.properties using your old file as a reference point.

8

Start Ops Manager.

For example:

sudo service mongodb-mms start
9

Update all Monitoring Agents.

See Install Monitoring Agent for more information.

10

Update the Backup Daemon and any Backup Agent, as appropriate.

If you are running Backup, update the Backup Daemon package and any Backup Agent.

See Install Backup Agent for more information.

Upgrade the Backup Daemon

1

Stop the currently running instance.

sudo service mongodb-mms-backup-daemon stop
2

Download the latest version of the Backup Daemon.

Download the new version of the Backup Daemon package by issuing a curl command with the download link available on the customer downloads page provided to you by MongoDB.

curl -OL <link-address-for-backup-deb-package>
3

Install the new Backup Daemon package.

For example:

sudo dpkg -i mongodb-mms-backup-daemon_<version>_x86_64.deb
4

Point the Backup Daemon to the Ops Manager Application Database.

Open the /opt/mongodb/mms-backup-daemon/conf/conf-daemon.properties file with root privileges and set the mongo.mongoUri value to the servers and ports hosting the Ops Manager Application Database. For example:

mongo.mongoUri=mongodb://mongodb1.example.net:27017,mongodb2.example.net:27017,mongodb3.example.net:27017
5

Copy the gen.key file.

Ops Manager uses the gen.key file to encrypt data at rest in the Ops Manager Application Database and the Backup Database. If the Ops Manager Application and Backup Daemon run on different servers, you must copy the gen.key from the Ops Manager Application’s server to the daemon’s server.

Use scp to copy the gen.key file from the /etc/mongodb-mms/ directory on the Ops Manager Application server to the /etc/mongodb-mms/ directory on the Backup Daemon.

If you installed the Ops Manager Application from an archive instead of an rpm package, the gen key is located in the ${HOME}/.mongodb-mms/ directory.

6

Start the back-end software package.

To start the Backup Daemon run:

sudo service mongodb-mms-backup-daemon start

If everything worked the following displays:

Start Backup Daemon                                        [  OK  ]

If you run into any problems, the log files are at /opt/mongodb/mms-backup-daemon/logs.

7

Open Ops Manager and access the Backup configuration page.

Open the Ops Manager home page and log in as the user you first registered when installing the Ops Manager Application. (This user is the global owner.) Then click the Admin link at the top right of the page. Then click the Backup tab.

8

Enter configuration information for the Backup Database.

Enter the configuration information described below, and then click Save. Ops Manager uses this information to create the connection string URI used to connect to the database.

Warning

Once the connection string is saved, any changes to the string require you to restart all the Ops Manager instances and Backup Daemons. Clicking Save is not sufficient. Ops Manager will continue to use the previous string until you restart the components.

<hostname>:<port>: Enter a comma-separated list of the fully qualified domain names and port numbers for all replica set members for the Backup Database.

MongoDB Auth Username and MongoDB Auth Password: Enter the user credentials if the database uses authentication.

Encrypted Credentials: Check this if the user credentials use the Ops Manager credentialstool. For more information, see Encrypt MongoDB User Credentials.

Use SSL: Check this if the MongoDB database uses SSL. If you select this, you must configure SSL settings for both the Ops Manager Application and Backup Daemon. See Ops Manager Configuration Files.

Connection Options: To add additional connection options, enter them using the MongoDB Connection String URI Format.