Hello,
I have a replicaset (V2.02) setup running (1primary, 1 secondary & 1
arbiter) on three different servers.Now i am trying to added a 4th
member priority 0 and Hidden : true for taking backups on the second
server (So now i will be having two instances of mongo running on
second server and writing data on two diff filesystems)
I copied the dbpath from existing secondary on to another filesystem
and started a the replicaset with following command.
nohup ./mongod --rest --port 25017 --replSet myset --oplogSize=30000 --
dbpath /backups/mongodata/data/db --fork --logpath /backups/mongodata/
data/mongologs&
The port for secondary which was already running on this server was
running on 27017.
After running the above command i see following error message in the
log file.
Tue Apr 10 07:24:19 [rsStart] replSet info Couldn't load config yet.
Sleeping 20sec and will try again.
Tue Apr 10 07:24:39 [rsStart] trying to contact
10.156.240.143:26017
Tue Apr 10 07:24:47 [rsStart] DBClientCursor::init call() failed
Tue Apr 10 07:24:47 [rsStart] replSet error self not present in the
repl set configuration:
Tue Apr 10 07:24:47 [rsStart] { _id: "myset", version: 1, members:
[ { _id: 0, host: "
10.156.240.142:27017" }, { _id: 1, host:
"
10.156.240.143:27017" }, { _id: 2, host: "10.156.
240.148:27017", arbiterOnly: true } ] }
I tried adding this member to the replicatsets and after doing rs
status() gives me the following
},
{
"_id" : 3,
"name" : "'aux1etl02-acb:25017",
"health" : 0,
"state" : 8,
"stateStr" : "(not reachable/healthy)",
"uptime" : 0,
"optime" : {
"t" : 0,
"i" : 0
},
"optimeDate" :
ISODate("1970-01-01T00:00:00Z"),
"lastHeartbeat" :
ISODate("1970-01-01T00:00:00Z"),
"pingMs" : 0,
"errmsg" : "socket exception"
}
],
"ok" : 1
}
Is this normal? why am i getting socket exception and why is my log
saying "replSet error self not present in the repl set
configuration:" ??
What should i do??
Any advice greatly appreciated.
Thanks.