When you are updating a Windows high availability system, if your version of MondDB is lower than 4.2, create a new replica set, and use mongoDump/mongoRestore.
To create the new replica set:
-
Back up servers.
-
Create a backup or snapshot for all servers.
-
Perform a complete database dump.
-
-
Remove all replica sets.
-
Stop all FileCloud services.
-
Remove all replica sets, TLS, and authentication parameters in mongod.conf for all db nodes.
Details about the configuration can be found at FileCloud High Availability. -
Delete DB data folder content for all DB nodes:
Linux: /var/lib/mongo/
Windows: C:\xampp\mongodb\bin\data\ -
Start MongoDB on all nodes.
-
Confirm that you can connect to all DB nodes with the mongo shell without authentication and TLS and if the replica set is disabled:
C++> rs.status() { "ok" : 0, "errmsg" : "not running with --replSet", "code" : 76, "codeName" : "NoReplicationEnabled" } C/C++ detected -
Stop MongoDB on all nodes and remove the data folder content again.
-
-
Perform a standard FileCloud update.
-
Create a cluster and restore data.
-
Restore DB dump using mongorestore.