25 Mar 2011 08:56
A problem when updating mongod from Non-Sharded System
First, I create a sharding env ,see http://www.mongodb.org/display/DOCS/A+Sample+Configuration+Session Then startup a new mongod localhost:10002, and want to add this mongod to sharding, > db.runCommand( { addshard : "localhost:10002"}) { "ok" : 0, "errmsg" : "can't add shard localhost:10002 because a local database 'te st' exists in another shard0000:localhost:10000" why? The page http://www.mongodb.org/display/DOCS/Upgrading+from+a+Non-Sharded+System says: All the databases of your mongod-process-turned-shard can be chunked and balanced among the cluster's shards. The commands and examples to do so are listed at the Configuring Sharding page
RSS Feed