Questions tagged [replica-set]
The replica-set tag has no usage guidance.
20
questions
1
vote
0
answers
2k
views
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 ...
1
vote
2
answers
3k
views
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/ ...
1
vote
1
answer
2k
views
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 ...
1
vote
0
answers
1k
views
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 ...
-1
votes
1
answer
544
views
mongod rs.initiate() error msg
I am a newbie so please bear with me.
I have used this command $ sudo mongod --config /etc/mongod2.confin terminal to start a mongodb service instance. In another terminal I ran $ mongo --port XXXX ...
3
votes
2
answers
4k
views
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 ...
1
vote
2
answers
3k
views
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.
2
votes
0
answers
172
views
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 ...
0
votes
1
answer
165
views
MongoDB foreground index build blocks secondary reads for all databases
Today one of the users of our MongoDB 3.0.12 sharded cluster has (wrongly) issued a foreground index build on its own database (pride_archive_ms), after the operation completed on the primary member ...
1
vote
2
answers
1k
views
MongoDB automatic failover between 2 data centers
If I deploy a MongoDb replica set across only 2 data centers, if one entire data center fails, can there be automatic failover to the other data center?
Consider the situation where 1 data center has ...
5
votes
2
answers
19k
views
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 ...
2
votes
0
answers
1k
views
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'...
2
votes
2
answers
1k
views
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 ...
2
votes
1
answer
1k
views
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 ...
3
votes
2
answers
13k
views
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 ...
1
vote
2
answers
165
views
How to control databases replicated by Mongo DB replica set
I have 2 databases in my mongo DB namespace, lets name them db1, db2 and db3 which are on the same dbpath.
Is it possible to configure mongo db replica set in that way that db3 wont be replicated ...
6
votes
1
answer
1k
views
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, ...
1
vote
1
answer
2k
views
MongoDB Replica Set, initiate() need to login error
I am trying to setup a replica set, but when I issue:
rs.initiate()
On the first server, I get the following error:
{ "errmsg" : "need to login", "ok" : 0 }
That is strange though, because in my ...
3
votes
1
answer
12k
views
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 ...
3
votes
1
answer
1k
views
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 ...