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

问题描述

我想停止Amazon EC2实例,并得到警告信息

我的提问

  1. 在哪些数据存储在Amazon EC2实例的临时存储空间?
解决方案

这是不存储在被安装到该实例将会丢失EBS卷上的任何东西。例如,如果你安装你的EBS卷在/ mystuff,则没有在/ mystuff任何东西都将丢失。如果不安装EBS卷和保存的东西就可以了,那么我相信一​​切都会丢失。

您可以从当前机器状态创建AMI,其中将包含一切都在你的临时存储空间。然后,当你推出基于该AMI一个新的实例,它将包含一切,因为它是现在。

更新:根据意见通过mattgmg1990澄清:

请注意,有间停止和终止的差异。如果停是由EBS支持的实例,然后在根卷上的信息仍然会处于相同的状态,当你的开始的机器了。如果终止的机器,那么,即使它是由EBS支持就消失了。创建AMI会保存状态,为你,让你开始一个新的实例来替换终止的实例。

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

My Question

  1. What data is stored in ephemeral storage of an Amazon EC2 instance?
解决方案

Anything that is not stored on an ebs volume that is mounted to the instance will be lost. For instance, 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.

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.

Update: to clarify based on comments by mattgmg1990:

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. If you "terminate" the machine, then even if it is backed by EBS it is gone. Creating the AMI will save that state for you and allow you to start a new instance to replace a terminated instance.

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

09-06 00:33