0

3 台の異なるマシンで 3 つの mongod プロセスを開始しており、アプリケーション サーバーも実行している別のマシンで mongos プロセスを実行しようとしています。

次のメッセージが表示されます。

~$ mongos --configdb mongo1:27017,mongo2:27017,mongo3:27017
Mon Sep 24 10:34:05 mongos db version v2.0.4, pdfile version 4.5 starting (--help for usage)
Mon Sep 24 10:34:05 git version: nogitversion
Mon Sep 24 10:34:05 build info: Linux yellow 2.6.24-29-server #1 SMP Tue Oct 11 15:57:27 UTC 2011 x86_64 BOOST_LIB_VERSION=1_46_1
Mon Sep 24 10:34:09 ERROR: config servers mongo1:27017 and mongo2:27017 differconfig servers mongo1:27017 and mongo2:27017 differconfig servers mongo1:27017 and mongo2:27017 differconfig servers mongo1:27017 and mongo2:27017 differconfig servers not in sync! config servers mongo1:27017 and mongo2:27017 differ
chunks: "d41d8cd98f00b204e9800998ecf8427e"  EOO
EOO EOO
configServer startup check failed
4

2 に答える 2

0

すべての構成サーバーから削除mongod.lockし、mongodを再起動しました。それで問題は解決しました。

于 2012-09-24T12:36:33.810 に答える
0

There are 2 ways it can be done,

1) clear the data folder and restart the server, it will start as usual without any error,

2) delete the mongod lock file and Use the --repair option.

于 2014-11-06T17:43:20.803 に答える