终止 Amazon EC2 - 持久数据会发生什么
这是一个非常简单的问题 - 我在 EC2 上设置了一个非常简单的基于 LAMP 的网站。我创建了一个 EBS 并将其安装到保存所有 mysql 数据和其他备份的实例。
现在为了连接到实例 - 我使用 WINSCP 并使用弹性 IP,从中我可以查看所有数据。
现在我的问题是 - 假设我终止实例 - 驻留在 EBS 上的备份数据和 mysql 数据仍然可用。那么我如何访问这些数据。
我的意思是使用 WINSCP 和相同的弹性 IP,当实例终止时我将无法再连接 - 那么如何访问存储在 EBS 上的数据。
很抱歉问了这个无知的问题,但我刚刚开始使用 EC2 谢谢
Its a pretty quick question - I have setup a pretty simple LAMP based website on EC2. I created an EBS and mounted it to the instance where I'm saving all the mysql data and other backups.
Now in order to connect to the instance - I use WINSCP and use the Elastic IP from where I can view all the data.
Now my question is - say I terminate the instance - the backup data and mysql data which resides on the EBS will still be available right. So how can I access this data.
I mean using WINSCP and the same Elastic IP, I wont be able to connect anymore as the instance is terminated - so how can access the data stored on EBS.
Sorry for the ignorant question but just starting to play with EC2
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我假设您已经创建了一个 EBS 支持的实例,并向该实例添加(附加)了另一个 EBS 卷作为额外存储块。在这种情况下,当您终止实例时,启动 EBS 卷将被释放并删除,但附加的 EBS 存储只会被释放 - 在实例被销毁且其数据内容完好无损后,它仍保持“可用”状态。然后,您只需将其附加到另一个正在运行的实例即可访问其上的任何内容。
I'm assuming you've created an EBS-backed instance and added to that (attached) a further EBS volume as a chunk of extra storage. In which case, when you terminate the instance, the boot EBS volume is released and deleted, but attached EBS storage is only released - it remains in the 'Available' state after the instance has been destroyed and its' data contents are left intact. You can then access whatever is on it by simply attaching it to another running instance.