Skip to content

Commit 2ec4824

Browse files
author
Bob Grabar
committed
DOCS-449-related: reconfig rs changes
1 parent 7871ea3 commit 2ec4824

File tree

1 file changed

+35
-29
lines changed

1 file changed

+35
-29
lines changed

source/tutorial/reconfigure-replica-set-with-unavailable-members.txt

Lines changed: 35 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,29 @@
1-
==================================================
2-
Reconfigure a Replica Set with Unavailable Members
3-
==================================================
1+
===============================================
2+
Reconfigure a Replica Set when Members are Down
3+
===============================================
44

55
.. default-domain:: mongodb
66

7-
To reconfigure a :term:`replica set` when a **majority** of members
8-
are accessible, use the :method:`rs.reconfig()` operation on
7+
To reconfigure a :term:`replica set` when a only a **minority** of
8+
members have become inaccessible, use the :method:`rs.reconfig()`
9+
operation on
910
the current :term:`primary`, following the example in the
1011
:ref:`Replica Set Reconfiguration Procedure
1112
<replica-set-reconfiguration-usage>`.
1213

13-
To reconfigure a replica set when a **minority** of members are
14-
accessible, the reconfiguration process is less straightforward. Use
15-
the procedure in this document, to reconfigure a replica set in this
16-
situation. For example, you will need to use this process to
17-
reconfigure a set split between multiple facilities where *no* local
18-
group of nodes can reach a majority. See
14+
To reconfigure a replica set when a **majority** of members have become
15+
inaccessible, use one of the procedures in this document. This situation
16+
might occur, for example, in a replica set is distributed across
17+
multiple facilities and *no* local group of members can reach a
18+
majority. See
1919
:ref:`replica-set-elections-and-network-partitions` for more
20-
information about these case. In these situations, *always* use the
21-
procedures described in this document.
20+
information on this situation.
21+
22+
This document provides the following options for reconfiguring a replica
23+
set when a **majority** of members are accessible:
24+
25+
- :ref:`replica-set-force-reconfiguration`
26+
- :ref:`replica-set-reconfigure-by-replacing`
2227

2328
.. index:: replica set; reconfiguration
2429
.. _replica-set-force-reconfiguration:
@@ -30,13 +35,12 @@ Reconfigure by Forcing the Reconfiguration
3035

3136
This procedure lets you recover while a majority of :term:`replica set`
3237
members are down or unreachable. You connect to any surviving member and
33-
use the ``force`` option to the :method:`rs.reconfig()` method to force a
34-
reconfiguration of the replica set.
38+
use the ``force`` option to the :method:`rs.reconfig()` method.
3539

36-
The ``force`` option reconfigures the set. Only use this procure to
40+
The ``force`` option forces reconfiguration of the set. Use this procedure only to
3741
recover from catastrophic interruptions. Do not use ``force`` every
3842
time you reconfigure. Also, do not use ``force`` in any automatic
39-
scripts and do not use ``force`` when there is still a primary.
43+
scripts and do not use ``force`` when there is still a :term:`primary`.
4044

4145
To force reconfiguration:
4246

@@ -81,10 +85,12 @@ To force reconfiguration:
8185
#. If the failure or partition was only temporary, shut down or
8286
decommission the removed members as soon as possible.
8387

88+
.. _replica-set-reconfigure-by-replacing:
89+
8490
Reconfigure by Replacing the Replica Set
8591
----------------------------------------
8692

87-
Only use the following procedure for versions of MongoDB before
93+
Use the following procedure **only** for versions of MongoDB prior to
8894
version 2.0. If you're running MongoDB 2.0 or later, use the above
8995
procedure, :ref:`replica-set-force-reconfiguration`.
9096

@@ -103,9 +109,9 @@ Reconfigure by Turning Off Replication
103109

104110
This option replaces the :term:`replica set` with a :term:`standalone` server.
105111

106-
1. Stop the surviving :program:`mongod` instances. Use existing
107-
an :term:`control script`, or an invocation that resembles the
108-
following to ensure a clean shutdown:
112+
1. Stop the surviving :program:`mongod` instances. To ensure a clean shutdown, use
113+
an existing :term:`control script` or an invocation that resembles the
114+
following:
109115

110116
.. code-block:: javascript
111117

@@ -121,7 +127,7 @@ This option replaces the :term:`replica set` with a :term:`standalone` server.
121127

122128
mv /data/db /data/db-old
123129

124-
.. optional:: If you have a backup of the database you may remove
130+
.. optional:: If you have a backup of the database you may instead remove
125131
this data.
126132

127133
#. Restart one of the :program:`mongod` instances *without* the
@@ -137,9 +143,9 @@ This option selects a surviving :term:`replica set` member to be the new
137143
:term:`primary` and to "seed" a new replica set. All other
138144
members must resync from this new primary.
139145

140-
1. Stop the surviving :program:`mongod` instances. Use existing
141-
an :term:`control script`, or an invocation that resembles the
142-
following to ensure a clean shutdown:
146+
1. Stop the surviving :program:`mongod` instances. To ensure a clean shutdown, use
147+
an existing :term:`control script` or an invocation that resembles the
148+
following:
143149

144150
.. code-block:: javascript
145151

@@ -155,16 +161,16 @@ members must resync from this new primary.
155161

156162
mv /data/db /data/db-old
157163

158-
.. optional:: If you have a backup of the database you may remove
164+
.. optional:: If you have a backup of the database you may instead remove
159165
this data.
160166

161167
#. Restart all :program:`mongod` instances with a new replica set
162-
name. If the old set name was ``rs0``, the invoke :program:`mongod`
163-
instances with the following command line arguments:
168+
name. For example, if the old set name was ``rs0``, you might invoke the :program:`mongod`
169+
instances with the following command line argument:
164170

165171
.. code-block:: sh
166172

167-
mongo --replSet rs1
173+
--replSet rs1
168174

169175
See :setting:`replSet` and :option:`--replSet <mongod --replSet>`
170176
for more information.

0 commit comments

Comments
 (0)