Mongodb 从mongo数据库中删除碎片
我正在尝试从Mongo shard(v3.2)中删除一个shard-我看不到任何需要删除的数据库名称,但删除过程没有结束,我猜这是因为它正在等待用户操作来修复某些内容。根据错误消息,有人能想出如何进一步解决这个问题吗Mongodb 从mongo数据库中删除碎片,mongodb,Mongodb,我正在尝试从Mongo shard(v3.2)中删除一个shard-我看不到任何需要删除的数据库名称,但删除过程没有结束,我猜这是因为它正在等待用户操作来修复某些内容。根据错误消息,有人能想出如何进一步解决这个问题吗 db.runCommand( { removeShard : "shard0001" } ) { "msg" : "draining ongoing", "state" : "ongoing", "remaining" : { "chunks
db.runCommand( { removeShard : "shard0001" } )
{
"msg" : "draining ongoing",
"state" : "ongoing",
"remaining" : {
"chunks" : NumberLong(1),
"dbs" : NumberLong(0)
},
"note" : "you need to drop or movePrimary these databases",
"dbsToMove" : [ ],
"ok" : 1
}
删除我不需要的所有测试数据库/集合可以解决此问题。在非测试环境中这样做不是最好的方法。仍在寻找更好的解决方案