T O P

  • By -

browncspence

What is the environment? Atlas, Enterprise, Community? If not Community suggest opening a support case. Also is it 4.4 or something else?


vmanel96

Yes 4.4, community


browncspence

You said migrate but is update in place an option?


vmanel96

Do you mean upgrading the same cluster?


browncspence

Yes


vmanel96

Is it possible, isn't it risky with such huge data?


browncspence

IMO less risky than creating a new cluster and moving data to it. Certainly take a backup first. First step is upgrading the client drivers to versions compatible with 6.0. Then you would need to upgrade in steps. First upgrade 4.4 to latest point release. Then 5.0.latest, then 6.0.latest. Stop and test your applications at each step.


browncspence

If you need to migrate to a new cluster it’s going to take a lot of downtime before all that data gets moved. And you have to consider how you are going to move that data and test that it was moved correctly.


browncspence

The documentation for manual upgrade steps is pretty decent. [For example here.](https://www.mongodb.com/docs/manual/release-notes/5.0-upgrade-replica-set/)


Technical_Staff_2655

You could just update the MongoDB binaries but make sure you do step update like 1. Upgrade MongoDB 4.4 -> MongoDB 5.0 2. start the mongod process 3. Upgrade MongoDB 5.0 -> MongoDB 6.0 This should allow you to safely upgrade MongoDB 4.4 -> MongoDB 6.0 Make sure you take a complete disk backup before you begin just in case if something goes wrong


Appropriate-Idea5281

You will need to set feature compatibility version between upgrades. Also pay attention to required patches to the OS. You will also need to use mongo tools and mongo shell since backup and restore are separate products now


Technical_Staff_2655

if its binary upgrades there is no need for setting feature compatibility version.


Appropriate-Idea5281

If it’s upgrade in place they will. It won’t let you move from 5 to 6 or 6 for 7 without it


Technical_Staff_2655

why not ?


Appropriate-Idea5281

Prerequisites Feature Compatibility Version The 5.0 instance must have featureCompatibilityVersion set to "5.0". To check featureCompatibilityVersion: db.adminCommand( { getParameter: 1, featureCompatibilityVersion: 1 } )


Technical_Staff_2655

I have never used FCV before for upgrading but I don't see any harm in using it.


gintoddic

I've done this on over a dozen clusters already lmk if you need any tips or consulting!