亚马逊EC2 - 转换EBS根设备与实例存储的根设备 [英] Amazon EC2 - Convert EBS root device with instance store root device

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

问题描述

我看到,你可以转换为EBS作为后盾<一个实例存储的实例href="http://stackoverflow.com/questions/2082724/amazon-ec2-swap-root-instance-store-device-with-ebs-device">this问题节目。不过,我想反其道而行之,采取EBS支持的实例,将其转换为实例存储备份。

这可能吗?如何做到这一点?

解决方案
  1. 从使用使用相同的内核的AMI启动一个实例存储实例的EBS支持的AMI。

  2. 创建EBS AMI背后的快照EBS卷。 (另外,启动EBS AMI的实例,并停止该实例,当它开始启动拆下从实例根卷 - 这是通常连接到/ dev / sda1的体积)

  3. 附加EBS卷的实例存储实例。

  4. rsync的EBS卷根卷的内容。

  5. 采用标准方法创建一个实例存储AMI。

  6. 分离EBS卷并将其删除。如果您在步骤2中推出了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. Launch an instance-store instance from an AMI that uses the same kernel used by your EBS-backed AMI.

  2. 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.)

  3. Attach the EBS volume to the instance-store instance.

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

  5. Create an instance-store AMI using the standard methods.

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

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

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