Docs HomeMongoDB Manual

Back Up Cluster Metadata备份群集元数据

This procedure shuts down the mongod instance of a config server in order to create a backup of a :sharded cluster's metadata. 此过程关闭config服务器mongod实例,以便创建:分片集群元数据的备份。The cluster's config servers store all of the cluster's metadata, most importantly the mapping from chunks to shards.集群的配置服务器存储集群的所有元数据,最重要的是从分片的映射。

When you perform this procedure, the cluster remains operational [1].执行此过程时,群集将保持可操作状态[1]

  1. Disable the cluster balancer process temporarily. 暂时禁用群集平衡器进程。See Disable the Balancer for more information.有关详细信息,请参阅禁用平衡器
  2. Shut down one of the config databases.关闭其中一个配置数据库。
  3. Create a full copy of the data files (i.e. the path specified by the dbPath option for the config instance.)创建数据文件的完整副本(即配置实例的dbPath选项指定的路径)
  4. Restart the original configuration server.重新启动原始配置服务器。
  5. Re-enable the balancer to allow the cluster to resume normal balancing operations. 重新启用平衡器以允许群集恢复正常的平衡操作。See the Disable the Balancer section for more information on managing the balancer process.有关管理平衡器进程的更多信息,请参阅禁用平衡器部分
Tip

See also: 另请参阅:

[1] While one of the three config servers is unavailable, the cluster cannot split any chunks nor can it migrate chunks between shards. 虽然三个配置服务器中的一个不可用,但集群无法分割任何块,也无法在分片之间迁移块。Your application will be able to write data to the cluster. 您的应用程序将能够将数据写入集群。See Config Servers for more information.有关详细信息,请参阅配置服务器