[SERVER-15803] clone a mongo RS and rename RS!! Created: 24/Oct/14  Updated: 29/Oct/14  Resolved: 29/Oct/14

Status: Closed
Project: Core Server
Component/s: Replication
Affects Version/s: 2.6.4
Fix Version/s: None

Type: Question Priority: Major - P3
Reporter: Nam Tang Assignee: Ramon Fernandez Marina
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Participants:

 Description   

Currently, i have 7 nodes cluster (5 data + 2 arbiters). I want to clone the RS then rename clone to new RS name. Each node in RS is 400GB.

can you provide the optimize option to clone the db and rename RS.

I shutdown one of the data node and copied data files to remote hosts. i remove all local.* file and got this message when I initiate new RS

> rs.initiate(repl);
{
        "ok" : 0,
        "errmsg" : "couldn't initiate : member slcdbx1274-3.slc.ebay.com:27017 has data already, cannot initiate set.  All members except initiator must be empty."
}



 Comments   
Comment by Ramon Fernandez Marina [ 29/Oct/14 ]

ntang@ebay.com, DOCS-2056 is opened to document how to rename a replica set.

Note that the SERVER project is for reporting bugs or feature suggestions for the MongoDB server and tools. For MongoDB-related support discussion please post on the mongodb-user group or Stack Overflow with the mongodb tag, where your question will reach a larger audience. A question like this involving more discussion would be best posted on the mongodb-user group.

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