Skip to content

Commit 1b30b41

Browse files
author
Andrew Leung
committed
add note to specify usage in removing shards and link to remove shard tutorial.
1 parent 3561138 commit 1b30b41

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

source/reference/command/movePrimary.txt

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,10 @@ movePrimary
88

99
In a :term:`shard cluster`, this command reassigns the database's
1010
primary shard. The primary shard for a database holds all
11-
un-sharded collections in the database.
11+
un-sharded collections in the database. :dbcommand:`movePrimary`
12+
is an administrative command that is only available for
13+
:program:`mongos` instances and is intended to be used when
14+
removing a shard from a shard cluster.
1215

1316
:dbcommand:`movePrimary` changes the primary shard for this
1417
database in the cluster metadata, and migrates all un-sharded
@@ -36,6 +39,4 @@ movePrimary
3639
:dbcommand:`movePrimary` your shard cluster may have orphaned
3740
and unreachable data.
3841

39-
:dbcommand:`movePrimary` is an administrative command that is
40-
only available for :program:`mongos` instances.
41-
42+
.. seealso:: :doc:`/tutorial/remove-shards-from-cluster`

0 commit comments

Comments
 (0)