windows_mongodb_arbiter
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
windows_mongodb_arbiter [2020/01/23 09:27] – [Configure MongoDB] walkeradmin | windows_mongodb_arbiter [2023/03/09 22:35] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 80: | Line 80: | ||
bindIp: 0.0.0.0 | bindIp: 0.0.0.0 | ||
</ | </ | ||
+ | You can download the mongod.cfg file {{ :mongod.zip |here}}: | ||
\\ | \\ | ||
- | You can download | + | \\ |
+ | Create a MongoDB key file: | ||
+ | \\ | ||
+ | \\ | ||
+ | Create the file " | ||
+ | \\ | ||
+ | \\ | ||
+ | The contents of the key file should be the same as the corresponding file on the | ||
+ | Controller instances. This can be found using the following CentOS command: | ||
+ | \\ | ||
+ | cat / | ||
+ | Just copy the mongodb.key file from your Controller to your Windows MongoDB folder (C:\Program Files\MongoDB\Server\3.6) | ||
+ | ---- | ||
+ | \\ | ||
+ | ===== Create a MongoDB Service ===== | ||
+ | \\ | ||
+ | From a Windows Command Line, yype the following in Cmd.exe to create a MongoDB Service. | ||
+ | \\ | ||
+ | sc.exe create MongoDB binPath=" | ||
+ | \\ | ||
+ | Start the service with the following command: | ||
+ | \\ | ||
+ | net start MongoDB | ||
+ | \\ | ||
+ | ---- | ||
+ | \\ | ||
+ | ===== Add Arbiter to Replicaset ===== | ||
+ | \\ | ||
+ | SSH (or console) to your ' | ||
+ | \\ | ||
+ | \\ | ||
+ | From the command line type <color # | ||
+ | \\ | ||
+ | \\ | ||
+ | eth0: < | ||
+ | \\ | ||
+ | link/ether 74: | ||
+ | \\ | ||
+ | inet <color # | ||
+ | \\ | ||
+ | | ||
+ | \\ | ||
+ | inet <color # | ||
+ | \\ | ||
+ | | ||
+ | \\ | ||
+ | inet <color # | ||
+ | \\ | ||
+ | | ||
+ | \\ | ||
+ | inet6 fe80:: | ||
+ | \\ | ||
+ | | ||
+ | \\ | ||
+ | \\ | ||
+ | If you see the three IP Addresses (Controller IP1, VIP, LicensingVIP) then you are on the PRIMARY controller. | ||
+ | \\ | ||
+ | \\ | ||
+ | Check the password in the secrets.ini | ||
+ | cat / | ||
+ | Now add the Arbiter details by using the following: | ||
+ | mongo admin -u MediaKind -p ********* | ||
+ | \\ | ||
+ | \\ | ||
+ | Add the Arbiter using the rs.addArb method with the IP address of the Windows server that is used | ||
+ | for the management network of the MediaKind appliances e.g. | ||
+ | \\ | ||
+ | repldb: | ||
+ | |||
+ | (where x.x.x.x is the Management IP Address of your nCompass Server) | ||
+ | \\ | ||
+ | ---- | ||
+ | ===== Verify Replicaset Members ===== | ||
+ | \\ | ||
+ | Whilst in the mongo client, use the rs.status method to list the members of the Replicaset: | ||
+ | repldb: | ||
+ | This should return information including details of the PRIMARY, SECONDARY and ARBITER nodes: | ||
+ | <file> | ||
+ | { | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | }, | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | }, | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | }, | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | } | ||
+ | }, | ||
+ | " | ||
+ | { | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | }, | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | }, | ||
+ | { | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | }, | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | }, | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | }, | ||
+ | { | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | } | ||
+ | ], | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | } | ||
+ | } | ||
+ | } | ||
+ | repldb: | ||
+ | </ |
windows_mongodb_arbiter.1579771629.txt.gz · Last modified: 2023/03/09 22:35 (external edit)