diff --git a/source/includes/fact-mongorestore-upload-data.rst b/source/includes/fact-mongorestore-upload-data.rst new file mode 100644 index 00000000000..8ed06cae9d2 --- /dev/null +++ b/source/includes/fact-mongorestore-upload-data.rst @@ -0,0 +1,11 @@ +.. important:: + + You must temporarily disable + :doc:`authentication ` to run + :binary:`~bin.mongorestore`. This means starting your + :binary:`~bin.mongod` instance without specifying the + :option:`--auth ` option. + +Use :binary:`~bin.mongorestore` to upload the exported data. Specify +additional options as appropriate. See :binary:`~bin.mongorestore` for +available options. diff --git a/source/includes/steps-change-config-server-wiredtiger.yaml b/source/includes/steps-change-config-server-wiredtiger.yaml index 295dd8dffa2..a65e6d537a7 100644 --- a/source/includes/steps-change-config-server-wiredtiger.yaml +++ b/source/includes/steps-change-config-server-wiredtiger.yaml @@ -3,8 +3,9 @@ ref: change-wt-config-svr-disable-balancer content: | Turn off the :ref:`balancer ` in the sharded cluster, as described in - :ref:`sharding-balancing-disable-temporarily`. + :ref:`sharding-balancing-disable-temporarily`. action: + copyable: true language: sh code: | sh.disableBalancer() @@ -19,6 +20,7 @@ pre: | The **third** config server is the last one listed in the :binary:`~bin.mongos` :setting:`~sharding.configDB` setting. action: + copyable: true language: sh code: | db.shutdownServer() @@ -31,7 +33,7 @@ pre: | WiredTiger. The **second** config server is the second server listed in the :binary:`~bin.mongos` setting :setting:`~sharding.configDB`. - Export the data of the **second** config server with :binary:`~bin.mongodump`. + Export the data of the **second** config server with :binary:`~bin.mongodump`. action: language: sh code: | @@ -57,6 +59,7 @@ pre: | Connect a :binary:`~bin.mongo` shell to the **second** config server and use :method:`db.shutdownServer()` to shut down the **second** config server. action: + copyable: true language: sh code: | db.shutdownServer() @@ -82,9 +85,7 @@ post: | title: "Upload the exported data using ``mongorestore`` to the **second** config server." ref: change-wt-config-svr-upload-data-2 pre: | - Use :binary:`~bin.mongorestore` to upload the exported data. Specify - additional options as appropriate. See :binary:`~bin.mongorestore` for - available options. + .. include:: /includes/fact-mongorestore-upload-data.rst action: language: sh code: | @@ -104,6 +105,7 @@ pre: | Connect a :binary:`~bin.mongo` shell to the **second** config server and use :method:`db.shutdownServer()` to shut down the **second** config server. action: + copyable: true language: sh code: | db.shutdownServer() @@ -148,6 +150,7 @@ pre: | Connect a :binary:`~bin.mongo` shell to the **third** config server and use :method:`db.shutdownServer()` to shut down the **third** config server. action: + copyable: true language: sh code: | db.shutdownServer() @@ -169,9 +172,7 @@ post: | title: "Upload the exported data using ``mongorestore`` to the **third** config server." ref: change-wt-config-svr-upload-data-3 pre: | - Use :binary:`~bin.mongorestore` to upload the exported data. Specify - additional options as appropriate. See :binary:`~bin.mongorestore` for - available options. + .. include:: /includes/fact-mongorestore-upload-data.rst action: language: sh code: | @@ -211,6 +212,7 @@ pre: | Connect a :binary:`~bin.mongo` shell to the **first** config server and use :method:`db.shutdownServer()` to shut down the **first** config server. action: + copyable: true language: sh code: | db.shutdownServer() @@ -232,9 +234,7 @@ post: | title: "Upload the exported data using ``mongorestore`` to the **first** config server." ref: change-wt-config-svr-upload-data-1 pre: | - Use :binary:`~bin.mongorestore` to upload the exported data. Specify - additional options as appropriate. See :binary:`~bin.mongorestore` for - available options. + .. include:: /includes/fact-mongorestore-upload-data.rst action: language: sh code: | @@ -267,6 +267,7 @@ pre: | Once all three config servers are up and running with WiredTiger, :ref:`re-enable the balancer `. action: + copyable: true language: sh code: | sh.startBalancer()