何小伟-向Mogodb集群添加新的成员节点.doc

  1. 1、本文档共12页,可阅读全部内容。
  2. 2、有哪些信誉好的足球投注网站(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
  3. 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  4. 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
何小伟-向Mogodb集群添加新的成员节点

向Mongodb集群添加的成员拷贝其他节点的数据文件到新的节点向已有的replica set 添加新成员 拷贝其他节点的数据文件到新的节点在启动mongod服务之前要拷贝数据文件到本机。下面是空库添加到一个replica set中的日志记录: #### 连接rimary库 Tue Nov 1 14:22:57 [initandlisten] connection accepted from 10.250.7.220:54235 #2 Tue Nov 1 14:22:57 [initandlisten] connection accepted from 10.250.7.220:54236 #3 Tue Nov 1 14:22:57 [initandlisten] connection accepted from 10.250.7.220:54237 #4 Tue Nov 1 14:22:57 [rsStart] trying to contact 10.250.7.220:27018 Tue Nov 1 14:22:57 [rsStart] trying to contact 10.250.7.220:27019 Tue Nov 1 14:22:57 [rsStart] trying to contact 10.250.7.220:27020 第二步:####从primary库复制replica set的配置信息,并保存到本地 -dbpath 指定的文件目录#### Tue Nov 1 14:22:57 [rsStart] replSet got config version 2 from a remote, saving locally Tue Nov 1 14:22:57 [rsStart] replSet info saving a newer config version to local.system.replset Tue Nov 1 14:22:57 [FileAllocator] allocating new datafile /opt/mongodata/r1/local.ns, filling with zeroes... Tue Nov 1 14:22:57 [FileAllocator] creating directory /opt/mongodata/r1/_tmp Tue Nov 1 14:22:57 [FileAllocator] done allocating datafile /opt/mongodata/r1/local.ns, size: 16MB, took 0.118 secs Tue Nov 1 14:22:57 [FileAllocator] allocating new datafile /opt/mongodata/r1/local.0, filling with zeroes... Tue Nov 1 14:23:01 [FileAllocator] done allocating datafile /opt/mongodata/r1/local.0, size: 64MB, took 3.807 secs Tue Nov 1 14:23:01 [FileAllocator] allocating new datafile /opt/mongodata/r1/local.1, filling with zeroes... Tue Nov 1 14:23:02 [rsStart] replSet saveConfigLocally done Tue Nov 1 14:23:02 [FileAllocator] done allocating datafile /opt/mongodata/r1/local.1, size: 128MB, took 1.068 secs Tue Nov 1 14:23:02 [rsStart] replSet STARTUP2 Tue Nov 1 14:23:02 [rsMgr] replSet total number of votes is even - add arbiter or give one member an extra vote Tue Nov 1 14:23:02 [rsSync] ****** 第三步:####创建oplog 日志文件#### Tue Nov 1 14:23:02 [rsSync] creating replication oplog of size: 944MB... Tue Nov 1 14:23:02 [FileAllocator] allocati

文档评论(0)

hhax1 + 关注
内容提供者

该用户很懒,什么也没介绍

1亿VIP精品文档

相关文档