我正在 Amazon EBS 卷上运行普通 Windows 安装。计算机需要 10 分钟才能启动,这可以理解,因为需要重新启动 2 次。然而,拍摄快照也是一个 10-15 分钟的过程。谁能解释一下吗?有什么办法可以加快速度吗?我有点惊讶,因为我认为快照是正在运行的 EBS 卷的直接副本,在这种情况下,它们不应该只需要几秒钟就可以完成吗?
<小时/>我要补充一点,控制台显示“快照”很快就完成了。但“AMI”部分似乎需要 10-20 分钟。有什么不同?快照可以立即使用吗,还是需要等待 AMI?
最佳答案
来自EBS product page :
Amazon EBS snapshots are incremental backups, meaning that only the blocks on the device that have changed since your last snapshot will be saved. If you have a device with 100 GBs of data, but only 5 GBs of data has changed since your last snapshot, only the 5 additional GBs of snapshot data will be stored back to Amazon S3.
后续快照速度很快,因为只需要保存更改的 block 。因此,所花费的时间随着自上次快照以来的更改量而变化。
Is the snapshot available for use immediately, or do I need to wait for the AMI?
同样来自product page :
New volumes created from existing Amazon S3 snapshots load lazily in the background. This means that once a volume is created from a snapshot, there is no need to wait for all of the data to transfer from Amazon S3 to your Amazon EBS volume before your attached instance can start accessing the volume and all of its data. If your instance accesses a piece of data which hasn’t yet been loaded, the volume will immediately download the requested data from Amazon S3, and then will continue loading the rest of the volume’s data in the background.
关于amazon-ec2 - 为什么 Windows 快照需要很长时间?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4185470/