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:32] – [Configure MongoDB] walkeradmin | windows_mongodb_arbiter [2023/03/09 22:35] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 95: | Line 95: | ||
Just copy the mongodb.key file from your Controller to your Windows MongoDB folder (C:\Program Files\MongoDB\Server\3.6) | 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: | ||
+ | < | ||
+ | { | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | }, | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | }, | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | }, | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | } | ||
+ | }, | ||
+ | " | ||
+ | { | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | }, | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | }, | ||
+ | { | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | }, | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | }, | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | }, | ||
+ | { | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | } | ||
+ | ], | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | } | ||
+ | } | ||
+ | } | ||
+ | repldb: | ||
+ | </ |
windows_mongodb_arbiter.1579771942.txt.gz · Last modified: 2023/03/09 22:35 (external edit)