Questions tagged [replica-set]

20 questions
6
votes
1 answer

MongoDB Disaster Prep on AWS

I'm looking for best practice advice covering MongoDB disaster recovery within an AWS hosted environment. Our setup is fairly standard at this point, replica set of 3 servers (1 primary, 1 secondary, and 1 arbitrator), the mongo volumes on primary…
5
votes
2 answers

Can't config replica set using MongoDB 3

I'm trying to create a replica set in MongoDB version 3.04. I followed this tutorial and getting the next error while trying to add nodes using the primary server: vacrep:PRIMARY> rs.add('server address here') { "ok" : 0, "errmsg" : "Quorum…
Ofir
  • 181
  • 1
  • 1
  • 6
3
votes
2 answers

change mongo admin password on an arbiter

I have a mongoDB replicaSet that has 3 DBs - PRIMARY/SECONDARY + Arbiter. All 3 were installed the same manner - meaning they have admin database with a default password. Now - I want to change the default passwords. On primary/secondary it worked…
Boaz
  • 375
  • 1
  • 9
  • 16
3
votes
2 answers

Mongodb keeps reporting "no primary found", but shell works fine

I have a simple mongodb setup in a replicaset, with 1 actual instance and 1 arbiter (to avoid conflicts). This is in anticipation of expanding the replicaset to include more instances as our load increases. If I access mongodb through the shell, I…
Christian P.
  • 165
  • 1
  • 2
  • 7
3
votes
1 answer

mongod: automatically initiate replica-set

Currently I manually execute the rs.initiate() in the shell after starting a mongo primary or secondary machine to join the replica-set "farm". Doesn't the /etc/mongodb.conf allow me to define the initiate command to do this automatically when…
ledy
  • 515
  • 1
  • 6
  • 15
2
votes
0 answers

Why is MongoDB replicaset not syncing RBAC $external data in 3.0 to 3.2 upgrade?

I am wondering if anyone has seen an issue upgrading from 3.0.9 to 3.2.8 with the $external user database not getting replicated? I have an existing 3.0.9 replica set environment running with no encrypted communication (no-TLS) and no auth; the…
2
votes
0 answers

Huge oplog size after full sync on one secondary causing performance issues - MongoDB

I'm a MongoDB newbie. I have a replica set with 3 members (1 primary and 2 secondaries) on CentOS 6 and Mongo 2.6.8. One of the secondaries crashed because of high consumption of memory and I couldn't restart it properly (due to some data…
2
votes
2 answers

Creating a second (clone) MongoDB ReplicaSet on same storage volumes

We are upgrading our software which is going to require an update to our MongoDB database. We plan on doing it by making a copy of the existing ReplicaSet with a new name and making our updates to the new one and then switching when everything is…
Paul Hardwick
  • 167
  • 1
  • 1
  • 10
2
votes
1 answer

Remove a secondary from a mongo replica set without triggering re-election?

I had to add a new secondary node to my replica set yesterday so that I could do maintenance on another secondary node. Now that the maintenance is complete, I'd like to remove one of the secondaries to return to my original configuration. The…
Dan K.
  • 121
  • 3
2
votes
1 answer

mongodb replication: no primary elected

I have three servers with mongod installed on it running as a replication set. Suddenly the two secondories became unavailable (the mongod process died) - I think because they were too stale. The problem is that the original PRIMARY is now the…
Mads
  • 133
  • 1
  • 1
  • 5
1
vote
0 answers

MongoDB - collections and documents lost/disappeared in replica set

I was running three mongo (4.0.4) containers within docker with configured replica set over 10 months without having any problems or issues. Primary mongo container/replica set was connected with spring boot application that is running spring 2.1.1…
1
vote
2 answers

How to Change Replica Set Protocol Version in MongoDB.

I'm trying to change Replica Set Protocol to pv1. I have 5 replica set servers Mongo 3.6. I'm using the documentation from here https://docs.mongodb.com/manual/reference/replica-set-protocol-versions/ to make those changes. The documentation is…
B14D3
  • 5,110
  • 13
  • 58
  • 82
1
vote
1 answer

MongoDB - Bind_IP Breaking changes and Replica set broken

I'm running Replica set on 3 Windows server 2012 R2 in my VPN. The servers IPs are: 192.168.1.1,192.168.1.2,192.168.1.3. MongoDB version: 3.4.2 I want to limit the access to the MongoDB servers only to the servers that are part of the replica set,…
Shkolar
  • 143
  • 1
  • 6
1
vote
0 answers

Why does mongo's rs.status() show secondary as healthy when its offline

I logged into a secondary & did use admin; db.shutdownServer(), then I powered off the whole server with "sudo shutdown". On the primary server I am running rs.status(). For the secondary that is offline, I see: "health" : 1, "state" : 2, …
1
vote
2 answers

What if all nodes in replica set goes down, except 1 secondary node

What if all nodes in replica set goes down, except 1 secondary node. Unable to do operation with secondary node. Neither it selects itself as primary node.
Roshan
  • 13
  • 1
  • 3
1
2