Trouble setting up multiple Config Servers/ MongoS for sharding

1,069 views
Skip to first unread message

JonW

unread,
Jan 11, 2011, 6:59:33 PM1/11/11
to mongodb-user
I'm trying to set up three config servers for sharding and getting
some errors that the configservers are not in sync when starting the
MongoS process. I'm getting same errors when running Mongo 1.7.4 and
1.6.5.

Help!

These are the steps I'm doing:

1. I set up a replica Set of 3 instances on another server and
initializing them. This works just fine.

2. I set up config servers all on the same box, like:
./mongod --dbpath /mnt/ebsvol/mongodb/databases/userCfg1 --configsvr --
port 20001 --logpath /mnt/ebsvol/mongodb/logs/userCfg1.log &
./mongod --dbpath /mnt/ebsvol/mongodb/databases/userCfg2 --configsvr --
port 20002 --logpath /mnt/ebsvol/mongodb/logs/userCfg2.log &
./mongod --dbpath /mnt/ebsvol/mongodb/databases/userCfg3 --configsvr --
port 20003 --logpath /mnt/ebsvol/mongodb/logs/userCfg3.log &

3. Then I set up the MongoS by running:
/usr/local/mongodb/bin/mongos --configdb localhost:20001,localhost:
20002,localhost:20003

The result is the following error:

Tue Jan 11 15:50:18 git version:
0eb017e9b2828155a67c5612183337b89e12e291
Tue Jan 11 15:50:18 sys info: Linux domU-12-31-39-06-79-A1
2.6.21.7-2.ec2.v1.2.fc8xen #1 SMP Fri Nov 20 17:48:28 EST 2009 x86_64
BOOST_LIB_VERSION=1_41
Tue Jan 11 15:50:19 ERROR: config servers localhost:20001 and
localhost:20002 differconfig servers localhost:20001 and localhost:
20002 differconfig servers localhost:20001 and localhost:20002
differconfig servers localhost:20001 and localhost:20002 differconfig
servers not in sync! config servers localhost:20001 and localhost:
20002 differ
chunks: "d41d8cd98f00b204e9800998ecf8427e" EOO
EOO EOO
configServer startup check failed

Nat

unread,
Jan 11, 2011, 7:11:25 PM1/11/11
to mongodb-user
try to restart all config servers by deleting all files in /mnt/ebsvol/
mongodb/databases/userCfg1,/mnt/ebsvol/mongodb/databases/userCfg2,/mnt/
ebsvol/mongodb/databases/userCfg3

JonW

unread,
Jan 11, 2011, 9:21:26 PM1/11/11
to mongodb-user
Phew! that worked!
Reply all
Reply to author
Forward
0 new messages