請(qǐng)問(wèn)以下初始化錯(cuò)誤怎么解?
> 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
舉報(bào)
2016-05-03
樓上高手
2016-04-28
我已解決,不在仲裁節(jié)點(diǎn)上激活就行,在其他任意一個(gè)主備節(jié)點(diǎn)激活
2016-04-28
我這個(gè)也報(bào)錯(cuò)了,作為仲裁節(jié)點(diǎn)的時(shí)候
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
把你的配置發(fā)出來(lái)。應(yīng)該是你_id2 有參數(shù)設(shè)置有問(wèn)題,使它不能被做為候選節(jié)點(diǎn)。