[DOCS-14336] Rename ReplicaSet Created: 06/Apr/21  Updated: 30/Oct/23

Status: Closed
Project: Documentation
Component/s: manual, Server
Affects Version/s: None
Fix Version/s: Server_Docs_20231030

Type: Task Priority: Major - P3
Reporter: Александр Малков Assignee: Unassigned
Resolution: Won't Do Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Participants:
Days since reply: 1 year, 14 weeks, 2 days ago
Epic Link: DOCSP-11701

 Description   

Description

Hi!

I have a replica set of three nodes, and I want rename it.

The documentation https://docs.mongodb.com/manual/tutorial/rename-unsharded-replica-set/ says that in order to rename a replica set I have to:

  1. make a backup,
  2. stop all nodes of the replica set,
  3. change the name of the replica set to mongod.conf (I'm using a configuration file),
  4. enable them without a replica set,
  5. change the name of the replica set in the locale database,
  6. enable all nodes again as a replica set.

The backup is needed as insurance against incorrect actions when renaming a replica set.
Then I can do this:

  1. Change the replica set name in the configuration file,
  2. Change the replica set name in the locale base on each node sequentially,
  3. Turn off successively the secondary nodes,
  4. Restart the primary node,
  5. Turn on the secondaries of the node in sequence.

During times 1 and 2, the set is available for writing and reading. At time 3, it is read-only. i tested this on 4.2+ versions with C# driver.

This way, I minimize the time the replica set is unavailable until the restart time of the two nodes.

Why is my varinat dangerous? What problems can arise if you do this?

Scope of changes

Impact to Other Docs

MVP (Work and Date)

Resources (Scope or Design Docs, Invision, etc.)



 Comments   
Comment by Education Bot [ 31/Oct/22 ]

Hello! This ticket has been closed due to inactivity. If you believe this ticket is still important, please reopen it and leave a comment to explain why. Thank you!

Comment by Jeffrey Allen [ 17/May/21 ]

Hello malkov@skbkontur.ru, thank you for filing this ticket. I will run this by our engineering team and try to get you an answer soon.

Comment by Александр Малков [ 17/May/21 ]

Hey! The question is still relevant. 

Generated at Thu Feb 08 08:10:08 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.