請問以下初始化錯誤怎么解?
> rs.initiate(config)
{
??????? "ok" : 0,
??????? "errmsg" : "This node, 192.168.1.22:27017, with _id 2 is not electable under the new configuration version 1 for replica set Yunnex-MONGODB-TEST",
??????? "code" : 93
}
> rs.initiate(config)
{
??????? "ok" : 0,
??????? "errmsg" : "This node, 192.168.1.22:27017, with _id 2 is not electable under the new configuration version 1 for replica set Yunnex-MONGODB-TEST",
??????? "code" : 93
}
2016-01-22
舉報
2016-05-03
樓上高手
2016-04-28
我已解決,不在仲裁節點上激活就行,在其他任意一個主備節點激活
2016-04-28
我這個也報錯了,作為仲裁節點的時候
dbpath=/datafs/mongodb/data/arbiter
logpath=/datafs/mongodb/logs/arbiter.log ?
pidfilepath=/datafs/mongodb/arbiter.pid ?
directoryperdb=true ?
logappend=true ?
replSet=testrs ?
bind_ip=xx.xx.xx.xx ?
port=27017 ?
oplogSize=10000 ?
fork=true ?
noprealloc=true ?
2016-02-04
把你的配置發出來。應該是你_id2 有參數設置有問題,使它不能被做為候選節點。