jjzjj

addshard

全部标签

MongoDB addshard : failed to add 2nd shard

一共有6个目录,每个目录大概有1TB的数据,都属于一个数据库“test”现在,我想将它们分组到一个集群中。我已经构建了Shardserver和Configserver,但是在将第二个分片添加到集群时遇到了问题:db.runCommand({addshard:localhost:27017});db.runCommand({addshard:localhost:27027});"errmsg":"can'taddshardlocalhost:27027becausealocaldatabase'test'existsinanothershard0000:localhost:27017"删