From b7d422ff1f562f1327660f7f74ad4db88fffdded Mon Sep 17 00:00:00 2001 From: joannac- Date: Tue, 28 Jan 2014 14:22:34 -0500 Subject: [PATCH] Reordered steps, added detail to step 2 --- source/tutorial/restore-sharded-cluster.txt | 27 ++++++++++++--------- 1 file changed, 16 insertions(+), 11 deletions(-) diff --git a/source/tutorial/restore-sharded-cluster.txt b/source/tutorial/restore-sharded-cluster.txt index 1954cecf848..bbf338e8fa3 100644 --- a/source/tutorial/restore-sharded-cluster.txt +++ b/source/tutorial/restore-sharded-cluster.txt @@ -28,21 +28,26 @@ Procedure #. Stop all :program:`mongos` and :program:`mongod` processes, including all shards *and* all config servers. -#. If shard hostnames have changed, you must manually update the - ``shards`` collection in the :ref:`config-database` to use the new - hostnames. Do the following: +Procedure +--------- + +#. Stop all :program:`mongos` and :program:`mongod` processes, + including all shards *and* all config servers. + +# If shard hostnames have *not* changed, skip to step 3. Otherwise: - a. Start the three :ref:`config servers ` by + #. Restore the config database on each config server + + b. Start the three :ref:`config servers ` by issuing commands similar to the following, using values appropriate to your configuration: - + .. code-block:: sh mongod --configsvr --dbpath /data/configdb --port 27019 - #. Restore the :ref:`config-database` on each config server. - - #. Start one :program:`mongos` instance. + #. Start one :program:`mongos` instance, making sure you have updated the + config string with the new configdb hostnames and ports #. Update the :ref:`config-database` collection named ``shards`` to reflect the new hostnames. @@ -59,12 +64,12 @@ Procedure - Data files for each :ref:`config server `, if you have not already done so in the previous step. -#. Restart all the :program:`mongos` instances. +#. Restart all the config servers :program:`mongod` instances. + +#. Restart all the :program:`mongos` instances, making sure to use the updated config string. #. Restart all the shard :program:`mongod` instances. -#. Restart all the config servers :program:`mongod` instances. - #. Connect to a :program:`mongos` instance from a :program:`mongo` shell and use the :method:`db.printShardingStatus()` method to ensure that the cluster is operational, as follows: