- Stop all the servers
- Start up each server without the -
replSetoption, pointing at the correct data directory. If the replica set is a shard or config server, you must start the server without shardsvrand configsvrrespectively. If we backport this to 3.2, we user must instead include setParameter=recoverShardingState=falseand exclude -configSvrmode
- Update the local.system.replset doc on each server with the new replica set name. You have to change every server here.
- Shut them down again.
- Change the /etc/mongod.conf replSet option to the new name on all the servers.
- Start them all up with the original options.