重新启动后丢失AWS EC2磁盘数据 [英] Lost aws ec2 disk data after reboot

查看:137
本文介绍了重新启动后丢失AWS EC2磁盘数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有带有xvdb磁盘的AWS EC2实例.在对实例进行重新设置之后,我挂载了磁盘,但是它似乎是空的.我想我丢失了所有数据.

I have AWS EC2 instance with xvdb disk. After reboting my instance, I mount my disk but it seems to be empty. I think I lost all my data.

有人知道我如何恢复数据吗?

Does some one know how I can recover my data?

非常感谢

推荐答案

Amazon EC2实例上有两种不同类型的磁盘存储.

There are two different types of disk storage on an Amazon EC2 instance.

Amazon Elastic Block Store(EBS)是永久磁盘贮存.当实例停止和启动时,它将保留数据.Amazon EBS卷可以在实例之间移动.还可以快照 EBS卷来创建时间点备份.

Amazon Elastic Block Store (EBS) is persistent disk storage. It retains data when an instance is stopped and started. Amazon EBS volumes can be moved between instances. It is also possible to Snapshot an EBS volume to create a point-in-time backup.

实例存储是用于实例.实例存储的大小以及可用设备的数量随实例类型而异.停止实例后,实例存储磁盘的内容将丢失.但是,如果仅实例重新启动,则内容不会丢失 ,因为继续使用同一虚拟机(只是操作系统重新启动).

Instance Store is temporary block-level storage for an instance. The size of an instance store as well as the number of devices available varies by Instance Type. When an instance is stopped, the contents of an instance store disk is lost. However, if an instance is merely restarted, the contents is not lost because the same virtual machine continues to be used (it is just the OS that restarts).

建议始终使用EBS卷,因为它们是持久的,可以调整大小并变得更快,允许快照并且可以在实例之间移动.

The recommendation is always to use EBS volumes because they are persistent, can be resized and made faster, allow snapshotting and can be moved between instances.

使用实例存储的好处是它们更快(直接连接到主机计算机)并且不会产生额外费用.(实际上,它们早于EBS,实际上更像是历史文物.)

The benefit of using instance store is that they are faster (being directly attached to the host computer) and incur no additional charge. (They are actually more of a historical artefact, since they predate EBS.)

关于如何恢复数据...如果是EBS卷,则数据不会消失.如果是实例存储,那么仅重新启动实例就不会丢失您的数据.因此,它为何/如何消失是一个谜.无论如何,除非您使用的是EBS且以前拍摄过快照,否则都可以恢复数据.

As to how to recover your data... If it was an EBS volume, the data would not have disappeared. If it was instance store, merely restarting the instance would not have lost your data. So, it is a mystery as to why/how it disappeared. Regardless, there is on way to recover the data unless you were using EBS and previously took a Snapshot.

这篇关于重新启动后丢失AWS EC2磁盘数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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