...
OMK customers may wish to upgrade MongoDB to 3.2 and realize the efficiencies of Wired Tiger. This example uses CentOS because this is the prevailing Linux distribution used by our customer base.
Steps
- Ensure MondgoDB Authentication Is Set Correctly
- Backup Current Database
- Stop running services
- Install MongoDB 3.2
- Provision MongoDB 3.2
- Restart OMK Services and Test
...
Code Block |
---|
[root@opmantek ~]# /usr/local/omk/bin/setup_mongodb.pl |
Backup Current Database
Create Backup Directory
Code Block |
---|
[root@opmantek /]# mkdir data/mongodump |
Dump MongoDB
Code Block |
---|
[root@opmantek ~]# mongodump -u=opUserRW -p=op42flow42 --out=/data/mongodump |
Stop Running OMK Services
Code Block |
---|
[root@opmantek ~]# service opconfigd stop Stopping opconfig daemon opconfigd [ OK ] [root@opmantek ~]# service opeventsd stop Stopping opevents daemon opeventsd [ OK ] [root@opmantek ~]# service omkd stop Stopping Opmantek Webserver opmantek.exe [ OK ] [root@opmantek ~]# service mongodopflowd stop StoppingShutting down mongodflowd: [ OK ] |
Backup Current Database
Create Backup Directory
Code Block |
---|
[root@opmantek /]# OK ] mkdir data/mongodump |
Dump MongoDB
Code Block |
---|
[root@opmantek ~]# mongodump -u=opUserRW -p=op42flow42 --out=/data/mongodump |
Stop MongoDB
Code Block |
---|
[root@opmantek ~]# service opflowdmongod stop Stopping mongod: Shutting down flowd: [ OK ] |
Install MongoDB 3.2
Update MongoDB Repository File
...
Log into each OMK Application via the GUI and verify the data is still there. If everythis is as it should be then delete /data/mongodump