Skip to content

Adding note to disable authentication before mongorestore in wt confi… #3211

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions source/includes/fact-mongorestore-upload-data.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
.. important::

You must temporarily disable
:doc:`authentication </core/authentication/>` to run
:binary:`~bin.mongorestore`. This means starting your
:binary:`~bin.mongod` instance without specifying the
:option:`--auth <mongod --auth>` option.

Use :binary:`~bin.mongorestore` to upload the exported data. Specify
additional options as appropriate. See :binary:`~bin.mongorestore` for
available options.
23 changes: 12 additions & 11 deletions source/includes/steps-change-config-server-wiredtiger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@ ref: change-wt-config-svr-disable-balancer
content: |
Turn off the :ref:`balancer <sharding-balancing-internals>` 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()
Expand All @@ -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()
Expand All @@ -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: |
Expand All @@ -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()
Expand All @@ -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: |
Expand All @@ -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()
Expand Down Expand Up @@ -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()
Expand All @@ -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: |
Expand Down Expand Up @@ -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()
Expand All @@ -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: |
Expand Down Expand Up @@ -267,6 +267,7 @@ pre: |
Once all three config servers are up and running with WiredTiger,
:ref:`re-enable the balancer <sharding-balancing-enable>`.
action:
copyable: true
language: sh
code: |
sh.startBalancer()
Expand Down