Upgrading from MongoDB Community Edition to Percona Server for MongoDB

In-place upgrades are those which are done using the existing data in the server. Generally speaking, this is stopping the server, removing the old packages, installing the new server and starting it with the same data files. While they may not be suitable for high-complexity environments, they may be adequate for many scenarios.

Warning

Before starting the upgrade process it’s recommended that you perform a full backup (if you don’t have one already).

Upgrading from MongoDB Community to Percona Server for MongoDB on CentOS/RHEL

  1. Stop the mongod process:
$ service mongod stop
  1. Check for the installed packages:
$ rpm -qa | grep mongo

mongodb-org-3.0.6-1.el6.x86_64
mongodb-org-server-3.0.6-1.el6.x86_64
mongodb-org-shell-3.0.6-1.el6.x86_64
mongodb-org-mongos-3.0.6-1.el6.x86_64
mongodb-org-tools-3.0.6-1.el6.x86_64
  1. Remove the installed packages:
$ yum remove mongodb-org-3.0.6-1.el6.x86_64 mongodb-org-server-3.0.6-1.el6.x86_64 \
mongodb-org-shell-3.0.6-1.el6.x86_64 mongodb-org-mongos-3.0.6-1.el6.x86_64 \
mongodb-org-tools-3.0.6-1.el6.x86_64
  1. You can now proceed with steps described in Installing Percona Server for MongoDB on Red Hat Enterprise Linux and CentOS.

Upgrading from MongoDB Community to Percona Server for MongoDB on Debian/Ubuntu

  1. Stop the mongod process:
$ service mongod stop
  1. Check for the installed packages:
$ dpkg -l | grep mongod

ii  mongodb-org                              3.0.6                         amd64        MongoDB open source document-oriented database system (metapackage)
ii  mongodb-org-mongos                       3.0.6                         amd64        MongoDB sharded cluster query router
ii  mongodb-org-server                       3.0.6                         amd64        MongoDB database server
ii  mongodb-org-shell                        3.0.6                         amd64        MongoDB shell client
ii  mongodb-org-tools                        3.0.6                         amd64        MongoDB tools
  1. Remove the installed packages:
$ apt-get remove mongodb-org mongodb-org-mongos mongodb-org-server \
mongodb-org-shell mongodb-org-tools
  1. You can now proceed with steps described in Installing Percona Server for MongoDB on Debian and Ubuntu.