Advertisement
Guest User

Untitled

a guest
Jul 7th, 2015
177
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.88 KB | None | 0 0
  1. db.printShardingStatus()
  2. --- Sharding Status ---
  3. sharding version: {
  4. "_id" : 1,
  5. "minCompatibleVersion" : 5,
  6. "currentVersion" : 6,
  7. "clusterId" : ObjectId("55795cfdjhfjdn23f49e")
  8. }
  9. shards:
  10. { "_id" : "shard0000", "host" : "IP : Port" }
  11. { "_id" : "shard0001", "host" : "IP : Port" }
  12. balancer:
  13. Currently enabled: yes
  14. Currently running: no
  15. Failed balancer rounds in last 5 attempts: 0
  16. Migration Results for the last 24 hours:
  17. No recent migrations
  18. databases:
  19. { "_id" : "admin", "partitioned" : false, "primary" : "config" }
  20. { "_id" : "testDB", "partitioned" : true, "primary" : "shard0001" }
  21.  
  22. db.runCommand({ movePrimary : "testDB", to : "shard0000" })
  23. { "primary " : "shard0000:IP : Port", "ok" : 1 }
  24.  
  25. db.runCommand({ movePrimary : "testDB.testCollection", to : "shard0000" })
  26. { "ok" : 0, "errmsg" : "clone failed" }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement