Рейтинг@Mail.ru
User’s Guide / Replication / Reseeding a replica

Reseeding a replica

Reseeding a replica

If any of a replica’s .xlog/.snap/.run files are corrupted or deleted, you can “re-seed” the replica:

  1. Stop the replica and destroy all local database files (the ones with extensions .xlog/.snap/.run/.inprogress).

  2. Delete the replica’s record from the following locations:

    1. replication parameter at all running instances in the replica set.
    2. box.space._cluster on the master instance.

    See section Removing instances for details.

  3. Restart the replica with the same instance file to contact the master again. The replica will then catch up with the master by retrieving all the master’s tuples.

Note

Remember that this procedure works only if the master’s WAL files are present.