首页 > 其他分享 >关于AWS-EC2-EBS-快照-或者AMI-创建的过程及原理

关于AWS-EC2-EBS-快照-或者AMI-创建的过程及原理

时间:2023-06-10 14:00:43浏览次数:54  
标签:AMI 快照 AWS snapshots volume Amazon snapshot your

对于AWS EC2 的 EBS 创建快照Snapshot的原理逻辑,主要如下

快照是异步制作的;时间点快照是立即创建的,但在快照完成(当所有已修改数据块都已转移到 Amazon S3 时)之前,其状态为 pending

很多大型初始快照或后续快照(其中的数据块已更改)可能需要几个小时才能完成。执行期间,正在进行的快照不会受到同时发生的卷读写操作的影响。

原文可以参考:Create Amazon EBS snapshots - Amazon Elastic Compute Cloud

You can create a point-in-time snapshot of an EBS volume and use it as a baseline for new volumes or for data backup. If you make periodic snapshots of a volume, the snapshots are incremental—the new snapshot saves only the blocks that have changed since your last snapshot.

Snapshots occur asynchronously; the point-in-time snapshot is created immediately, but the status of the snapshot is pending until the snapshot is complete (when all of the modified blocks have been transferred to Amazon S3), which can take several hours for large initial snapshots or subsequent snapshots where many blocks have changed. While it is completing, an in-progress snapshot is not affected by ongoing reads and writes to the volume.

You can take a snapshot of an attached volume that is in use. However, snapshots only capture data that has been written to your Amazon EBS volume at the time the snapshot command is issued. This might exclude any data that has been cached by any applications or the operating system. If you can pause any file writes to the volume long enough to take a snapshot, your snapshot should be complete. However, if you can't pause all file writes to the volume, you should unmount the volume from within the instance, issue the snapshot command, and then remount the volume to ensure a consistent and complete snapshot. You can remount and use your volume while the snapshot status is pending.

To make snapshot management easier, you can tag your snapshots during creation or add tags afterward. For example, you can apply tags describing the original volume from which the snapshot was created, or the device name that was used to attach the original volume to an instance. For more information, see Tag your Amazon EC2 resources.

上面是描述的快照 ,当然对于AMI的创建,也是基于上面的逻辑的,AMI主要也是由Snapshot组成~

 

 

 

尊重别人的劳动成果 转载请务必注明出处:https://www.cnblogs.com/5201351/p/17471193.html

 

标签:AMI,快照,AWS,snapshots,volume,Amazon,snapshot,your
From: https://www.cnblogs.com/5201351/p/17471193.html

相关文章

  • 基于python-统计所有AWS-EC2的Events-事件信息-并进行邮件通知
    关于AWS的EC2,我们可以有时间会收到一些官方邮件,提示让在指定的时间之前在console界面stop一次,或者重启一次,完成底层维护其实这些Events事件,在Console的EC2服务界面左侧菜单的Events下也可以看到的,如下图所示其中Eventstatus为Completed就是我们已经完成了的,Scheduled的为计......
  • AWS学习笔记
    IAM1.使用根用户名创建IAM用户。2.为了测试权限,使用根用户创建两个S3桶。#这时候使用IAM用户登录看不到S3桶,因为还没有赋予相应的权限。3.创建用户组(deploy),把S3桶的可见权限(AmazonS3ReadOnlyAccess)设置到组上。4.把IAM用户加到组上。这样该用户组下的所有IAM用户都可以可以看......
  • Thermodynamics---PV Diagram
    Thermodynamics---PVDiagram我们这里主要讨论上面四种PV图的\(\DeltaU,Q,W\),其中\(\DeltaU\)是系统的内能,\(Q\)是系统吸收的能量,\(W\)是外界对系统做的功,我们在理想单原子气体上面讨论。Preliminaries我们一般把内能\(U\)看做温度和体积的函数,即\(U=U(V,T)\),所以\(U\)......
  • Jamie Zawinski访谈:在折腾中成长 (zz.IS2120)
    //z2012-09-2622:24:[email protected][T51,L1560,R32,V428]Zawinski:那终究只是理论。Seibel:是的,不过有时这个理论也能成真,只要主事者有良好的判断力,框架也不是太过精致,的确能节省时间。你能讲讲自己属于哪一类吗?Zawinski:虽然是陈词滥调,不过我还是要重提:更差就是......
  • amix vim vimrc 3.6 (部分修改)
    """"""""""""""""""""""""""""""""""""""""""&qu......
  • 【Redis】【持久化】RDB 快照是怎么实现的?
    1  前言这节我们来看看持久化方式中的RDB哈。2  RDB快照虽说Redis是内存数据库,但是它为数据的持久化提供了两个技术。分别是「AOF日志和RDB快照」。这两种技术都会各用一个日志文件来记录信息,但是记录的内容是不同的。AOF文件的内容是操作命令;RDB文件的内容......
  • DRTREE - Dynamically-Rooted Tree 题解
    DRTREE-Dynamically-RootedTree本题建议评蓝。思路:题目就是要对一颗不定根树求子树权值和。这题不带修,如果带修难度会增加一点,就跟遥远的国度差不多。首先分析一下在以不同根下子树的变化。当一颗树以1号节点为根时,比如说长这样:假设每个点的权值为1,那么这8个点......
  • pnpm:无法加载文件 C:\Users\Five\AppData\Roaming\npm\pnpm.ps1 ,因为在此系统
    前言重装完了电脑系统,运行pnpm无法加载文件,pnpm-V也不行解决方案用管理员方式启动powershell输入命令:set-ExecutionPolicyRemoteSigned然后再输入:Y重启代码编辑器 ......
  • Java实现AWS S3 签名 自定义验证
    前言最近在开发文件存储服务,需要符合s3的协议标准,可以直接接入aws-sdk,本文针对sdk发出请求的鉴权信息进行重新组合再签名验证有效性,sdk版本如下<dependency><groupId>software.amazon.awssdk</groupId><artifactId>s3</artifactId>......
  • Java实现AWS S3 V4 Authorization自定义验证
    前言最近在开发文件存储服务,需要符合s3的协议标准,可以直接接入aws-sdk,本文针对sdk发出请求的鉴权信息进行重新组合再签名验证有效性,sdk版本如下<dependency><groupId>software.amazon.awssdk</groupId><artifactId>s3</artifactId>......