Skip to content

Questions About Lazy Loading Behavior When Creating a Volume from Snapshot

0

I have a couple of technical questions regarding how lazy loading works when creating a new Amazon EBS volume from a snapshot:

  1. When a volume is created from a snapshot, I understand that blocks are loaded lazily (on-demand). If a specific block is never accessed by the EC2 instance, will that block never be copied from the snapshot to the volume?

  2. In the case where a volume is created from a snapshot but some blocks are never accessed, what happens if the original snapshot is deleted before those blocks are accessed? Is there a risk of permanent data loss? Or does AWS ensure that all snapshot data remains accessible until the volume is fully hydrated?

asked a year ago189 views

1 Answer
0

Hello,

For your above query, please find below details,

  1. The EBS volume starts loading all data in the background, regardless of whether specific blocks are accessed. If the data is accessed that hasn't been loaded yet, that specific data is prioritized and downloaded immediately, but the background loading of all blocks continues. The recently released feature of providing rate for volume initiation provides an option to specify an Amazon EBS Provisioned Rate for Volume Initialization. If you specify a volume initialization rate, the snapshot blocks are downloaded from Amazon S3 and written to the volume at the specified rate after creation. This enables you to create volumes that become fully initialized and fully performant in a predictable amount of time. Refer to the below blog post and documentation for more details,
  1. When you create a volume from a snapshot, AWS establishes references to all blocks in that snapshot that the volume might need. If the original snapshot is later deleted, AWS preserves those referenced blocks specifically for volumes that were created from that snapshot. This ensures that the volume is successfully created even if the snapshot is deleted.
AWS

answered a year ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.