Skip to content

Updating MongoDB 8.0.0 to 8.0.1


Updating older versions

For details on updating earlier SEAL MongoDB versions, see the corresponding SEAL MongoDB documentation.


Overview

The following instructions include the update of both, single system and cluster.

The standard procedure is as follows:

  1. Check the featureCompatibilityVersion key.

  2. Update the database as described in the instructions below.

    Your current mongod.conf configuration file will be renamed mongod.conf.bak.

    The database content will remain untouched.

  3. In an editor compare the new mongod.conf configuration file to mongod.conf.bak and change the necessary settings.

Hint - replica set required

MongoDB requires a replica set for both, single server and server cluster.


Checking the featureCompatibilityVersion Key

  1. Open a shell.

  2. Connect to the primary host of the replica set (localhost in a single server system):

    mongosh --tls -tlsAllowInvalidCertificates --host <primary host>
    
  3. Check the featureCompatibilityVersion key:

    db.adminCommand({ getParameter: 1, featureCompatibilityVersion: 1 })
    

    The result should be similar to this:

    {
    featureCompatibilityVersion: { version: '8.0' },
    ok: 1,
    '$clusterTime': {
        clusterTime: Timestamp({ t: 1745505640, i: 1 }),
        signature: {
        hash: Binary.createFromBase64('AAAAAAAAAAAAAAAAAAAAAAAAAAA=', 0),
        keyId: Long('0')
        }
    },
    operationTime: Timestamp({ t: 1745505640, i: 1 })
    }
    
  4. If the result shows a version lower than 8.0, set the featureCompatibilityVersion key to 8.0:

    db.adminCommand({ setFeatureCompatibilityVersion: '8.0', confirm: true })
    

In case of a cluster, repeat the above check for all members to ensure that all members have been switched over.


Updating the Database

Hint - cluster

In a cluster, you have to perform every step of the following instructions on all cluster servers before going on to the next step.

  1. Stop MongoDB:

    sudo systemctl stop mongod
    
  2. Open a shell.

  3. In a browser, log on to the SEAL Systems delivery platform with your logon data:

    https://delivery.sealsystems.de

    Hint - logon data

    You receive the logon data from your Technical Project Manager at SEAL Systems.

  4. Download the MongoDB - 8.0.1.220 - rpm folder. It is saved as MongoDB - 8.0.1.220 - rpm.zip.

  5. Extract MongoDB - 8.0.1.220 - rpm.zip:

    unzip "MongoDB - 8.0.1.220 - rpm.zip"
    
  6. Change to the MongoDB - 8.0.1.220 - rpm directory and start installing the contained packages:

    cd "MongoDB - 8.0.1.220 - rpm"
    
    sudo sh install.sh
    
  7. Open the required firewall ports for necessary services:

    sudo sh firewall.sh
    
  8. Start MongoDB:

    sudo systemctl start mongod
    
  9. In an editor, open the mongod.conf configuration file and change the necessary settings.

  10. Restart MongoDB:

    sudo systemctl start mongod
    

Proceed with Configuring SEAL MongoDB.

Hint - replica set required

MongoDB requires a replica set for both, single server and server cluster.


Back to top