-
Type: Question
-
Resolution: Done
-
Priority: Major - P3
-
None
-
Affects Version/s: 2.0.2
-
Component/s: Admin
-
Environment:windows 2008 r2 64bit
would like to run two processes of mongo as service.
one as primary, one as arbiter
1)
"C:\Program Files\MongoDB\bin\mongod" --logpath "e:\data\logs" --logappend --dbpath "e:\data\db" --directoryperdb --replSet cadt --rest --keyFile "E:\data\cadt_repl_key_file.txt" --install
2)
"C:\Program Files\MongoDB\bin\mongod" --dbpath "e:\data\arb\db" --logpath "e:\data\arb\logs" --port 30000 --rest --replSet cadt --keyFile "E:\data\cadt_repl_key_file.txt" --serviceName MongoDBArbiter --serviceDisplayName "Mongo DB Arbiter" --serviceDescription "Arbiter for Mongo DB Server" --install
second service constantly restarts, whereas first one is working fine and also has secondary replication set on another machine working.
port 30000 is not in use elsewise.
but port 30000 appeared to be served by first service, too - in a strange pending state according to netstat: SYN_SEND
I can add arbiter to replset config but of course it's down.
I read something, that mongod checks on startup, if another process with the same name is already running.
a workaround to copy binaries into different folder didn't work either - same restarting effect.
I don't know whether this is a bug or just my stupidity - so it's "just" a question ...
YHIA
Stefan