@@ -56,11 +56,7 @@ content: |
56
56
A. Downgrade the shard's :ref:`secondary <replica-set-secondary-members>`
57
57
members one at a time:
58
58
59
- a. Shut down the :binary:`~bin.mongod` instance.
60
-
61
- .. code-block:: javascript
62
-
63
- db.adminCommand( { shutdown: 1 } )
59
+ 1. .. include:: /includes/4.4-downgrade-clean-shutdown.rst
64
60
65
61
#. Replace the |newversion|
66
62
binary with the |oldversion| binary and restart.
@@ -76,13 +72,7 @@ content: |
76
72
77
73
Skip this step if the replica set does not include an arbiter.
78
74
79
- a. Shut down the :binary:`~bin.mongod`. See
80
- :ref:`terminate-mongod-processes` for additional ways to safely
81
- terminate :binary:`~bin.mongod` processes.
82
-
83
- .. code-block:: javascript
84
-
85
- db.adminCommand( { shutdown: 1 } )
75
+ 1. .. include:: /includes/4.4-downgrade-clean-shutdown.rst
86
76
87
77
#. Delete the contents of the arbiter data directory. The
88
78
:setting:`storage.dbPath` configuration setting or
@@ -101,7 +91,7 @@ content: |
101
91
102
92
#. Downgrade the shard's primary.
103
93
104
- a . Step down the replica set primary. Connect a
94
+ 1 . Step down the replica set primary. Connect a
105
95
:binary:`~bin.mongo` shell to the primary and use
106
96
:method:`rs.stepDown()` to step down the primary and force an
107
97
election of a new primary:
@@ -119,7 +109,10 @@ content: |
119
109
When the status shows that the primary has stepped down and
120
110
another member has assumed ``PRIMARY`` state, proceed.
121
111
122
- #. Shut down the stepped-down primary.
112
+ #. Run the following command from the :binary:`~bin.mongo` shell to
113
+ perform a clean shutdown of the stepped-down primary, or refer to
114
+ :ref:`terminate-mongod-processes` for additional ways to safely
115
+ terminate the :binary:`~bin.mongod` process:
123
116
124
117
.. code-block:: javascript
125
118
@@ -138,11 +131,7 @@ content: |-
138
131
A. Downgrade the :ref:`secondary <replica-set-secondary-members>`
139
132
members of the config servers replica set (CSRS) one at a time:
140
133
141
- a. Shut down the :binary:`~bin.mongod` instance.
142
-
143
- .. code-block:: javascript
144
-
145
- db.adminCommand( { shutdown: 1 } )
134
+ 1. .. include:: /includes/4.4-downgrade-clean-shutdown.rst
146
135
147
136
#. Replace the |newversion|
148
137
binary with the |oldversion| binary and restart.
@@ -157,7 +146,7 @@ content: |-
157
146
158
147
#. Step down the config server primary.
159
148
160
- a . Connect a :binary:`~bin.mongo` shell to the primary and use
149
+ 1 . Connect a :binary:`~bin.mongo` shell to the primary and use
161
150
:method:`rs.stepDown()` to step down the primary and force an
162
151
election of a new primary:
163
152
@@ -174,7 +163,10 @@ content: |-
174
163
When the status shows that the primary has stepped down and
175
164
another member has assumed ``PRIMARY`` state, proceed.
176
165
177
- #. Shut down the stepped-down primary.
166
+ #. Run the following command from the :binary:`~bin.mongo` shell to
167
+ perform a clean shutdown of the stepped-down primary, or refer to
168
+ :ref:`terminate-mongod-processes` for additional ways to safely
169
+ terminate the :binary:`~bin.mongod` process:
178
170
179
171
.. code-block:: javascript
180
172
@@ -201,4 +193,4 @@ content: |
201
193
The :binary:`~bin.mongo` shell method :method:`sh.startBalancer()`
202
194
also enables auto-splitting for the sharded cluster.
203
195
204
- ...
196
+ ...
0 commit comments