Questions tagged [mongodb-3.0]

This is the tag for mongodb version 3.0

120 questions
40
votes
3 answers

check storage engine from shell

I'm upgrading to 3.0 and ran into some issues with the upgrade. Specifically, I got an error when trying to start up mongod via ssh, it tried to use the default dbpath instead of the one I specified in my new YAML config file. I went ahead and…
anon
26
votes
3 answers

MongoDB MMAPv1 vs WiredTiger storage engines

In mongoDB3 appeared a new storage engine: WiredTiger. Yet, MMAPv1 is still the default choice in Mongo. One might not be better than the other, it's often a matter of use case and choosing the right tool for the job. But which engine is right for…
Buzut
  • 365
  • 1
  • 3
  • 9
11
votes
4 answers

Error parsing YAML config file: yaml-cpp

I'm using the following command (Windows machine) with the MongoDB shell version: 3.0.7: mongod --config "G:\NodeApps\mongod.cfg" --install Contents of mongod.cfg file are given below: systemLog: destination: file …
Raj Wadhwa
  • 255
  • 2
  • 4
  • 10
7
votes
2 answers

MongoDB -- Failed global initialization: Failed to open "var/log/mongodb/mongod.log"

I am getting errors starting Mongod v3.0.15 in Debian linux. I had changed the /etc/mongod.conf file to use smallFiles by adding mmapv1: smallFiles: true to the storage options. I now get the following error when I execute $mongod --config…
Karen A.
  • 71
  • 1
  • 3
7
votes
6 answers

Secondary and Arbiter stuck in Startup

I'm using MongoDB version 3.0.0. I'm trying to setup mongodb replication on our machine. Replication was initially setup but due to some changes on the VM the entire thing crashed. When I tried to set it up again, the secondary and Arbiter became…
Vinnie
  • 195
  • 1
  • 1
  • 5
6
votes
3 answers

List all MongoDB databases from Linux bash terminal

Can you list all databases in MongoDB from a linux bash terminal? I cannot find the correct command. I am trying to list all so as that I can write a bash script to backup all DB's individually. Is there a better way?
eekfonky
  • 207
  • 3
  • 8
5
votes
1 answer

Query MongoDB Collection Compression Settings?

How can i query the settings for collection compression in MongoDB? I configured WiredTiger as storage engine and as collection compression the zlib algorithm. Here is a snippet of my configuration YAML file: storage: dbPath: "/data/wiredTiger" …
Florian Maier
  • 121
  • 1
  • 6
4
votes
2 answers

Is it possible to delete cache in Mongo?

My case is that I run several queries in Mongo and measure the response time. I know that Mongo uses Memory Mapped files and cache some data in RAM. If I create an index and run a query the execution time is 2,07 seconds. When I run the qeury again…
e7lT2P
  • 175
  • 1
  • 2
  • 11
4
votes
1 answer

MongoDB in ReplicaSet databases showing different sizes and objects

I have a MongoDB in a ReplicaSet with 3 members, and last week the primary node got corrupted somehow and stopped. I had to resync the data from the other nodes. It has been a week but I was checking this morning and the databases looks different…
4
votes
2 answers

How to set up a user who doesn't have `admin` database access but use it as authentication database?

I want to setup a user in MongoDB. This user will not have admin database access. But it uses admin as authentication database. It will fail to connect the mongoDB by this command mongo --host localhost admin. Instead, it can use this command to…
Joey Yi Zhao
  • 577
  • 3
  • 9
  • 23
4
votes
0 answers

Performance degradation after upgrade from 3.0.11 to 3.2.12

Environment: CentoOS 6 (kernel 2.6.32), MongoDB community edition 3.0.11 and 3.2.12 , storage engine MMAP, config servers on SCCC We are experiencing performance degradation when moving from 3.0.11 to 3.2.12. Application throughput is getting…
Antonios
  • 1,197
  • 7
  • 13
4
votes
1 answer

How to set a mongodb node to return as the primary of a replication set?

There is this question here: How to force a mongod to become primary in a replica set? But it was not the answer I was looking for. and there is the question below, which could be related but it is not the same. How to force a delayed member to…
Marcello Miorelli
  • 17,274
  • 53
  • 180
  • 320
4
votes
1 answer

I can't see some databases even though my user has the "root" role

I installed MongoDB 3.2 and I enabled authentication: security: authorization: enabled I created an admin user with the following command in the terminal: mongo admin --eval 'db.createUser({user:"admin",pwd:"password",roles:["root"]})' Then I…
vegidio
  • 141
  • 1
  • 4
4
votes
2 answers

Multiple IPs are not getting bind in mongodb conf file

I am trying to bind multiple IP to mongodb config file, one is 0.0.0.0 and other is 127.0.0.1. I did the following change in configuration file /etc/mongod.conf # network interfaces net: port: 27017 bindIp: "0.0.0.0,127.0.0.1" Than I reloaded…
Ajeet Khan
  • 469
  • 1
  • 5
  • 5
4
votes
1 answer

MongoDB replica set: members with different versions of mongod

The primary is running mongod 3.0.6 and the secondaries running mongod 3.0.7 is a mixing of versions allowed in the same replica set? For upgrade it's best practise to not all nodes the same time.
Sybil
  • 2,578
  • 6
  • 34
  • 61
1
2 3 4 5 6 7 8