Overview

In this section we will upgrade 4.0 to 4.2. For that we have to disable the monitoring during the upgrade. From 4.2 we can upgrade to 4.3 without downtime, but since it is 4.0 we need downtime.

https://docs.opsmanager.mongodb.com/current/tutorial/upgrade-ops-manager/

Preparation

We have to prepare first, as so:

Backup the config files

Upload the new Software

Of course we need the backup the old configuration before changing anything.

Backup Config files

Be sure to configure the following directories:

<install_dir>/conf

<install_dir>/logs

That will provide you the configuration files and the log files. You can backup the whole directory as follows:

Check where Mongo is installed

We see that Mongo is installed from RPM in: “/opt/mongodb/mms”

Let's backup the whole folder:

Once we have a backup, let's continue with the upgrade

Upload the new binaries

The binaries can be downloaded from the link above or from |here. After you download the RPM, upload it to the software location on the server where you want to install it.

Upgrade

Stop the MongoOps manager

We have to stop the MongoOps manager as follows:

Stop MongoOps

Upgrade the RPM

We can install the RPM as follows:

Check for dependencies & Upgrade RPM

Start MongoOps

Once we are done, we can start it again:

Start MongoOps