Skip to content

Commit ba42a76

Browse files
Anthony Sansonekay-kim
authored andcommitted
(DOCS-11217): Updated downgrade shutdown requirement.
1 parent 62c3eb3 commit ba42a76

File tree

4 files changed

+43
-13
lines changed

4 files changed

+43
-13
lines changed
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
.. note::
2+
3+
If you do not perform a clean shut down, errors result that
4+
prevent the :binary:`~bin.mongod` process from starting.
5+
6+
Invoking ``sudo service mongod stop`` does not guarantee a
7+
clean shutdown. This ``service`` script forceably stops the
8+
:binary:`~bin.mongod` process if it takes longer than five
9+
minutes to shut down.

source/includes/steps-3.6-downgrade-mongod.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,13 @@ ref: 3.6-downgrade-restart-instance
1616
content: |
1717
Shut down your :binary:`~bin.mongod` instance. Replace the existing
1818
binary with the downloaded :binary:`~bin.mongod` binary and restart.
19+
20+
a. :ref:`Perform a clean shut down <terminate-mongod-processes>`
21+
of the :binary:`~bin.mongod` process.
22+
23+
.. include:: /includes/note-clean-shutdown.rst
24+
25+
#. Replace the |newversion| binary with the |oldversion| binary.
26+
27+
#. Start the |oldversion| :binary:`~bin.mongod` process.
1928
...

source/includes/steps-3.6-downgrade-replica-set.yaml

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,19 @@ content: |
1717
Downgrade each :term:`secondary` member of the replica set, one at a
1818
time:
1919
20-
a. Shut down the :binary:`~bin.mongod`. See :ref:`terminate-mongod-processes` for instructions on safely terminating :binary:`~bin.mongod` processes.
20+
a. :ref:`Perform a clean shut down <terminate-mongod-processes>`
21+
of the :binary:`~bin.mongod` process.
2122
22-
#. Replace the |newversion| binary with the |oldversion| binary and restart.
23+
.. include:: /includes/note-clean-shutdown.rst
24+
25+
#. Replace the |newversion| binary with the |oldversion| binary.
26+
27+
#. Start the |oldversion| :binary:`~bin.mongod` process.
2328
2429
#. Wait for the member to recover to ``SECONDARY`` state
25-
before downgrading the next secondary. To check the member's state,
26-
use the :method:`rs.status()` method in the :binary:`~bin.mongo` shell.
30+
before downgrading the next secondary. To check the member's
31+
state, use the :method:`rs.status()` method in the
32+
:binary:`~bin.mongo` shell.
2733
2834
---
2935
title: Step down the primary.
@@ -46,7 +52,8 @@ level: 4
4652
ref: downgrade-primary
4753
content: |
4854
When :method:`rs.status()` shows that the primary has stepped down
49-
and another member has assumed ``PRIMARY`` state, shut down the
55+
and another member has assumed ``PRIMARY`` state,
56+
:ref:`perform a clean shut down <terminate-mongod-processes>` of the
5057
previous primary and replace the :binary:`~bin.mongod` binary with
51-
the |oldversion| binary and start the new instance.
58+
the |oldversion| binary and start the new process.
5259
...

source/includes/steps-3.6-downgrade-sharded-cluster.yaml

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,15 @@ content: |
2929
3030
Downgrade the shards one at a time. If the shards are replica sets, for each shard:
3131
32-
1. Downgrade the :ref:`secondary <replica-set-secondary-members>`
32+
a. Downgrade the :ref:`secondary <replica-set-secondary-members>`
3333
members of the replica set one at a time:
3434
35-
a. Shut down the :binary:`~bin.mongod` instance and replace the |newversion|
36-
binary with the |oldversion| binary.
35+
i. :ref:`Perform a clean shut down <terminate-mongod-processes>`
36+
of the :binary:`~bin.mongod` process.
37+
38+
.. include:: /includes/note-clean-shutdown.rst
39+
40+
#. Replace the |newversion| binary with the |oldversion| binary.
3741
3842
#. Start the |oldversion| binary with the ``--shardsvr`` and
3943
``--port`` command line options. Include any other
@@ -42,7 +46,8 @@ content: |
4246
4347
.. code-block:: sh
4448
45-
mongod --shardsvr --port <port> --dbpath <path> --bind_ip localhost,<ip address>
49+
mongod --shardsvr --port <port> --dbpath <path> \
50+
--bind_ip localhost,<ip address>
4651
4752
Or if using a :doc:`configuration file
4853
</reference/configuration-options>`, update the file to
@@ -118,10 +123,10 @@ ref: 3.6-downgrade-config-servers
118123
content: |-
119124
If the config servers are replica sets:
120125
121-
1. Downgrade the :ref:`secondary <replica-set-secondary-members>`
126+
a. Downgrade the :ref:`secondary <replica-set-secondary-members>`
122127
members of the replica set one at a time:
123128
124-
a. Shut down the secondary :binary:`~bin.mongod` instance and replace
129+
i. Shut down the secondary :binary:`~bin.mongod` instance and replace
125130
the |newversion| binary with the |oldversion| binary.
126131
127132
#. Start the |oldversion| binary with both the ``--configsvr`` and
@@ -160,7 +165,7 @@ content: |-
160165
161166
#. Step down the replica set primary.
162167
163-
a. Connect a :binary:`~bin.mongo` shell to the primary and use
168+
i. Connect a :binary:`~bin.mongo` shell to the primary and use
164169
:method:`rs.stepDown()` to step down the primary and force an
165170
election of a new primary:
166171

0 commit comments

Comments
 (0)