我有一个MongoDB分片群集,它由两个副本集,一个MongoDB查询路由器和一个Mongo Config服务器组成。我正在尝试在两个副本集的主数据库上的MongoDB数据目录上安装外部磁盘。 成功安装磁盘并填充MongoDB数据后。
在MongoDB中填充数据后,卸载并分离具有MongoDB数据的外部磁盘。然后重置计算机,即从VM中删除所有数据和应用程序。 现在,我尝试安装MongoDB副本集,然后安装Mongo Query路由器,然后安装Mongo Config服务器。 但是MongoDB复制集的安装失败,并引发以下错误。
2019-06-18T08:09:48.244-0400 W SHARDING [replSetDistLockPinger] pinging failed for distributed lock pinger :: caused by :: FailedToSatisfyReadPreference: Could not find host matching read preference { mode: "primary" } for set config_replication
2019-06-18T08:09:48.244-0400 W SHARDING [initandlisten] Error initializing sharding state, sleeping for 2 seconds and trying again :: caused by :: FailedToSatisfyReadPreference: Error loading clusterID :: caused by :: Could not find host matching read preference { mode: "nearest" } for set config_replication
2019-06-18T08:09:48.245-0400 I SHARDING [shard registry reload] Periodic reload of shard registry failed :: caused by :: FailedToSatisfyReadPreference: could not get updated shard list from config server :: caused by :: Could not find host matching read preference { mode: "nearest" } for set config_replication; will retry after 30s
2019-06-18T08:09:48.446-0400 W NETWORK [monitoring keys for HMAC] Unable to reach primary for set config_replication
2019-06-18T08:09:48.951-0400 W NETWORK [monitoring keys for HMAC] Unable to reach primary for set config_replication
2019-06-18T08:09:49.455-0400 W NETWORK [monitoring keys for HMAC] Unable to reach primary for set config_replication