

# Understanding what happens after a failover

Replication continues on the standby instance after the standby instance starts and the agent connects to AWS Elastic Disaster Recovery. The time this takes depends on the volume failover and on the startup time of the standby instance. AWS Elastic Disaster Recovery does not set a time for either.

After a failover, AWS Elastic Disaster Recovery might rescan the volumes before it returns to continuous replication. A rescan is more likely when the source instance stops abruptly:
+ **Planned failover** – The source instance stops with a normal shutdown before the volumes fail over. For example, you stop it with a normal stop, not a forced stop. Replication can resume without a rescan, but AWS Elastic Disaster Recovery might still rescan the volumes.
+ **Unplanned failover** – The source instance stops abruptly, without a normal shutdown, for example when the instance fails. AWS Elastic Disaster Recovery rescans the volumes and then returns to continuous replication. It does not start a new initial sync.

The time a rescan takes depends on the size and performance of the volumes. AWS Elastic Disaster Recovery does not guarantee a time for a rescan. For more information, see [What should I know about rescans?](Replication-Related-FAQ.md#How-Long-Rescan)

The standby instance can be stopped or already running when the volumes fail over. If it is stopped, start it after the volumes fail over. If it is already running, you do not need to start it. Replication continues after the root volume fails over to it.

After the failover, you can also fail the volumes back to the source instance. Replication continues the same way.