[SERVER-17645] Error while adding ashard Created: 18/Mar/15  Updated: 14/Apr/16  Resolved: 01/Apr/15

Status: Closed
Project: Core Server
Component/s: Admin
Affects Version/s: None
Fix Version/s: None

Type: Question Priority: Major - P3
Reporter: sampat Assignee: Unassigned
Resolution: Incomplete Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Participants:

 Description   

mongos> sh.addShard("192.168.2.191:27018")

{ "ok" : 0, "errmsg" : "can't add shard 192.168.2.191:27018 because a local dat abase 'holi' exists in another shard0000:192.168.2.190:27018" }

 Comments   
Comment by Sam Kleinman (Inactive) [ 18/Mar/15 ]

Sorry that you're having trouble with the cluster administration. To help us begin to debug these issues:

  1. Can you please please provide the output of ls -lAr on the dbPath of the shard you're trying to add to the cluster, as well as first shard (i.e. shard0000:192.168.2.190:27018)?
  2. Can you reproduce this error if you start a new mongod deployment (i.e. a standalone or replica set) without any data in the dbPath?

Regards,
Sam

Comment by sampat [ 18/Mar/15 ]

Error while adding a shard says that database exists in another shard

Generated at Thu Feb 08 03:45:09 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.