- Manage Deployments >
- MongoDB Versions >
- Change the Version of MongoDB
Change the Version of MongoDB¶
On this page
You can upgrade or downgrade MongoDB versions within the same Feature Compatibility Version (FCV) in Ops Manager sharded clusters, replica sets, and standalone MongoDB instances while maximizing the availability of your deployments.
You can add custom-built versions of MongoDB for Ops Manager to download.
If Ops Manager does not manage your deployment, you need to change the version of MongoDB manually. To learn more, see upgrade tutorials for each MongoDB release.
Ops Manager support for End of Life MongoDB versions
Ops Manager doesn’t support Backup, Monitoring, or Automation for versions earlier than MongoDB 3.6.
Ops Manager continues to support Automation, Backup, and Monitoring using the MongoDB Agent for clusters running MongoDB 3.6 or later.
Considerations¶
- Check the following documents for any considerations or
compatibility issues before changing a deployment’s MongoDB version:
- The MongoDB Release Notes
- The documentation for your driver.
- MongoDB Compatibility Matrix
- Plan the version change during a predefined maintenance window.
- Change the MongoDB version on a staging environment before changing a production environment. Your staging environment should mirror your production environment. This can help avoid compatibility issues that may result in downtime for your production deployment.
- Follow the MongoDB release notes when performing manual upgrades of replica sets and sharded clusters.
Downgrading Limitations
You cannot downgrade a MongoDB deployment:
- From version 3.6 to any version before 3.4.0
- From version 3.4 to any version before 3.2.8
Prerequisites¶
Remove Incompatible MongoDB Features when Downgrading¶
If the MongoDB deployment has set its Feature Compatibility Version to the same release series as its Version, you must first downgrade the featureCompatibilityVersion of the instance manually.
- 5.0 to 4.4
- 4.4 to 4.2
- 4.2 to 4.0
- 4.0 to 3.6
Downgrade the Feature Compatibility Version.¶
- Downgrade the 5.0 Standalone Feature Compatibility Version to 4.4
- Downgrade the 5.0 Replica Set Feature Compatibility Version to 4.4
- Downgrade the 5.0 Sharded Cluster Feature Compatibility Version to 4.4
Note
This removes any 5.0 incompatible features and sets the
"featureCompatibilityVersion"
to "4.4"
.
Import the deployment.¶
- Import the deployment back into Ops Manager.
- Edit the deployment in Ops Manager and select the downgraded version under the Version column.
Downgrade the Feature Compatibility Version.¶
- Downgrade the 4.4 Standalone Feature Compatibility Version to 4.2
- Downgrade the 4.4 Replica Set Feature Compatibility Version to 4.2
- Downgrade the 4.4 Sharded Cluster Feature Compatibility Version to 4.2
Note
This removes any 4.4 incompatible features and sets the
"featureCompatibilityVersion"
to "4.2"
.
Import the deployment.¶
- Import the deployment back into Ops Manager.
- Edit the deployment in Ops Manager and select the downgraded version under the Version column.
Downgrade the Feature Compatibility Version.¶
- Downgrade the 4.2 Standalone Feature Compatibility Version to 4.0
- Downgrade the 4.2 Replica Set Feature Compatibility Version to 4.0
- Downgrade the 4.2 Sharded Cluster Feature Compatibility Version to 4.0
Note
This removes any 4.2 incompatible features and sets the
"featureCompatibilityVersion"
to "4.0"
.
Import the deployment.¶
- Import the deployment back into Ops Manager.
- Downgrade the MongoDB binaries with Ops Manager:
Downgrade the Feature Compatibility Version.¶
- Downgrade the 4.0 Standalone Feature Compatibility Version to 3.6
- Downgrade the 4.0 Replica Set Feature Compatibility Version to 3.6
- Downgrade the 4.0 Sharded Cluster Feature Compatibility Version to 3.6
Note
This removes any 4.0 incompatible features and sets the
"featureCompatibilityVersion" : "3.6"
.
Import the deployment.¶
- Import the deployment back into Ops Manager.
- Downgrade the MongoDB binaries with Ops Manager:
Procedure¶
On the line listing the deployment item, click Modify.¶
Verify the desired version number is in the version list.¶
In the Cluster Configuration section, the Cluster Settings heading lists the processes with their names, MongoDB versions, data directories and log files.
- Scroll to the Cluster Settings heading.
- Click the Version arrow for the first MongoDB process in the list.
Note
If you’re running in local mode and don’t see your desired version, you can Update the Version Manifest Manually.
To learn more, see Local Mode Configuration.
Change the version of MongoDB for the deployment.¶
For each MongoDB process that you want to change:
- Click the current version number for the process.
- Click the desired version number.
(Optional) Update the featureCompatibilityVersion
.¶
If you are upgrading to a new major version, and wish to enable
features offered in the new major version, you must also update the
featureCompatibilityVersion
.
For each MongoDB deployment that you want to change:
- Click the current
featureCompatibilityVersion
for the deployment. - Click the value that matches the desired version number.
Click Save.¶
Click Review & Deploy to review your changes.¶
Click Confirm & Deploy to deploy your changes.¶
Otherwise, click Cancel and you can make additional changes.