View a markdown version of this page

Failing over and checking the source server - AWS Elastic Disaster Recovery

Failing over and checking the source server

Use the following procedure to fail over the volumes and confirm that replication continues on the standby instance.

To fail over and confirm that replication continues
  1. Verify that the source server has Multi-AZ support. For instructions, see Checking Multi-AZ support.

  2. Verify that the standby instance has an instance profile with the AWSElasticDisasterRecoveryEc2InstancePolicy managed policy, or a policy with the same permissions.

  3. Stop the source instance with a normal stop (planned failover only).

  4. Fail over all Amazon EBS Multi-AZ volumes of the source instance to the standby instance. For instructions on failing over Amazon EBS Multi-AZ volumes, see the Amazon Elastic Block Store documentation.

  5. Start the standby instance after all volumes fail over, unless it is already running.

  6. Run the following AWS CLI command after the agent on the standby instance connects to AWS Elastic Disaster Recovery. Replace s-EXAMPLE1 with the ID of your source server.

    aws drs describe-source-servers \ --filters '{"sourceServerIDs": ["s-EXAMPLE1"]}' \ --query 'items[0].[sourceProperties.identificationHints.awsInstanceID, sourceCloudProperties.originAvailabilityZone, dataReplicationInfo.dataReplicationState]'

    The command prints the following values:

    • awsInstanceID – The instance ID. It shows the standby instance.

    • originAvailabilityZone – The Availability Zone of the source server. It shows the Availability Zone of the standby instance.

    • dataReplicationState – The replication state. It shows RESCAN while a rescan runs, and then CONTINUOUS.

  7. Restart the standby instance if the values do not change.

  8. Run the describe-source-servers command again.

If the values still do not change after the restart, see Replication does not continue after an Amazon EBS Multi-AZ failover. After the source server returns to continuous replication, you can launch a drill. The drill confirms that recovery works from the data of the standby instance.