> For the complete documentation index, see [llms.txt](https://docs.percona.com/percona-server-for-mongodb/8.3/llms.txt).

# Upgrading from Percona Server for MongoDB 8.0 to 8.3

## Considerations

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

1. 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.

   Review the [Compatibility changes in MongoDB 8.2](https://www.mongodb.com/docs/manual/release-notes/8.3-compatibility/) and [Compatibility changes in MongoDB 8.3](https://www.mongodb.com/docs/manual/release-notes/8.3-compatibility/) before you begin the upgrade.

1. If you run Amazon Linux 2023, consider the following:

   We build and test Percona Server for MongoDB only on the latest versions of Amazon Linux 2023. Because of the way Amazon Linux updates their libraries, Percona Server for MongoDB works only on specific Amazon Linux versions.

   The following table shows Percona Server for MongoDB versions that are supported on specific versions of Amazon Linux 2023:

   | Percona Server for MongoDB version | Amazon Linux 2023 version |
   | ---------------------------------- | ------------------------- |
   | 8.3.7-1                            | 2023.11.x and newer       |

   To upgrade Percona Server for MongoDB, make sure that you run a compatible version of Amazon Linux 2023. Use the [update instructions](https://docs.aws.amazon.com/linux/al2023/ug/updating.html) to update the operating system.

## Prerequisites

Before the upgrade, do the following:

1. Make a full backup of your data and configuration files
1. In Percona Server for MongoDB 8.3, journaling is enabled by default. Both the `storage.journal.enabled` configuration option and the corresponding `--journal`, `--no-journal` command-line options are ignored. You receive the corresponding warning during the server start after the upgrade. To get rid of this warning, change your configuration to remove the journaling options.

**Upgrade on Debian and Ubuntu**

1. Stop the `mongod` service:

   ```bash
   sudo systemctl stop mongod
   ```

1. Enable Percona repository for Percona Server for MongoDB 8.3:

   ```bash
   sudo percona-release enable psmdb-83
   ```

1. Update the local cache:

   ```bash
   sudo apt update
   ```

1. Remove the following configuration from the configuration file, if you have it:

   ```yaml
   processManagement:
      fork: true
      pidFilePath: /var/run/mongod.pid
   ```

1. Install Percona Server for MongoDB 8.3 packages:

   ```bash
   sudo apt install percona-server-mongodb
   ```

1. Start the `mongod` instance:

   ```bash
   sudo systemctl start mongod
   ```

For more information, see [Installing Percona Server for MongoDB on Debian and Ubuntu](https://docs.percona.com/percona-server-for-mongodb/8.3/install/apt.md).

**Upgrade on Red Hat Enterprise Linux and derivatives**

1. Stop the `mongod` service:

   ```bash
   sudo systemctl stop mongod
   ```

1. Enable Percona repository for Percona Server for MongoDB 8.3:

   ```bash
   sudo percona-release enable psmdb-83
   ```

1. Remove the following configuration from the configuration file, if you have it:

   ```yaml
   processManagement:
      fork: true
      pidFilePath: /var/run/mongod.pid
   ```

1. Install Percona Server for MongoDB 8.3 packages:

   ```bash
   sudo yum install percona-server-mongodb
   ```

1. Start the `mongod` instance:

   ```bash
   sudo systemctl start mongod
   ```

After the upgrade, Percona Server for MongoDB is started with the feature set of 8.0 version. Assuming that your applications are compatible with the new version, enable 8.3 version features. Run the following command against the `admin` database:

```javascript
db.adminCommand( { setFeatureCompatibilityVersion: "8.3", confirm: true } )
```

See also

MongoDB Documentation:

- [Upgrade a Standalone](https://www.mongodb.com/docs/manual/release-notes/8.3-upgrade-from-8.0-standalone/)
- [Upgrade a Replica Set](https://www.mongodb.com/docs/manual/release-notes/8.3-upgrade-from-8.0-replica-set/)
- [Upgrade a Sharded Cluster](https://www.mongodb.com/docs/manual/release-notes/8.3-upgrade-from-8.0-sharded-cluster/)
