A volume restored from a snapshot is very slow for the first hour of a DR test.
AdvancedTroubleshootingS3, EBS and EFS
Answer
Likely causes → Snapshot restores are lazy-loaded: each block is fetched from S3 the first time it is read, so first reads have high latency.
Diagnose →
aws ec2 describe-fast-snapshot-restores --filters Name=snapshot-id,Values=snap-0abc
# on the instance: high await on first reads
iostat -x 5
Fix →
- Pre-warm by reading every block:
sudo fio --filename=/dev/nvme1n1 --rw=read --bs=1M --iodepth=32 --ioengine=libaio --direct=1 --name=init - For critical paths, turn on Fast Snapshot Restore (paid per AZ-hour):
aws ec2 enable-fast-snapshot-restores --availability-zones us-east-1a --source-snapshot-ids snap-0abc - Or use a provisioned initialization rate where supported
Prevent → Count hydration time in your RTO, and test DR with real reads, not just "the instance is running".
More on S3, EBS and EFS
`BucketAlreadyExists: The requested bucket name is not available. The bucket namespace is shared by all users of the system.`Beginner`PermanentRedirect: The bucket you are attempting to access must be addressed using the specified endpoint.`BeginnerA partner account uploads objects into your bucket, but your own admins get `403 Forbidden` reading them.Intermediate`aws s3 cp` gets `An error occurred (AccessDenied) when calling the GetObject operation` but the IAM policy allows `s3:GetObject` and the bucket policy is fine.IntermediateAn S3 static website endpoint returns `403 Forbidden` with `Code: AccessDenied`.IntermediateHigh-throughput writes get `503 SlowDown: Please reduce your request rate.`Intermediate