推荐工具
RoboMongo
推荐书目
50 Tips and Tricks for MongoDB Developers
Related Blogs
Snail in a Turtleneck
tdifg
V2EX  ›  MongoDB

MongoDB 新增备份集无法写入?

  •  
  •   tdifg · Apr 17, 2015 · 4437 views
    This topic created in 4066 days ago, the information mentioned may be changed or developed.

    搭好了主机上的备份集,路由器,config server等等,然后按照同样的做法在主机上增加了一个备份集,在分片上做好rs.initiate(config_replset1); 这样的初始化并且在路由上也做了addshard操作,发现不能在写入数据了,得到的返回是:
    writeError {
    code : 83,
    errmsg : write results unavailable from xxx : caused by :: location28563 cannot send batch write operation to server xxx
    请问是新建的备份集上有什么忘了做的操作吗?

    分片的命令类似这样:
    mongod --dbpath D:\Mongo3\DATA\shard1 --replSet replset1 --port 18010 --directoryperdb --bind_ip 192.168.153.1

    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5713 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 36ms · UTC 03:09 · PVG 11:09 · LAX 20:09 · JFK 23:09
    ♥ Do have faith in what you're doing.