@@ -81,7 +81,7 @@ To force reconfiguration:
81
81
.. note:: When you use ``force : true``, the version number in the
82
82
replica set configuration increases significantly, by tens or
83
83
hundreds of thousands. This is normal and designed to prevent set
84
- version collisions if there are forced reconfigs on both sides of
84
+ version collisions if you accidentally force reconfigs on both sides of
85
85
a network partition and then the network partitioning ends.
86
86
87
87
#. If the failure or partition was only temporary, shut down or
@@ -141,10 +141,10 @@ protect your deployment from operational interruption.
141
141
Reconfigure by "Breaking the Mirror"
142
142
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
143
143
144
- This option selects a surviving :term:`replica set` member to be the new
145
- :term:`primary` and to "seed" a new replica set. In this procedure, the
146
- member to be the new primary is referred to as ``A``. All other members
147
- will resync from this new primary .
144
+ This option selects a surviving :term:`replica set` member to be the
145
+ new :term:`primary` and to "seed" a new replica set. In the following
146
+ procedure, the new primary is ``A``. All other members will resync
147
+ from this member .
148
148
149
149
1. Stop the surviving :program:`mongod` instances. To ensure a clean shutdown, use
150
150
an existing :term:`control script` or an invocation that resembles the
@@ -165,24 +165,25 @@ will resync from this new primary.
165
165
166
166
mv /data/db /data/db-old
167
167
168
- #. Move ``A``'s ``local.*`` files so that ``A `` has an empty ``local``
169
- directory . For example
168
+ #. Move the data files for ``local `` database (i.e. ``local.*``) so
169
+ that ``A`` has no local database . For example
170
170
171
171
.. code-block:: sh
172
172
173
173
mkdir /data/local-old
174
174
mv /data/db/local* /data/local-old/
175
175
176
- #. Restart the replica set members the usual way .
176
+ #. Start each member of the replica set normally .
177
177
178
178
#. Connect to ``A`` in a :program:`mongo` shell and run :method:`rs.initiate()`
179
179
to initiate the replica set.
180
180
181
- #. Add the other set members using :method:`rs.add()`. For example, to add a member running
182
- on ``example.net`` at port ``27017``, you would issue this command:
181
+ #. Add the other set members using :method:`rs.add()`. For example, to
182
+ add a member running on ``example.net`` at port ``27017``, issue
183
+ the following command:
183
184
184
185
.. code-block:: javascript
185
186
186
187
rs.add("example.net:27017")
187
188
188
- The added members will initial sync their data from ``A``.
189
+ These members will resync and copy all data from ``A``.
0 commit comments