amazon-ec2 - 为什么 Windows 快照需要很长时间?

标签 amazon-ec2 amazon-web-services amazon-ebs

我正在 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/

相关文章:

amazon-web-services - aws ec2 ssh 错误 : `ssh: connect to host x port 22: Operation timed out`

amazon-web-services - 限制全局对 Amazon S3 URL 的访问

amazon-ec2 - Amazon EC2 - 将 EBS 根设备与实例存储根设备转换

amazon-web-services - 使用Amazon EBS节省成本

amazon-web-services - CodeDeploy 管道未找到 AppSpec.yml - 但显然可用

amazon-web-services - 将消息从负载平衡的 EC2 Web 服务器发送到排队的 EC2 工作线程

javascript - 2018 年如何在 AWS Lambda 中访问 header

node.js - ELB上的socket io,需要连接所有应用服务器实例

amazon-web-services - 允许从 Beanstalk 安全组访问 EC2 安全组

django - 授权凭据被剥离 --- django、elastic beanstalk、oauth