Reputation
789
Top tag
Next privilege 1,000 Rep.
See vote count; VIP usercard
Badges
4 10
Newest
 Enthusiast
Impact
~13k people reached

Apr
24
comment Setting up MongoDB MMS on Sharded Cluster
If you have a sharded cluster, you should able to add the address of one of your mongos servers and have the rest of the cluster discovered. If you're still having trouble .. can you comment with a link to the MMS group (or the group name) in MMS so someone from MongoDB can help investigate? Thanks.
Apr
21
comment How MongoDB allocate new data block when data block is full
Note that this description only applies to the default MMAP storage engine (MongoDB 3.0 and earlier). Optional storage engines in MongoDB 3.0+ (eg. WiredTiger) have different allocation strategies and some considerations such as document padding may not be applicable.
Apr
3
comment Replica Set In Mongo Are All Primary
You only need to run rs.initiate() once, which is on the first node you initialise to become a primary. Secondaries should be added via rs.add() on the primary. A common mistake is to run rs.initiate() on all nodes which results in creating three one-node replica sets with the same name (rather than one replica set with three nodes). From your description, it sounds like this is what you may have done. If so, the fix would be to delete the data directories from your secondaries and rs.add() those nodes to the replica set via the primary.
Mar
24
comment Genghis admin ui not working with mongodb 3.0.1 wired tiger
There weren't any changes in the PHP 1.6.6 driver that should have affected this, but good to hear you resolved your problem :)
Mar
23
comment Genghis admin ui not working with mongodb 3.0.1 wired tiger
Hrm .. haven't been able to reproduce the issue. What version of Genghis are you running? Can you try to run a standalone test with just $db->listCollections() in a PHP script?
Mar
21
comment Genghis admin ui not working with mongodb 3.0.1 wired tiger
Are you certain you are using the 1.6.5 PHP driver? Can you check via phpinfo() to be certain? If the listCollections() call isn't working with WiredTiger storage, this usually indicates an older driver that does not support the new listCollections server command required for WiredTiger in MongoDB 3.0. I just tried Genghis 2.3.11 with the 1.6.5 PHP driver and it works fine for listing collections with WiredTiger storage.
Mar
20
comment MongoDB production security and backup
@AyeyeBrazo There are commands listed if you follow the tutorials for a specific approach. For example: Back Up and Restore with MongoDB Tools or Back Up With Filesystem Snapshots. There are different approaches to backup depending on your deployment type and requirements. What specific steps/examples are you looking for ? What sort of deployment do you have (single node, replica set, ..)?
Mar
19
comment Get disk usage information of mongodb database
possible duplicate of Get disk usage information of mongodb database
Mar
19
comment Issue running MongoDb 3.0
There should be more details in your logfile; check the logpath configured in /etc/mongodb.conf. Note: the more typical way to install MongoDB on Ubuntu is using the supported .deb packages for mongo-org. You would then start MongoDB with sudo service mongod start.
Mar
19
comment what is the downtime of mongodb cluster when upgrade to 3.0
While MMS supports provisioning instances on AWS, you can also use it to manage an existing cluster or deploy to your own environment (i.e. AWS is not a requirement): docs.mms.mongodb.com/tutorial/nav/add-servers. There are also other options for monitoring: docs.mongodb.org/manual/administration/monitoring.
Mar
19
comment what is the downtime of mongodb cluster when upgrade to 3.0
FYI, another option to consider in future (though probably not free depending on how large your cluster is) would be using the MongoDB Management Service (MMS)'s Automation feature. That changes all the manual steps for upgrading a cluster into a UI (or API) driven edit from your current 2.6.x version to 3.0.x: mms.mongodb.com.
Mar
19
comment MongoDB Insufficient free space for journal files
Rather than running your server down to the last available byte, I would recommend attaching a larger EBS volume and moving your dbpath to this. If you're that low on disk space you're living very dangerously ;-).
Mar
19
comment Trouble starting Service mongodb-mms-backup-daemon
On-Prem MMS is only available as part of a MongoDB commercial subscription. You should contact MongoDB, Inc for support.
Mar
17
comment When upgrading config servers to use WireTiger, the running config server with wiredtiger does not authenticate the existing pass and user?
@ChengchengPei Apologies for not replying sooner .. out at meetings :). --keyfile implies --auth so if you want to fully disable you need to remove both options when starting mongod. It sounds like you were able to resolve your issue now?
Mar
17
comment When upgrading config servers to use WireTiger, the running config server with wiredtiger does not authenticate the existing pass and user?
For the restore path you need to include the database name in the dump directory, i.e.: mongorestore --port 27019 --db admin /var/data/config1/mongodump-15-03-16/admin . In my example it was dump/config/.
Mar
17
comment When upgrading config servers to use WireTiger, the running config server with wiredtiger does not authenticate the existing pass and user?
Since the users were not created during the initial mongodump, I think you need to remove ` --username user --password pass --authenticationDatabase admin --authenticationMechanism MONGODB-CR` from the mongorestore. Alternatively, start mongod without auth enabled, mongorestore the user data, then restart mongod with auth enabled.
Mar
17
comment what is the password to user mongodb when mongodb is installed in ubuntu?
How did you install MongoDB, and how are you starting mongod? If you used the official packaged install for Ubuntu the mongod service should already be set to run with the correct permissions: sudo service mongod start. The sudo in this case is to start the service. The service definition ensures that mongod runs as the mongodb user.
Mar
17
comment When upgrading config servers to use WireTiger, the running config server with wiredtiger does not authenticate the existing pass and user?
I've raised an issue to get this fixed in the MongoDB manual: jira.mongodb.org/browse/DOCS-5029.
Mar
16
comment how to upgrade the config servers to use WiredTiger in mongodb 3.0.0
For the auth failed error I would check your credentials by trying to login using the mongo shell. Have you upgraded your authSchema? Can you also make sure you are using a 3.0 mongorestore (mongorestore --version)? FYI, there should be no need to run sudo for mongorestore or mongodump (better to fix the file/directory permissions, if incorrect).
Mar
16
comment how to upgrade the config servers to use WiredTiger in mongodb 3.0.0
Config servers do not run as replica sets, so there is no automatic process to sync them. To convert data between storage engine formats you need to mongodump the data from an mmap instance and then mongorestore into a WiredTiger instance. Given the config servers have to be consistent, you could take a different approach and copy the first mongodump to each config server .. but that involves network transfer for data that should already be local to each config server (but not in the desired storage engine format).