MongoDB Manual Upgrade

This document describes the steps to manually upgrade the MongoDB.

  1. Pull or load the required MongoDB container images.
For Online installationsFor air-gaped installations
  • docker load -i ad-db_4.4.20.tgz
  • docker load -i ad-db_5.0.16.tgz
  • docker load -i ad-db_6.0.5.tgz

Upgrade to Version 4.4

  1. Retag the version 4.4.20 to 3.2.0 by executing the following command.
Bash
Copy
  1. Restart the ad-db service by executing the following command.
Bash
Copy
  1. Exec into the ad-db container by executing the following command.
Bash
Copy
  1. Exec into the mongo shell by executing the following command.
Bash
Copy
  1. Set the compatibility version to 4.4.
Bash
Copy

The expected output for the above command is as follows.

{ "ok" : 1 }

  1. Exit the mongo shell by executing the following command.
Bash
Copy
  1. Exit the ad-dbcontainer by executing the following command.
Bash
Copy

Upgrade to Version 5.0

  1. Retag the version 5.0.16 to 3.2.0 by executing the following command.
Bash
Copy
  1. Restart the ad-db service by executing the following command.
Bash
Copy
  1. Exec into the ad-db container by executing the following command.
Bash
Copy
  1. Exec into the mongo shell by executing the following command.
Bash
Copy
  1. Set the compatibility version to 5.0 by executing the following command.
Bash
Copy

The expected output for the above command is as follows.

{ "ok" : 1 }

  1. Exit out of the mongo shell by executing the following command.
Bash
Copy
  1. Exit the ad-db container by executing the following command.
Bash
Copy

Upgrade to Version 6.0.5

  1. Retag the version 6.0.5 to 3.2.0 by executing the following command.
Bash
Copy
  1. Restart the ad-db service by executing the following command.
Bash
Copy
  1. Exec into the ad-db container by executing the following command.
Bash
Copy
  1. Exec into the mongo shell by executing the following command.
Bash
Copy

Since compatibility was already 5.0, upgrade goes as expected and you need not take any other action.

Validate the MongoDB Migration

If the Pulse Web UI loads without any issues, the DB migration is successful. Clear the browser cache and check few dashboard pages to validate.

Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard