Manually Upgrading the MongoDB Minor Version

Article ID: 54441

Article Type: Technical Reference

Last Modified:

Commvault uses MongoDB as a core infrastructure component to provide better performance for its API server. Commvault uses the following methods to define the version of MongoDB that is used:

You can use this article to manually upgrade to a newer minor version of MongoDB (for example, MongoDB 4.2.2 to MongoDB 4.2.3). You cannot manually upgrade to a newer major version of MongoDB (for example, MongoDB 4.0 to MongoDB 4.2)

For a list of minor versions in each supported MongoDB major version, go to MongoDB Release Notes on the MongoDB website.

Important: Each Commvault release supports a specific MongoDB release. To ensure compatibility, do not upgrade your MongoDB instance to a version that Commvault does not support. Before beginning an upgrade, carefully read all the steps in this article. If you encounter a problem, contact Commvault Customer Support.

Upgrading the minor MongoDB version from version A.B.X to version A.B.Y (where Y > X)

  1. Navigate to the Commvault installation folder that contains the current MongoDB binaries. They are in the following location: <commvault_installation_directory>\MongoDB\Server\Latest\bin
  2. Verify the current MongoDB version by starting mongo/mongosh, and then execute the command: db.version(); If the current minor version is lower than the target minor version, you can use the following steps to get the latest minor version.
  3. Use your browser to go to the MongoDB downloads page on the MongoDB website.
  4. Under Community Server, click Select Package. The window displays the version selection information.
  5. From the Version list, select the correct version, and from the Platform list, select the correct platform type.
  6. From the Package list, make sure you download the raw binaries instead of the installer. For Windows, choose zip, and for Linux, choose tgz.
  7. Click Download to download and save the binaries to your file system.
  8. Open the Commvault Process Manager and shut down Commvault MongoDB(InstanceXYZ).
  9. Navigate to the Commvault installation folder that contains the current (older) MongoDB binaries. They are in the following location: <commvault_installation_directory>\MongoDB\Server\Latest\bin
  10. Make a backup copy of the contents of the bin directory.
  11. Replace the existing binaries with the new binaries that you just downloaded.
  12. Open the Commvault Process Manager, and then start the Commvault MongoDB(InstanceXYZ) process.
  13. Verify that MongoDB is running the new correct version by using the instructions in steps 1 and 2.
1 Commvault Way, Tinton Falls, NJ 07724 Sitemap | Legal Notices | Trademarks | Privacy Policy
Copyright © 2022 Commvault | All Rights Reserved.