Re: MongoDB Replica Set Problemi Hk.

156 views
Skip to first unread message

Serdar B.

unread,
May 6, 2013, 10:52:52 AM5/6/13
to mong...@googlegroups.com
selamlar,

benzer durumda şu documandan yararlanıp reconfigure force ile geçebilmiştim.

rs.add yerine..

cfg yi tüm replikalarda yeniden aynı değerlerle set etmeli.

primary'yi set ederken de priority vermek de gerekecek...
şöyle bir json ile deneyebilir misiniz?

cfg = {
_id = "replx",
members = [
{_id:0,host:"mongo1.x.com",priority:2},
{_id:1,host:"mongo2.x.com",priority:1},
{_id:2,host:"mongo3.x.com",priority:0.5}] }



Serdar
--
serdarb.com


2013/5/6 Halid <ha...@halid.org>
Merhabalar,

Hali hazırda kurulu olan bir mongo db sunucusu yanına 2 adet replica set member'ı eklemek istiyorum.

Master mongo db'de rs.initiate() çalıştırdıktan sonra;

{
"info2" : "no configuration explicitly specified -- making one",
"info" : "Config now saved locally.  Should come online in about a minute.",
"ok" : 1
}

çıktısını alıyorum. Buraya kadar sıkıntı yok.

Ancak rs.add("10.201.1.215:27017") şeklinde komut çalıştırdığımda

{
"errmsg" : "exception: need most members up to reconfigure, not ok : 10.201.1.215:27017",
"code" : 13144,
"ok" : 0
}

Bu çıktıyı alınca rs.reconfig yapayım diyorum;

{
"errmsg" : "exception: can't find self in new replset config",
"code" : 13433,
"ok" : 0
}

Çıktısı ile karşılaşıyorum. Hiç bir şekilde bu etaptan öteye gidemedim. Bu konuda benzer problemleri yaşayan arkadaşlarımız olmuştur.

Ne yapmam gerekiyor?


--
Halid ALTUNER
Sr. Linux System Engineer & System Architect
w: www.halid.org
p: +90-5302356712
P Yazdırmadan önce çevreyi düşününüz / Think about the environment before printing

--
Bu e-postayı Google Grupları'ndaki "MongoDBTR" adlı gruba abone olduğunuz için aldınız.
Bu grubun aboneliğinden çıkmak ve bu gruptan artık e-posta almamak için mongodbtr+...@googlegroups.com adresine e-posta gönderin.
Daha fazla seçenek için, https://groups.google.com/groups/opt_out adresiniz ziyaret edin.
 
 

Reply all
Reply to author
Forward
Message has been deleted
0 new messages