@@ -179,8 +179,23 @@ source:
179
179
file : steps-restore-sharded-config-primary-from-backup.yaml
180
180
ref : drop-local
181
181
---
182
- title : " For any CSRS hostname or replica set name changes, update shard metadata in each shard's identity document ."
182
+ title : " Remove the ``minOpTimeRecovery`` document from the ``admin.system.versions`` collection ."
183
183
stepnum : 3
184
+ ref : delete-minOpTimeRecovery
185
+ content : |
186
+
187
+ Issue the following :method:`~db.collection.deleteOne()` method on the
188
+ :data:`system.version <admin.system.version>` collection in the
189
+ ``admin`` database:
190
+
191
+ .. code-block:: javascript
192
+
193
+ use admin
194
+ db.system.version.deleteOne( { _id: "minOpTimeRecovery" } )
195
+
196
+ ---
197
+ title : " For any CSRS hostname or replica set name changes, update shard metadata in each shard's identity document."
198
+ stepnum : 4
184
199
ref : metadata-update
185
200
optional : true
186
201
content : |
@@ -190,13 +205,15 @@ content: |
190
205
* The hostnames for any CSRS host did not change during this procedure.
191
206
* The CSRS replica set name did not change during this procedure.
192
207
193
- Each shard has :data:`admin.system.versions` collection that
194
- contains metadata related to the shard, including the CSRS
195
- connection string. If either the CSRS name or any member hostnames
196
- changed while restoring the CSRS, you must update this metadata.
208
+ The :data:`system.version <admin.system.version>`
209
+ collection on the ``admin`` database contains metadata related
210
+ to the shard, including the CSRS connection string. If either the
211
+ CSRS name or any member hostnames changed while restoring the CSRS,
212
+ you must update this metadata.
197
213
198
214
Issue the following :method:`~db.collection.find()` method on the
199
- :data:`~admin.system.versions` collection in the ``admin`` database:
215
+ :data:`system.version <admin.system.version>` collection in the
216
+ ``admin`` database:
200
217
201
218
.. code-block:: javascript
202
219
@@ -238,7 +255,7 @@ content: |
238
255
CSRS metadata.
239
256
240
257
---
241
- stepnum : 4
258
+ stepnum : 5
242
259
ref : restart-as-repl
243
260
source :
244
261
file : steps-restore-sharded-config-primary-from-backup.yaml
@@ -254,13 +271,13 @@ replacement:
254
271
clusterRole: shardsvr
255
272
256
273
---
257
- stepnum : 5
274
+ stepnum : 6
258
275
ref : initiate
259
276
source :
260
277
file : steps-restore-sharded-config-primary-from-backup.yaml
261
278
ref : initiate
262
279
---
263
- stepnum : 6
280
+ stepnum : 7
264
281
ref : add-members
265
282
source :
266
283
file : steps-restore-sharded-config-primary-from-backup.yaml
@@ -287,7 +304,7 @@ replacement:
287
304
)
288
305
component : " shard replica set"
289
306
---
290
- stepnum : 7
307
+ stepnum : 8
291
308
ref : configure-replication
292
309
source :
293
310
file : steps-restore-sharded-config-primary-from-backup.yaml
0 commit comments