Mongodb addShard添加失败解决方案
报错信息:"in seed list shard3/nosql01:27019,nosql02:27020,nosql03:27018,host nosql03:27018 does not belong to replica set shard3;found { topologyVersion: { processId: ObjectId('61a8788b95ab9c4ca8cf2abf'),
·
报错信息:
"in seed list shard3/nosql01:27019,nosql02:27020,nosql03:27018,
host nosql03:27018 does not belong to replica set shard3;
found { topologyVersion: { processId: ObjectId('61a8788b95ab9c4ca8cf2abf'), counter: 13 },
hosts: [ \"192.168.229.137:27018\", \"nosql01:27019\" ], arbiters: [ \"nosql02:27020\" ],
可以根据提示的 hosts 来添加内容
从上面的报错信息中可以看出 192.168.229.137:27018, nosql01:27019, nosql02:27020 的顺序来添加内容
例如
sh.addShard("shard3/192.168.229.137:27018,nosql01:27019,nosql02:27020")
即可添加成功
更多推荐
已为社区贡献2条内容
所有评论(0)