Upgrading from Percona Server for MongoDB 4.0 to 4.2

Availability:MongoRocks has been removed from Percona Server for MongoDB 4.2

To upgrade Percona Server for MongoDB to version 4.2, you must be running version 4.0 Upgrades from earlier versions are not supported.

Before upgrading your production Percona Server for MongoDB deployments, test all your applications in a testing environment to make sure they are compatible with the new version.

The general procedure for performing an in-place upgrade (where your existing data and configuration files are preserved) includes the following steps:

  1. Stop the mongod instance
  2. Remove old packages
  3. Install new packages
  4. Start the :program`mongod` instance

It is recommended to upgrade Percona Server for MongoDB from official Percona repositories using the corresponding package manager for your system. For more information, see Installing Percona Server for MongoDB.

Warning

Perform a full backup of your data and configuration files before upgrading.

Upgrading on Debian or Ubuntu

Run the following commands as root or by using the sudo command

  1. Stop the mongod instance: service mongod stop
  2. Remove Percona Server for MongoDB 4.0 packages: apt-get remove percona-server-mongodb*
  3. Install Percona Server for MongoDB 4.2 packages: apt-get install percona-server-mongodb
  4. Start the mongod instance: service mongod start

For more information, see Installing Percona Server for MongoDB on Debian and Ubuntu.

Upgrading on RHEL and CentOS

Run the following commands as root or by using the sudo command

  1. Stop the mongod instance: service mongod stop
  2. Remove Percona Server for MongoDB 4.0 packages: yum remove percona-server-mongodb*
  3. Install Percona Server for MongoDB 4.2 packages: yum install percona-server-mongodb
  4. Start the mongod instance:: service mongod start

For more information, see Installing Percona Server for MongoDB on Red Hat Enterprise Linux and CentOS.