Skip to content

Commit 155d54d

Browse files
authored
DOCS 15209 Rename a Replica Set Clarification (#1604) (#1655)
* DOCS-15209 clarifying rename a replica set page * DOCS-15209 clarifying rename a replica set page * DOCS-15209 clarifying rename a replica set page * DOCS-15209 clarifying rename a replica set page * DOCS-15209 clarifying rename a replica set page * DOCS-15209 copy review edits * DOCS-15209 small wording fix
1 parent 63df9c3 commit 155d54d

File tree

1 file changed

+16
-7
lines changed

1 file changed

+16
-7
lines changed

source/includes/steps-rename-unsharded-replica-set.yaml

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,10 @@ ref: rename-the-replica-set
1818
content: |
1919
Perform the following steps for each replica set member:
2020
21-
a. Update the replica set name.
21+
a. Start the replica set member on a different port without the
22+
:option:`--replSet <mongod --replSet>` option.
23+
24+
#. Update the replica set name.
2225
2326
- If using a :ref:`configuration file <conf-file>`, set
2427
:setting:`replication.replSetName <replication.replSetName>`
@@ -28,11 +31,8 @@ content: |
2831
the :option:`--replSet <mongod --replSet>` option, note down the
2932
new replica set name for use in step f.
3033
31-
#. Start the replica set member on a different port without the
32-
:option:`--replSet <mongod --replSet>` option.
33-
3434
#. Connect to the replica set member.
35-
35+
3636
#. Update the replica set name in the :ref:`local database
3737
<replica-set-local-database>` with the following commands:
3838
@@ -44,11 +44,20 @@ content: |
4444
var doc = db.getSiblingDB("local").system.replset.findOne()
4545
var oldId = doc._id
4646
doc._id = newId
47-
db.getSiblingDB("local").system.replset.save(doc)
48-
db.getSiblingDB("local").system.replset.remove({_id: oldId})
47+
db.getSiblingDB("local").system.replset.insertOne(doc)
48+
db.getSiblingDB("local").system.replset.deleteOne({_id: oldId})
4949
5050
#. :ref:`Shut down <terminate-mongod-processes>` the replica set
5151
member.
52+
53+
.. note:: Ops Manager
54+
55+
If you are using Ops Manager, you must stop Ops Manager
56+
from managing the replica set before you shut down the
57+
replica set member. For more information on this procedure,
58+
see :opsmgr:`Remove a Process from Ops Management
59+
</tutorial/unmanage-deployment/#remove-a-process-from-management>`
60+
5261
5362
#. Start the replica set member on its original port.
5463

0 commit comments

Comments
 (0)