Amazon EC2 实例的 Ephemeral Storage 中存储了哪些数据? [英] What data is stored in Ephemeral Storage of Amazon EC2 instance?

查看:15
本文介绍了Amazon EC2 实例的 Ephemeral Storage 中存储了哪些数据?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试停止 Amazon EC2 实例并收到警告消息

I am trying to stop a Amazon EC2 instance and get the warning message

警告:请注意,当您的实例停止时,临时存储上的任何数据都将丢失.

Warning: Please note that any data on the ephemeral storage of your instance will be lost when it is stopped.

我的问题

哪些数据存储在 Amazon EC2 实例的临时存储中?

What data is stored in ephemeral storage of an Amazon EC2 instance?

推荐答案

任何未存储在挂载到实例的 EBS 卷上的内容都将丢失.

Anything that is not stored on an EBS volume that is mounted to the instance will be lost.

例如,如果您将 EBS 卷挂载在 /mystuff,那么任何不在 /mystuff 中的内容都将丢失.如果你不挂载一个ebs卷并在上面保存东西,那么我相信一切都会丢失.

For example, if you mount your EBS volume at /mystuff, then anything not in /mystuff will be lost. If you don't mount an ebs volume and save stuff on it, then I believe everything will be lost.

您可以从当前机器状态创建一个 AMI,它将包含您的临时存储中的所有内容.然后,当您基于该 AMI 启动新实例时,它将包含现在的所有内容.

You can create an AMI from your current machine state, which will contain everything in your ephemeral storage. Then, when you launch a new instance based on that AMI it will contain everything as it is now.

更新:根据 mattgmg1990 和 glenn bech 的评论进行澄清:

Update: to clarify based on comments by mattgmg1990 and glenn bech:

请注意,停止"和终止"是有区别的.如果您停止"由 EBS 支持的实例,那么当您再次启动"机器时,根卷上的信息仍将处于相同状态.根据文档,默认情况下,启动 Amazon EBS 支持的实例时附加的根设备卷和其他 Amazon EBS 卷会在实例终止时自动删除",但您可以通过配置进行修改.

Note that there is a difference between "stop" and "terminate". If you "stop" an instance that is backed by EBS then the information on the root volume will still be in the same state when you "start" the machine again. According to the documentation, "By default, the root device volume and the other Amazon EBS volumes attached when you launch an Amazon EBS-backed instance are automatically deleted when the instance terminates" but you can modify that via configuration.

这篇关于Amazon EC2 实例的 Ephemeral Storage 中存储了哪些数据?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆