243 reputation
16
bio website mongodb.org
location Sydney, Australia
age 32
visits member for 2 years, 1 month
seen 2 days ago

Software generalist and aspiring writer with an unhealthy addiction to technology, lego, programmable toys, scripting languages, open source, and problem solving.

I work for MongoDB, Inc.

Disclaimer: opinions and technical advice given here are my own and do not represent an official statement by my employer.


Apr
22
comment Can't take a write lock while out of disk space
I would check that the permissions are correct for mongod.exe to write to your data directory, and that the data directory is actually being used (in mongo shell, run db.serverCmdLineOpts() and verify the dbPath value matches "C:\mongodb-win32-x86_64-2.4.6\data").
Apr
16
awarded  Commentator
Apr
16
comment show database command doesn't show databases
How did you sort out the problem? It sounds like perhaps the databases weren't created yet because you only did use db but did not actually insert data into a collection in that new db.
Apr
16
answered How MongoDB indexes differs from MySQL indexes?
Apr
16
comment Which MongoDB administration UIs offer a table view (OS X)?
@Crashalot: Robomongo includes a table view as well as JSON and text view.
Apr
16
answered Mongodb ubuntu - config server and shard together
Apr
16
answered Is there way to have logical connection in MongoDB?
Apr
16
answered Which version of linux OS has support for MongoDB installation?
Apr
4
comment What synchronizes two delayed replicas, which is part of the replica set, included in sharded cluster?
If you want to get a consistent copy of the data files, you need to quiesce the database using db.syncLock() before taking your file copy backup and db.fsyncUnlock() after the backup completes. Copying the data files is typically a much longer progress than a snapshot backup. You also need to make your sharded cluster metadata readonly while taking the backup; if you do so by stopping a config server you can do a file copy backup of that rather than mongodump.
Mar
31
awarded  Organizer
Mar
31
revised What synchronizes two delayed replicas, which is part of the replica set, included in sharded cluster?
Re-tagged as "backup" instead of "repair"
Mar
31
answered Can arbiterOnly replica in MongoDB become SECONDARY and what it means?
Mar
31
comment Can arbiterOnly replica in MongoDB become SECONDARY and what it means?
What version of MongoDB is this? Can you post the output of rs.conf() and rs.status()?
Mar
31
suggested suggested edit on What synchronizes two delayed replicas, which is part of the replica set, included in sharded cluster?
Mar
31
comment What synchronizes two delayed replicas, which is part of the replica set, included in sharded cluster?
@pys: you can take approximate point-in-time backups of your sharded cluster using LVM snapshots, but you need to do those from regular secondaries rather than delayed secondaries and include a snapshot of your config data. If you reconsider your "delayed backup" idea as "archived snapshots", you can still get the desired end result of having full hourly or weekly backups of your sharded cluster.
Mar
31
awarded  Yearling
Mar
31
answered What synchronizes two delayed replicas, which is part of the replica set, included in sharded cluster?
Mar
31
comment What synchronizes two delayed replicas, which is part of the replica set, included in sharded cluster?
I expected the original question to be migrated from StackOverflow, but it was closed as off-topic instead. Reposting my answer here, as it is still relevant - your idea of backing up sharded clusters using delayed secondaries is probably not going to work as you are anticipating. You will have a backup of data, but not a proper point-in-time backup of your sharded cluster.
Jan
3
comment how to start sharding in mongodb
I suggest following the Deploy a Sharded Cluster tutorial in the MongoDB manual. It looks like you're at the step where you need to add shards to the cluster. You see the config and admin databases because you've connected your mongos to the config servers, but you do not have a functional cluster without adding the shards. You'll also need to shard your database and collections once the cluster is setup (as per the tutorial).
Dec
19
comment Where to insert data after sharding?
@PraveenJeganathan: what is your shard key for this collection? It sounds like you may be trying to insert a document that is missing the required fields for the shard key.