Amazon EC2 - 使用实例存储根设备转换 EBS 根设备 [英] Amazon EC2 - Convert EBS root device with instance store root device

查看:24
本文介绍了Amazon EC2 - 使用实例存储根设备转换 EBS 根设备的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我看到您可以将实例存储实例转换为 EBS 支持的作为 这个问题 显示.但是,我想做相反的事情,将 EBS 支持的实例转换为实例存储支持的实例.

I see that you can convert an instance stored instance to be EBS backed as this question shows. However, I want to do the opposite, take an EBS backed instance and convert it to be Instance Store backed.

这可能吗?我该怎么做?

Is this possible? How do I do this?

推荐答案

  1. 从使用与 EBS 支持的 AMI 相同的内核的 AMI 启动实例存储实例.

  1. Launch an instance-store instance from an AMI that uses the same kernel used by your EBS-backed AMI.

从 EBS AMI 底层的快照创建 EBS 卷.(或者,启动 EBS AMI 的一个实例并在它开始启动时停止该实例.从实例中分离根卷 - 这通常是附加到/dev/sda1 的卷.)

Create an EBS volume from the snapshot underlying the EBS AMI. (Alternatively, launch an instance of the EBS AMI and Stop the instance when it begins booting. Detach the root volume from the instance - this is usually the volume attached to /dev/sda1.)

将 EBS 卷附加到实例存储实例.

Attach the EBS volume to the instance-store instance.

将 EBS 卷的内容同步到根卷.

rsync the contents of the EBS volume to the root volume.

使用标准方法创建实例存储 AMI.

Create an instance-store AMI using the standard methods.

分离 EBS 卷并将其删除.如果您在第 2 步中启动了 EBS 实例,请将其终止.

Detach the EBS volume and delete it. If you launched an EBS instance in step 2, terminate it.

这篇关于Amazon EC2 - 使用实例存储根设备转换 EBS 根设备的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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