|
When I do the following:
cd mongodb-linux-x86_64-2.7.6/bin
|
./mongod --port 27017 --storageEngine heap1 --replSet testing --fork --logpath=/tmp/heap1-1.log
|
./mongod --port 27018 --storageEngine heap1 --replSet testing --fork --logpath=/tmp/heap1-2.log
|
mongo --port 27017
|
rs.initiate( { _id: 'testing', members: [ { _id: 0, host: 'whisky:27017' }, { _id: 1, host: 'whisky:27018' } ] } );
|
I get the following error:
{
|
"ok" : 0,
|
"errmsg" : "member whisky:27018 has data already, cannot initiate set. All members except initiator must be empty.",
|
"code" : 13311
|
}
|
for some reason, it thinks that I already have data. There is indeed an empty ```admin``` database.
|